Robot model is completely grey when spawned in gazebo

asked 2019-04-27 03:22:09 -0500

dhindhimathai gravatar image

I am working on Gazebo 9 with ROS Melodic in Ubuntu 18.04. I have a very simple urdf with 6 links: the robot has no actuated joints and is entirely passive. It is to be said that the model is not a single kinematic chain.

To provide joint feedback I added the following in my robot model:

    <plugin name="joint_state_publisher" filename="">
            <jointName>${name}_joint_1, ${name}_joint_2, ${name}_joint_3</jointName>

The problem is that when I spawn it in gazebo using urdf_spawner it seems to be simulated because the links move according to gravity and the joint states are published in ros, but the entire robot is opaque grey!!!

Some useful details:

  • The meshes I use might be slightly heavy (I am also scaling them), but I tried to spawn then individually using a simple test world file and they look fine.
  • I am using the meshes themselves for collisions... Is this bad?
  • In the urdf I am using for the joints <dynamics friction="0.01" damping="0.01"/> which might not be precise.
  • I am not entirely sure about the values I gave for effort="..." velocity="..." in the limit tag of the joints in the urdf.
  • I am not defining any transmission as the robot is entirely passive.

What could be the problem? Please tell me if you need additional information.

Thank you so much in advance.

edit retag flag offensive close merge delete