ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Gazebo model stuck in ground after enabling joint controllers

asked 2018-03-18 11:07:12 -0500

mindthomas gravatar image

Hi there.

I am struggling with getting my RC Car model to work properly with Gazebo. I have followed both the Gazebo and ROS tutorial on how to create the URDF (XACRO) files and the required Gazebo launch file. With just the joint state publisher I am able to view the model correctly in RVIZ. But whenever I include the joint controllers and spawn the model in Gazebo it will just spawn within the ground and without any wheel.

I have uploaded all the files to the following Git repository:

Any clues about what could be wrong? You can try and run the Gazebo model and see for yourself:

roslaunch jetsoncar_description gazebo.launch

Thank you in advance.

Best regards, Thomas Jespersen

edit retag flag offensive close merge delete


Please see #q284241, I'm not sure, but you might be running into the same problem.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-18 12:06:02 -0500 )edit

Thanks for your suggestion. Unfortunately even changing all controllers to be just JointVelocityController does not solve the problem. The model still spawns within the ground and can not be moved above ground.

mindthomas gravatar image mindthomas  ( 2018-03-18 19:50:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-03-24 06:11:11 -0500

mindthomas gravatar image

updated 2018-03-24 06:12:13 -0500

I have solved the problem.

The problem was related to some inertias being too small, probably causing numerical issues or crashes. In this case the wheel inertia ended up being less than 0.0001 (due to a low wheel weight) which seems to have caused the problem with the car being stuck in the ground when controllers and transmission were attached to the wheels.

Furthermore I realized that the same thing can happen if the PID constants for the controllers are too small.

See also:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-03-18 11:07:12 -0500

Seen: 1,918 times

Last updated: Mar 24 '18