rviz urdf beginner questions
Hello community,
I've started to play with rviz and urdf but noticed some problems...
Environment: Virtualbox Ubuntu 11.04 ros-electric
- <material name="red"> <color rgba="1 0 0 1"/> </material>
did not change the color of selected item.
test.urdf:
<?xml version="1.0"?>
<robot name="MockBot-0.2011.09.21.1000">
<material name="black">
<color rgba="0 0 0 1"/>
</material>
<material name="white">
<color rgba="1 1 1 1"/>
</material>
<material name="red">
<color rgba="1 0 0 1"/>
</material>
<material name="green">
<color rgba="0 1 0 1"/>
</material>
<material name="blue">
<color rgba="0 0 1 1"/>
</material>
<material name="grey">
<color rgba=".2 .2 .2 1"/>
</material>
<link name="backbone">
<visual>
<geometry>
<cylinder length="0.42" radius="0.02"/>
</geometry>
<origin rpy="1.57075 0 0" xyz="0 0 0"/>
<material name="red"/>
</visual>
</link>
<link name="f_axle">
<visual>
<geometry>
<cylinder length="0.42" radius="0.02"/>
</geometry>
<origin rpy="0 1.57075 0" xyz="0 0.2 0"/>
</visual>
</link>
<link name="r_axle">
<visual>
<geometry>
<cylinder length="0.42" radius="0.02"/>
</geometry>
<origin rpy="0 1.57075 0" xyz="0 -0.2 0"/>
</visual>
</link>
<link name="lf_wheel">
<visual>
<geometry>
<cylinder length="0.075" radius="0.20"/>
</geometry>
<origin rpy="0 1.57075 0" xyz="-0.2 -0.2 0"/>
</visual>
</link>
<link name="rf_wheel">
<visual>
<geometry>
<cylinder length="0.075" radius="0.20"/>
</geometry>
<origin rpy="0 1.57075 0" xyz="0.2 -0.2 0"/>
</visual>
</link>
<link name="lr_wheel">
<visual>
<geometry>
<cylinder length="0.075" radius="0.20"/>
</geometry>
<origin rpy="0 1.57075 0" xyz="0.2 0.2 0"/>
</visual>
</link>
<link name="rr_wheel">
<visual>
<geometry>
<cylinder length="0.075" radius="0.20"/>
</geometry>
<origin rpy="0 1.57075 0" xyz="-0.2 0.2 0"/>
</visual>
</link>
<joint name="f_axle_backbone" type="fixed">
<parent link="backbone"/>
<child link="f_axle"/>
</joint>
<joint name="r_axle_backbone" type="fixed">
<parent link="backbone"/>
<child link="r_axle"/>
</joint>
<joint name="f_axle_lf_wheel" type="fixed">
<parent link="f_axle"/>
<child link="lf_wheel"/>
</joint>
<joint name="f_axle_rf_wheel" type="fixed">
<parent link="f_axle"/>
<child link="rf_wheel"/>
</joint>
<joint name="r_axle_lr_wheel" type="fixed">
<parent link="r_axle"/>
<child link="lr_wheel"/>
</joint>
<joint name="r_axle_rr_wheel" type="fixed">
<parent link="r_axle"/>
<child link="rr_wheel"/>
</joint>
</robot>
rviz returns sometimes an X-Server error, trying the same script again solves the problem... rviz usage: roslaunch urdf_tutorial display.launch model:=test.urdf
rviz did not show details of the objects, e.g. links and joints
Any ideas what I'm doing wrong ? Bugs or features ?
Thanks for any ideas Cheers Christian