ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You would usually create your own workcell package with your own description in it. That description could look like this:
``` <robot xmlns:xacro="http://wiki.ros.org/xacro" name="my_work_cell"> <xacro:include filename="$(find ur_description)/urdf/inc/ur10e_macro.xacro"/>
<xacro:ur10e_robot prefix=""/>
<link name="box"> <visual> <origin xyz="0 0 0.5" rpy="0 0 0"/> <geometry> <box size="1 1 1"/> </geometry> </visual> </link>
<joint name="table_to_robot" type="fixed"> <parent link="box"/> <child link="base_link"/> <origin xyz="0 0 1" rpy="0 0 0"/> </joint> </robot> ```
Basically, you create your URDF with everything "around" the robot and then include the macro for creating the robot and add the statement for actually creating the robot to your URDF. To add an item with a custom stl, please refer to the urdf/link docuementation.
2 | No.2 Revision |
You would usually create your own workcell package with your own description in it. That description could look like this:
```
<?xml version="1.0"?>
<robot xmlns:xacro="http://wiki.ros.org/xacro" name="my_work_cell">
Basically, you create your URDF with everything "around" the robot and then include the macro for creating the robot and add the statement for actually creating the robot to your URDF. To add an item with a custom stl, please refer to the urdf/link docuementation.