From 6047f5323ec31bcf90a3b980c9729fb965673853 Mon Sep 17 00:00:00 2001 From: Paul Gesel Date: Thu, 22 Feb 2024 17:57:49 -0700 Subject: [PATCH] convert gazebo Signed-off-by: Paul Gesel --- .../picknik_ur_attachments_macro.xacro | 8 +- .../description/picknik_ur_macro.xacro | 7 +- .../description/environment.xacro | 134 +++++++++++ .../description/picknik_ur_gazebo.xacro | 209 +++--------------- 4 files changed, 172 insertions(+), 186 deletions(-) create mode 100644 src/picknik_ur_gazebo_config/description/environment.xacro diff --git a/src/picknik_ur_base_config/description/picknik_ur_attachments_macro.xacro b/src/picknik_ur_base_config/description/picknik_ur_attachments_macro.xacro index a937565f..5519861d 100644 --- a/src/picknik_ur_base_config/description/picknik_ur_attachments_macro.xacro +++ b/src/picknik_ur_base_config/description/picknik_ur_attachments_macro.xacro @@ -1,6 +1,9 @@ + + + @@ -19,7 +22,8 @@ - + + @@ -39,4 +43,4 @@ - \ No newline at end of file + diff --git a/src/picknik_ur_base_config/description/picknik_ur_macro.xacro b/src/picknik_ur_base_config/description/picknik_ur_macro.xacro index bd613ff0..be976d0f 100644 --- a/src/picknik_ur_base_config/description/picknik_ur_macro.xacro +++ b/src/picknik_ur_base_config/description/picknik_ur_macro.xacro @@ -1,7 +1,6 @@ - @@ -12,12 +11,12 @@ - + @@ -35,6 +34,7 @@ + @@ -48,6 +48,7 @@ visual_parameters_file="$(arg visual_parameters_file)" use_fake_hardware="$(arg use_fake_hardware)" initial_positions="${xacro.load_yaml(initial_positions_file)}" + sim_ignition="${simulation == 'gazebo'}" headless_mode="$(arg headless_mode)" robot_ip="$(arg robot_ip)" use_tool_communication="$(arg use_tool_communication)" @@ -78,4 +79,4 @@ - \ No newline at end of file + diff --git a/src/picknik_ur_gazebo_config/description/environment.xacro b/src/picknik_ur_gazebo_config/description/environment.xacro new file mode 100644 index 00000000..ec80bc4f --- /dev/null +++ b/src/picknik_ur_gazebo_config/description/environment.xacro @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 50 + 0 + tcp_fts_sensor/ft_data + 0 0 0 0 0 0 + + child + parent_to_child + + + + 0 + 0 + + + + + 0 + 0 + + + + + 0 + 0 + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 0 + 0 + + + + + + + + + + + $(find picknik_ur_gazebo_config)/config/control/picknik_ur5e.ros2_control.yaml + + /servo_controller/commands:=/robot_controllers/commands + /servo_controller/joint_trajectory:=/robot_controllers/joint_trajectory + + + + + + + ${gazebo_renderer} + + + + + diff --git a/src/picknik_ur_gazebo_config/description/picknik_ur_gazebo.xacro b/src/picknik_ur_gazebo_config/description/picknik_ur_gazebo.xacro index a1e888c7..fa81919a 100644 --- a/src/picknik_ur_gazebo_config/description/picknik_ur_gazebo.xacro +++ b/src/picknik_ur_gazebo_config/description/picknik_ur_gazebo.xacro @@ -1,191 +1,38 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - 1 - 50 - 0 - tcp_fts_sensor/ft_data - 0 0 0 0 0 0 - - child - parent_to_child - - - - 0 - 0 - - - - - 0 - 0 - - - - - 0 - 0 - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 0 - 0 - - - - - - + + - - - - $(find picknik_ur_gazebo_config)/config/control/picknik_ur5e.ros2_control.yaml - - /servo_controller/commands:=/robot_controllers/commands - /servo_controller/joint_trajectory:=/robot_controllers/joint_trajectory - - - + + - - - ${gazebo_renderer} - - + +