Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorials:advanced:bullet_world_robot [2015/09/17 15:01] – gkazhoya | tutorials:advanced:bullet_world_robot [2015/09/17 15:11] – [Robot URDF description] gkazhoya | ||
---|---|---|---|
Line 9: | Line 9: | ||
The first thing that we actually need is the robot, more precisely, its URDF description. | The first thing that we actually need is the robot, more precisely, its URDF description. | ||
- | For Boxy it is located in a repo on Github, so let's clone it into our ROS workspace: | + | For the quadrotor |
<code bash> | <code bash> | ||
+ | sudo apt-get install ros-YOUR-ROS-DISTRO-hector-quadrotor-description | ||
+ | rospack profile | ||
+ | # or | ||
cd ROS_WORKSPACE_FOR_LISP_CODE | cd ROS_WORKSPACE_FOR_LISP_CODE | ||
cd src | cd src | ||
- | git clone https:// | + | git clone https:// |
cd .. | cd .. | ||
catkin_make | catkin_make | ||
</ | </ | ||
- | CRAM takes the URDF descriptions of the robots from the ROS parameter server, i.e., you will need to upload the URDFs of your robots as a ROS parameter. For Boxy there is a launch file doing that, you will find it here: | + | CRAM takes the URDF descriptions of the robots from the ROS parameter server, i.e., you will need to upload the URDFs of your robots as a ROS parameter. For our robot there is a launch file doing that, you will find it here: |
<code bash> | <code bash> | ||
- | roscd iai_boxy_description/launch/ && ls -l | + | roscd hector_quadrotor_description/launch/ && ls -l |
</ | </ | ||
- | It's called '' | + | It's called '' |
<code xml> | <code xml> | ||
< | < | ||
- | | + | |
- | <arg name="urdf-path" | + | <param name="use_gui" |
- | + | ||
- | <param | + | <node name=" |
- | name="robot_description" | + | |
- | | + | |
</ | </ | ||
</ | </ | ||
- | As we will need to know the names of the TF frames | + | It includes a robot state publisher to publish the TF, we will need it to know the names of the TF frames |
+ | It also starts Rviz: | ||
<code bash> | <code bash> | ||
- | roslaunch | + | roslaunch |
</ | </ | ||
(It also starts a GUI to play with the joint angles but let's ignore that.) | (It also starts a GUI to play with the joint angles but let's ignore that.) | ||
- | Let's check if the URDF's on the parameter server using RViz: | + | Let's check if the URDF's on the parameter server using RViz. For that, in RViz click: |
<code bash> | <code bash> | ||
- | rosrun rviz rviz | ||
Add -> RobotModel -> Robot Description: | Add -> RobotModel -> Robot Description: | ||
Add -> TF | Add -> TF | ||
</ | </ | ||
- | To be able to see the TF frames choose '' | + | To be able to see the TF frames choose '' |
{{ : | {{ : | ||
- | |||