Robotics StackExchange | Archived questions

Robot model is completely grey when spawned in gazebo

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:

<gazebo>
    <plugin name="joint_state_publisher" filename="libgazebo_ros_joint_state_publisher.so">
            <robotNamespace>/${name}</robotNamespace>
            <jointName>${name}_joint_1, ${name}_joint_2, ${name}_joint_3</jointName>
            <updateRate>10.0</updateRate>
            <alwaysOn>true</alwaysOn>
    </plugin>
</gazebo>

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:

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

Thank you so much in advance.

Asked by dhindhimathai on 2019-04-27 03:22:09 UTC

Comments

Answers