rviz - only base_link works
Hello Everyone! At first, sorry for my English :( I`ve got a problem. I'm beginner at ROS (melody, ubuntu 18.04). I learing how to do a URDF file, i'm using this tutorial: https://www.youtube.com/watch?v=Ale55... .
When i start rviz a only see a base_link
(without link_01
), I try to change URDF file but it doesn`t helped.
this is my xacro file:
<?xml version="1.0" ?>
<robot name="mrm" xmlns:xacro="http://www.ros.org/wiki/xacro">
<link name="base_link">
<visual>
<origin rpy="0 0 0" xyz="0 0 0" />
<geometry>
<box size="1 1 1" />
</geometry>
</visual>
</link>
<joint name="base_link__link_01" type="revolute">
<axis xyz="0 0 1"/>
<limit effort="1000.0" lower="-3.14" upper="3.14" velocity="0.5"/>
<origin rpy="0 0 0" xyz="0 0 0.5"/>
<parent link="base_link"/>
<child link="link_01"/>
</joint>
<link name="link_01">
<visual>
<origin rpy="0 0 0" xyz="0 0 0.2" />
<geometry>
<cylinder radius="0.35" length="0.4" />
</geometry>
</visual>
</link>
</robot>
and launch file:
<launch>
<param name="robot_description" command="$(find xacro)/xacro --inorder '$(find mrm_description)/urdf/mrm.xacro'"/>
<node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher"/>
<node name="rviz" pkg="rviz" type="rviz"/>
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" >
<param name="use_gui" value="True"/>
</node>
</launch>
i would be very grateful for Your help! Pawel :)
I've copied your setup and it works fine for me. Maybe you're not setting up rviz correctly? What do you mean by "only see a base_link (without link_01)"?
Hey! Thank You for Your answer! i change the value of radius(more than one), and value of length(also more than one) and it`s works(i see base_link and link_01)! but when i change this value (radius and length<1), the cylinder(link_01) disappears :(