URDF Activity
Activity
- Clone
https://github.com/m-elwin/me495_urdf.git - See how the robot moves in rviz.
- Change the launchfile so it no longer loads the
rvizconfiguration.- Then, when rviz loads, set it up to see the robot.
- Using the information in the URDF tutorial
- NOTE Omit the
--inorderargument when invoking xacro, the wiki has outdated information.
- NOTE Omit the
- Rename
slidebot.urdftoslidebot.urdf.xacro(mv slidebot.urdf slidebot.urdf.xacro) - Modify it so that it is a valid xacro file (adding
xmlns:xacro="http://wiki.ros.org/wiki/xacro"to the robot tag) and modify the launchfile to load the xacro file. - Create a parameter called
base_radiusand use it as the radius of thebasesphere- Declare this directly as a
xacro:property
- Declare this directly as a
- Make the length of the arm 10 times the radius of the
basesphere - Using the information here xacro YAML
load the
base_radiusfrom ayamlfile instead of declaring it directly in thexacrofile. - Use a
xacro:macroto add a link to the arm that is the same as the currentarmlink but on the opposite side of the body
Today's Example
Here is what I did for today's example.
mkdir -p ws/src cd ws/src git clone https://github.com/jackal/jackal.git cd ws catkin_make xacro src/jackal/jackal_description/urdf/jackal.urdf.xacro > jackal.urdf roslaunch urdf_tutorial display.launch model:=jackal.urdf