Gazebo9, no methods is working to change urdf colors
Hi, I tried everything to change color of links in Gazebo9-ROS Melodic. Nothing works, I already followed official guides as well as every other question in the forum. Can you explain me what's wrong with my methods?
METHOD 1: In "materials.xacro" :
<?xml version="1.0"?>
<robot>
<material name="myblue">
<color rgba="0.0 0.0 0.8 1.0"/>
</material>
</robot>
In mybot.xacro: Hi, I tried everything to change color of links in Gazebo9-ROS Melodic. Nothing works, I already followed official guides as well as every other question in the forum. Can you explain me what's wrong with my methods?
METHOD 1: In "materials.xacro" :
<?xml version="1.0"?>
<robot>
<material name="myblue">
<color rgba="0.0 0.0 0.8 1.0"/>
</material>
</robot>
In mybot.xacro:
> <?xml version="1.0"?> <link
> name="chassis_front1">
> <inertial>
> <!-- various things -->
> </inertial>
> <collision name='collision_front1'>
> <!-- various things -->
> </collision>
> <visual name='chassis_visual_front1'>
> <origin xyz="${x_or} ${y_or} 0" rpy=" 0 0 0"/>
> <geometry>
> <!-- various things -->
> </geometry>
> </visual>
> <color name="myblue" /> </link>
I also tried to put <color name="myblue"/> inside tag 'visual', but nothing happenend
METHOD 2:
in a file named "mybot.gazebo":
<gazebo reference="chassis_front1">
<material>Gazebo/Red</material>
</gazebo>
But, also this time, component color did not change. What's wrong with it?
did you ever find the solution to this? I'm having the same problem