55"""
66
77import os
8- import xacro
98import yaml
109
1110from launch import LaunchDescription
@@ -45,23 +44,6 @@ def generate_launch_description():
4544 )
4645 )
4746
48-
49- xacro_file = os .path .join (
50- get_package_share_directory ("ros2srrc_ur5_gazebo" ),
51- "urdf" ,
52- "ur5_robotiq_2f85.urdf.xacro"
53- )
54-
55- doc = xacro .parse (open (xacro_file ))
56- xacro .process_doc (doc , mappings = {
57- "EE" : "true" ,
58- "EE_name" : "robotiq_2f85"
59- })
60-
61- robot_description = {
62- "robot_description" : doc .toxml ()
63- }
64-
6547 robot_description_semantic = {
6648 "robot_description_semantic" : load_file (
6749 "ros2srrc_ur5_moveit2" ,
@@ -105,13 +87,11 @@ def generate_launch_description():
10587 "publish_transforms_updates" : True ,
10688 }
10789
108-
10990 move_group_node = Node (
11091 package = "moveit_ros_move_group" ,
11192 executable = "move_group" ,
11293 output = "screen" ,
11394 parameters = [
114- robot_description ,
11595 robot_description_semantic ,
11696 kinematics_yaml ,
11797 joint_limits ,
@@ -122,13 +102,11 @@ def generate_launch_description():
122102 ],
123103 )
124104
125-
126105 robmove_node = Node (
127106 package = "ros2srrc_execution" ,
128107 executable = "robmove" ,
129108 output = "screen" ,
130109 parameters = [
131- robot_description ,
132110 robot_description_semantic ,
133111 kinematics_yaml ,
134112 {"use_sim_time" : True },
@@ -141,7 +119,6 @@ def generate_launch_description():
141119 executable = "robpose" ,
142120 output = "screen" ,
143121 parameters = [
144- robot_description ,
145122 robot_description_semantic ,
146123 kinematics_yaml ,
147124 {"use_sim_time" : True },
@@ -154,7 +131,6 @@ def generate_launch_description():
154131 executable = "move" ,
155132 output = "screen" ,
156133 parameters = [
157- robot_description ,
158134 robot_description_semantic ,
159135 kinematics_yaml ,
160136 {"use_sim_time" : True },
0 commit comments