Home | Tutorials | Wiki | Issues
Ask Your Question

spawning before gazebo 7 is ready - model gets kicked around.

asked 2016-08-12 19:29:58 -0600

piyushk gravatar image

updated 2016-08-12 19:36:46 -0600

I've just upgraded for ROS-I/Gazebo2 to ROS-K/Gazebo7. If I spawn my robot at the same time Gazebo launches, it gets kicked around in the environment with random velocities. Once it settles down, I can reset the pose and it behaves as expected.

If I spawn the robot after Gazebo launches, all is good.

Any ideas why this might be happening? I've verified that my robot is not in collision with the ground plane, and I can reproduce the error in an empty world. For now, I'm launching the robot and the environment separately.

edit retag flag offensive close merge delete


You could try launching Gazebo paused, then turning on contacts visualization, and slowly stepping through simulation. Even if it doesn't collide with the ground, it might collide with itself? In fact, what do you mean by this happening in an empty world? No other models?

chapulina gravatar imagechapulina ( 2016-08-12 19:49:52 -0600 )edit

@chapulina: Yes there are no other models apart from the robot and the ground plane, and self collision for the robot is turned off. I didn't try and step through the simulation 1 step at a time. Thanks for the suggestion! I'll try it out and report back.

piyushk gravatar imagepiyushk ( 2016-08-12 21:11:52 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-08-18 19:57:08 -0600

winston gravatar image

I think it might the problem of your models' initial position and the reference frame. Try to check the model's z-position, is it zero? Is there any part of the model that is below zero along z-axis. If it is, then chances are the model collides with the ground suddenly and gets kicked around.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-08-12 19:29:58 -0600

Seen: 78 times

Last updated: Aug 18 '16