add documentation
This commit is contained in:
parent
9f3e0710db
commit
7e00616182
|
@ -2,6 +2,7 @@
|
|||
|
||||
<robot name="b1_description" xmlns:xacro="http://www.ros.org/wiki/xacro">
|
||||
|
||||
<!-- B1 macro: describes Unitree B1 quadruped robot -->
|
||||
<xacro:macro name="b1">
|
||||
|
||||
<xacro:include filename="$(find b1_description)/xacro/const.xacro"/>
|
||||
|
|
|
@ -1,14 +1,21 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!-- b1_description: Unitree B1 quadruped robot -->
|
||||
<robot name="b1_description" xmlns:xacro="http://www.ros.org/wiki/xacro">
|
||||
|
||||
<xacro:arg name="DEBUG" default="false"/>
|
||||
<!-- define arguments -->
|
||||
<xacro:arg name="DEBUG" default="false"/> <!-- debug mode switch -->
|
||||
|
||||
<!-- include xacro files -->
|
||||
<xacro:include filename="$(find b1_description)/xacro/b1.xacro"/>
|
||||
<xacro:include filename="$(find b1_description)/xacro/gazebo.xacro"/>
|
||||
|
||||
<!-- Debug mode will hung up the robot, use "true" or "false" to switch it. -->
|
||||
<!-- B1 macro: expands to describe B1 quadruped robot -->
|
||||
<xacro:b1/>
|
||||
|
||||
<!-- debug mode configuration -->
|
||||
<xacro:if value="$(arg DEBUG)">
|
||||
<!-- statically affix B1 base to world; i.e. "hang up" the robot -->
|
||||
<link name="world"/>
|
||||
<joint name="base_static_joint" type="fixed">
|
||||
<origin rpy="0 0 0" xyz="0 0 0"/>
|
||||
|
@ -17,8 +24,4 @@
|
|||
</joint>
|
||||
</xacro:if>
|
||||
|
||||
<xacro:b1/>
|
||||
|
||||
<!-- <xacro:stairs stairs="15" xpos="0" ypos="2.0" zpos="0" /> -->
|
||||
|
||||
</robot>
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!-- Gazebo-specific elements for b1z1_description -->
|
||||
<robot>
|
||||
<!-- ros_control plugin -->
|
||||
|
||||
<!-- ros_control plugin -->
|
||||
<gazebo>
|
||||
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
|
||||
<robotNamespace>/b1z1_gazebo</robotNamespace>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<xacro:include filename="$(find b1z1_description)/xacro/const.xacro"/>
|
||||
<xacro:include filename="$(find b1z1_description)/xacro/gazebo.xacro"/>
|
||||
|
||||
<!-- B1 macro: expands to describe B1 quadruped -->
|
||||
<!-- B1 macro: expands to describe B1 quadruped robot -->
|
||||
<xacro:b1/>
|
||||
|
||||
<!-- Z1 macro: expands to describe Z1 robotic arm -->
|
||||
|
@ -22,7 +22,8 @@
|
|||
<!-- define joint affixing Z1 to B1 -->
|
||||
<joint name="trunk_arm_joint" type="fixed">
|
||||
<!-- Z1 mounting point wrt B1 trunk; configurable in const.xacro -->
|
||||
<origin rpy="${arm_offset_r} ${arm_offset_p} ${arm_offset_yaw}" xyz="${arm_offset_x} ${arm_offset_y} ${arm_offset_z}"/>
|
||||
<origin rpy="${arm_offset_r} ${arm_offset_p} ${arm_offset_yaw}"
|
||||
xyz="${arm_offset_x} ${arm_offset_y} ${arm_offset_z}"/>
|
||||
<!-- define parent and child links -->
|
||||
<parent link="trunk"/>
|
||||
<child link="link00"/>
|
||||
|
@ -30,7 +31,7 @@
|
|||
|
||||
<!-- debug mode configuration -->
|
||||
<xacro:if value="$(arg DEBUG)">
|
||||
<!-- debug mode hangs up the robot; i.e., statically affixes B1 base to world -->
|
||||
<!-- statically affix B1 base to world; i.e. "hang up" the robot -->
|
||||
<link name="world"/>
|
||||
<joint name="base_static_joint" type="fixed">
|
||||
<origin rpy="0 0 0" xyz="0 0 0"/>
|
||||
|
|
|
@ -1,20 +1,26 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!-- z1_description: Unitree Z1 robotic arm -->
|
||||
<robot name="z1_description" xmlns:xacro="http://www.ros.org/wiki/xacro">
|
||||
|
||||
<xacro:arg name="UnitreeGripper" default="false"/>
|
||||
<!-- define arguments -->
|
||||
<xacro:arg name="UnitreeGripper" default="false"/> <!-- include default end-effector -->
|
||||
|
||||
<!-- include xacro files -->
|
||||
<xacro:include filename="$(find z1_description)/xacro/z1.xacro"/>
|
||||
<xacro:include filename="$(find z1_description)/xacro/gazebo.xacro"/>
|
||||
|
||||
<link name="world"/>
|
||||
<!-- Z1 macro: expands to describe Z1 robotic arm -->
|
||||
<xacro:z1 UnitreeGripper="$(arg UnitreeGripper)"/>
|
||||
|
||||
<!-- define world link and statically affix Z1 -->
|
||||
<link name="world"/>
|
||||
<joint name="base_static_joint" type="fixed">
|
||||
<!-- Z1 mounting point wrt origin (configurable) -->
|
||||
<origin rpy="0 0 0" xyz="0 0 0"/>
|
||||
<!-- define parent and child links -->
|
||||
<parent link="world"/>
|
||||
<child link="link00"/>
|
||||
</joint>
|
||||
|
||||
<xacro:z1 UnitreeGripper="$(arg UnitreeGripper)"/>
|
||||
|
||||
</robot>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
<robot name="z1_description" xmlns:xacro="http://www.ros.org/wiki/xacro">
|
||||
|
||||
<!-- Z1 macro: describes Unitree Z1 robotic arm -->
|
||||
<xacro:macro name="z1" params="UnitreeGripper:=false">
|
||||
|
||||
<xacro:include filename="$(find z1_description)/xacro/const.xacro"/>
|
||||
|
|
Loading…
Reference in New Issue