2025-03-11 04:35:34 +00:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2025-05-22 07:22:55 +00:00
|
|
|
|
<!--
|
|
|
|
|
|
Copyright 2025 Reazon Holdings, Inc.
|
|
|
|
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
|
limitations under the License.
|
|
|
|
|
|
-->
|
2025-03-11 04:35:34 +00:00
|
|
|
|
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="openarm">
|
2025-06-08 12:21:10 +00:00
|
|
|
|
<!-- Robot description parameters -->
|
2025-06-02 05:57:49 +00:00
|
|
|
|
<xacro:arg name="prefix" default="" />
|
2025-06-08 12:21:10 +00:00
|
|
|
|
<xacro:arg name="side" default="right" />
|
|
|
|
|
|
<xacro:arg name="zero_pos" default="up" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Control-related parameters -->
|
|
|
|
|
|
<xacro:arg name="can_device" default="can0" />
|
2025-06-02 05:57:49 +00:00
|
|
|
|
<xacro:arg name="use_mock_hardware" default="false" />
|
|
|
|
|
|
<xacro:arg name="mock_sensor_commands" default="false" />
|
2025-06-08 12:21:10 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- Include robot description (without control parameters) -->
|
|
|
|
|
|
<xacro:include filename="openarm.robot.xacro"/>
|
|
|
|
|
|
<xacro:openarm_robot prefix="$(arg prefix)" side="$(arg side)" zero_pos="$(arg zero_pos)"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Include control configuration (with only control parameters) -->
|
|
|
|
|
|
<xacro:include filename="$(find openarm_description)/urdf/openarm.ros2_control.xacro"/>
|
|
|
|
|
|
<xacro:arg name="initial_positions_file" default="$(find openarm_description)/config/initial_positions.yaml" />
|
|
|
|
|
|
<xacro:openarm_ros2_control name="OpenArmHW" prefix="$(arg prefix)" initial_positions_file="$(arg initial_positions_file)" can_device="$(arg can_device)" use_mock_hardware="$(arg use_mock_hardware)" mock_sensor_commands="$(arg mock_sensor_commands)"/>
|
2025-06-02 05:57:49 +00:00
|
|
|
|
|
2025-03-10 08:06:07 +00:00
|
|
|
|
</robot>
|