cps_loki_description/urdf/odrive.urdf.xacro

34 lines
920 B
Plaintext
Raw Normal View History

2023-06-01 08:05:36 +00:00
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="odrive">
<xacro:arg name="enable_joint0" default="true" />
<xacro:arg name="enable_joint1" default="true" />
<xacro:include filename="$(find odrive_demo_description)/urdf/odrive.ros2_control.xacro" />
<link name="world" />
<xacro:if value="$(arg enable_joint0)">
<link name="link0" />
<joint name="joint0" type="continuous">
2023-06-06 08:53:36 +00:00
<parent link="world" />
<child link="link0" />
<axis xyz="0 0 1" />
2023-06-01 08:05:36 +00:00
</joint>
</xacro:if>
<xacro:if value="$(arg enable_joint1)">
<link name="link1" />
<joint name="joint1" type="continuous">
2023-06-06 08:53:36 +00:00
<parent link="world" />
<child link="link1" />
<axis xyz="0 0 1" />
2023-06-01 08:05:36 +00:00
</joint>
</xacro:if>
<xacro:odrive_ros2_control
name="odrive_ros2_control"
enable_joint0="$(arg enable_joint0)"
enable_joint1="$(arg enable_joint1)" />
2023-06-06 08:53:36 +00:00
</robot>