@@ -57,6 +57,7 @@ def generate_launch_description():
57
57
declared_arguments .append (
58
58
DeclareLaunchArgument (
59
59
"controllers_file" ,
60
+ default_value = "ros2_controllers.yaml" ,
60
61
description = "Robot controller to start." ,
61
62
)
62
63
)
@@ -67,13 +68,34 @@ def generate_launch_description():
67
68
description = "Name of the gripper attached to the arm" ,
68
69
)
69
70
)
71
+ declared_arguments .append (
72
+ DeclareLaunchArgument (
73
+ "gripper_joint_name" ,
74
+ default_value = "robotiq_85_left_knuckle_joint" ,
75
+ description = "Name of the gripper attached to the arm" ,
76
+ )
77
+ )
70
78
declared_arguments .append (
71
79
DeclareLaunchArgument (
72
80
"use_internal_bus_gripper_comm" ,
73
81
default_value = "true" ,
74
82
description = "Use internal bus for gripper communication?" ,
75
83
)
76
84
)
85
+ declared_arguments .append (
86
+ DeclareLaunchArgument (
87
+ "gripper_max_velocity" ,
88
+ default_value = "100.0" ,
89
+ description = "Max velocity for gripper commands" ,
90
+ )
91
+ )
92
+ declared_arguments .append (
93
+ DeclareLaunchArgument (
94
+ "gripper_max_force" ,
95
+ default_value = "100.0" ,
96
+ description = "Max force for gripper commands" ,
97
+ )
98
+ )
77
99
declared_arguments .append (
78
100
DeclareLaunchArgument ("launch_rviz" , default_value = "true" , description = "Launch RViz?" )
79
101
)
@@ -86,6 +108,9 @@ def generate_launch_description():
86
108
robot_controller = LaunchConfiguration ("robot_controller" )
87
109
gripper = LaunchConfiguration ("gripper" )
88
110
use_internal_bus_gripper_comm = LaunchConfiguration ("use_internal_bus_gripper_comm" )
111
+ gripper_max_velocity = LaunchConfiguration ("gripper_max_velocity" )
112
+ gripper_max_force = LaunchConfiguration ("gripper_max_force" )
113
+ gripper_joint_name = LaunchConfiguration ("gripper_joint_name" )
89
114
launch_rviz = LaunchConfiguration ("launch_rviz" )
90
115
controllers_file = LaunchConfiguration ("controllers_file" )
91
116
@@ -100,8 +125,12 @@ def generate_launch_description():
100
125
"robot_controller" : robot_controller ,
101
126
"gripper" : gripper ,
102
127
"use_internal_bus_gripper_comm" : use_internal_bus_gripper_comm ,
128
+ "gripper_max_velocity" : gripper_max_velocity ,
129
+ "gripper_max_force" : gripper_max_force ,
130
+ "gripper_joint_name" : gripper_joint_name ,
103
131
"launch_rviz" : launch_rviz ,
104
132
"controllers_file" : controllers_file ,
133
+ "description_file" : "gen3.xacro" ,
105
134
}.items (),
106
135
)
107
136
0 commit comments