Home | Tutorials | Wiki | Issues
Ask Your Question
0

How to create a moving ball

asked 2016-06-07 04:48:53 -0500

PerceptualRobots gravatar image

updated 2016-06-08 11:23:55 -0500

I am new to gazebo and having some trouble doing something simple.

I want to create a ball which moves around in a circle. I did add manage to create a sphere, but when I reopen the world the sphere is stuck half way in the ground.

How do I get it to move? Also how do I set its colour?

I want to add this the Baxter world.

Any help appreciated.

Update:

What version of gazebo are you using?

Version 2, I think.

Have you install libignition-math2-dev?

No, how do I do that?

What version of ubuntu/linux are you using?

Ubuntu 14.04

Can you update your original post with your code, cmake, and commands that you are running?

It was the code from the animated box tutorial,

mkdir build cd build cmake ../ make

edit retag flag offensive close merge delete

Comments

gazebo version 2 is deprecated. You should ideally use gazebo7. Ignitionmath2 is not used by gazebo2, so you probably have conflicting software installed. The animated box tutorial you linked to requires gazebo6 or above (see the upper right on that page).

nkoenig gravatar imagenkoenig ( 2016-06-08 12:50:54 -0500 )edit

I am using the Baxter simulation (http://sdk.rethinkrobotics.com/wiki/Simulator_Installation) which uses gazebo2. Do you know if this will work with gazebo7? Or if I try it, then revert if it doesn't?

PerceptualRobots gravatar imagePerceptualRobots ( 2016-06-08 14:46:05 -0500 )edit

I don't know the current state of rethink's baxter simulation. You can try contacting them.

nkoenig gravatar imagenkoenig ( 2016-06-08 14:48:14 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-06-07 10:03:03 -0500

nkoenig gravatar image

updated 2016-06-08 14:49:58 -0500

Please follow these tutorials. The animated box should help you as well.

You can also look at the example code Gazebo provides.

edit flag offensive delete link more

Comments

Thanks, but that tutorial isn't working I get this error on make, fatal error: ignition/math.hh: No such file or directory #include <ignition math.hh="">

PerceptualRobots gravatar imagePerceptualRobots ( 2016-06-08 10:05:19 -0500 )edit

What version of gazebo are you using? Have you install libignition-math2-dev? What version of ubuntu/linux are you using? Can you update your original post with your code, cmake, and commands that you are running?

nkoenig gravatar imagenkoenig ( 2016-06-08 10:08:36 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-06-07 04:48:53 -0500

Seen: 2,146 times

Last updated: Jun 08 '16