Skip to content

Commit f4fcaf5

Browse files
authored
Merge branch 'main' into fix_speed_force_logics
2 parents 1bf4a0a + bb68ae5 commit f4fcaf5

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

robotiq_description/launch/robotiq_control.launch.py

+11
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ def generate_launch_description():
6969
name="launch_rviz", default_value="false", description="Launch RViz?"
7070
)
7171
)
72+
args.append(
73+
launch.actions.DeclareLaunchArgument(
74+
name="com_port",
75+
default_value="/dev/ttyUSB0",
76+
description="Port for communicating with Robotiq hardware",
77+
)
78+
)
7279

7380
robot_description_content = Command(
7481
[
@@ -77,8 +84,12 @@ def generate_launch_description():
7784
LaunchConfiguration("model"),
7885
" ",
7986
"use_fake_hardware:=false",
87+
" ",
88+
"com_port:=",
89+
LaunchConfiguration("com_port"),
8090
]
8191
)
92+
8293
robot_description_param = {
8394
"robot_description": launch_ros.parameter_descriptions.ParameterValue(
8495
robot_description_content, value_type=str

robotiq_description/urdf/robotiq_2f_140_gripper.urdf.xacro

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
<robot xmlns:xacro="http://wiki.ros.org/xacro" name="robotiq_gripper">
33
<!-- parameters -->
44
<xacro:arg name="use_fake_hardware" default="true" />
5+
<xacro:arg name="com_port" default="/dev/ttyUSB0" />
56

67
<!-- Import macros -->
78
<xacro:include filename="$(find robotiq_description)/urdf/robotiq_2f_140_macro.urdf.xacro" />
89

910
<link name="world" />
10-
<xacro:robotiq_gripper name="RobotiqGripperHardwareInterface" prefix="" parent="world" use_fake_hardware="$(arg use_fake_hardware)">
11+
<xacro:robotiq_gripper name="RobotiqGripperHardwareInterface" prefix="" parent="world" use_fake_hardware="$(arg use_fake_hardware)" com_port="$(arg com_port)">
1112
<origin xyz="0 0 0" rpy="0 0 0" />
1213
</xacro:robotiq_gripper>
1314
</robot>

robotiq_description/urdf/robotiq_2f_85_gripper.urdf.xacro

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
<robot xmlns:xacro="http://wiki.ros.org/xacro" name="robotiq_gripper">
33
<!-- parameters -->
44
<xacro:arg name="use_fake_hardware" default="true" />
5+
<xacro:arg name="com_port" default="/dev/ttyUSB0" />
56

67
<!-- Import macros -->
78
<xacro:include filename="$(find robotiq_description)/urdf/robotiq_2f_85_macro.urdf.xacro" />
89

910
<link name="world" />
10-
<xacro:robotiq_gripper name="RobotiqGripperHardwareInterface" prefix="" parent="world" use_fake_hardware="$(arg use_fake_hardware)">
11+
<xacro:robotiq_gripper name="RobotiqGripperHardwareInterface" prefix="" parent="world" use_fake_hardware="$(arg use_fake_hardware)" com_port="$(arg com_port)">
1112
<origin xyz="0 0 0" rpy="0 0 0" />
1213
</xacro:robotiq_gripper>
1314
</robot>

0 commit comments

Comments
 (0)