From 0e899f055cdb4243c4429894457bcbe29b33fff5 Mon Sep 17 00:00:00 2001 From: David Yackzan Date: Tue, 28 Nov 2023 13:31:22 -0500 Subject: [PATCH] Update gen3 lite and gripper macros (#191) --- .../gen3_lite/6dof/urdf/gen3_lite_macro.xacro | 15 ++++++- .../6dof/urdf/kortex.ros2_control.xacro | 43 +++++++------------ .../urdf/gen3_lite_2f_macro.xacro | 11 ++++- 3 files changed, 40 insertions(+), 29 deletions(-) diff --git a/kortex_description/arms/gen3_lite/6dof/urdf/gen3_lite_macro.xacro b/kortex_description/arms/gen3_lite/6dof/urdf/gen3_lite_macro.xacro index 9b481db8..2e4b3f4b 100644 --- a/kortex_description/arms/gen3_lite/6dof/urdf/gen3_lite_macro.xacro +++ b/kortex_description/arms/gen3_lite/6dof/urdf/gen3_lite_macro.xacro @@ -19,10 +19,17 @@ session_inactivity_timeout_ms:=6000 connection_inactivity_timeout_ms:=2000 use_internal_bus_gripper_comm:=false + gripper_joint_name + gripper_max_velocity:=100.0 + gripper_max_force:=100.0 use_fake_hardware:=false fake_sensor_commands:=false sim_gazebo:=false sim_ignition:=false + sim_isaac:=false + isaac_joint_commands:=/isaac_joint_commands + isaac_joint_states:=/isaac_joint_states + use_external_cable:=false initial_positions:=${dict(joint_1=0.0,joint_2=0.0,joint_3=0.0,joint_4=0.0,joint_5=0.0,joint_6=0.0)}" > @@ -42,6 +49,9 @@ fake_sensor_commands="${fake_sensor_commands}" sim_gazebo="${sim_gazebo}" sim_ignition="${sim_ignition}" + sim_isaac="${sim_isaac}" + isaac_joint_commands="${isaac_joint_commands}" + isaac_joint_states="${isaac_joint_states}" tf_prefix="" initial_positions="${initial_positions}" robot_ip="${robot_ip}" @@ -51,7 +61,10 @@ port_realtime="${port_realtime}" session_inactivity_timeout_ms="${session_inactivity_timeout_ms}" connection_inactivity_timeout_ms="${connection_inactivity_timeout_ms}" - use_internal_bus_gripper_comm="${use_internal_bus_gripper_comm}" /> + use_internal_bus_gripper_comm="${use_internal_bus_gripper_comm}" + gripper_max_velocity="${gripper_max_velocity}" + gripper_max_force="${gripper_max_force}" + gripper_joint_name="${gripper_joint_name}"/> diff --git a/kortex_description/arms/gen3_lite/6dof/urdf/kortex.ros2_control.xacro b/kortex_description/arms/gen3_lite/6dof/urdf/kortex.ros2_control.xacro index 891ce2bb..62bd82d7 100644 --- a/kortex_description/arms/gen3_lite/6dof/urdf/kortex.ros2_control.xacro +++ b/kortex_description/arms/gen3_lite/6dof/urdf/kortex.ros2_control.xacro @@ -8,6 +8,9 @@ fake_sensor_commands:=false sim_gazebo:=false sim_ignition:=false + sim_isaac:=false + isaac_joint_commands:=/isaac_joint_commands + isaac_joint_states:=/isaac_joint_states use_internal_bus_gripper_comm:=false tf_prefix initial_positions:=${dict(joint_1=0.0,joint_2=0.0,joint_3=0.0,joint_4=0.0,joint_5=0.0,joint_6=0.0)} @@ -17,7 +20,10 @@ port port_realtime session_inactivity_timeout_ms - connection_inactivity_timeout_ms"> + connection_inactivity_timeout_ms + gripper_joint_name + gripper_max_velocity:=100.0 + gripper_max_force:=100.0"> @@ -27,12 +33,17 @@ ign_ros2_control/IgnitionSystem + + topic_based_ros2_control/TopicBasedSystem + ${isaac_joint_commands} + ${isaac_joint_states} + fake_components/GenericSystem ${fake_sensor_commands} 0.0 - + kortex_driver/KortexMultiInterfaceHardware ${robot_ip} ${username} @@ -43,7 +54,9 @@ ${connection_inactivity_timeout_ms} "${tf_prefix}" ${use_internal_bus_gripper_comm} - ${prefix}right_finger_bottom_joint + ${gripper_joint_name} + ${gripper_max_velocity} + ${gripper_max_force} @@ -51,10 +64,6 @@ -2.69 2.69 - - -1.6 - 1.6 - ${initial_positions['joint_1']} @@ -66,10 +75,6 @@ -2.69 2.36 - - -1.6 - 1.6 - ${initial_positions['joint_2']} @@ -81,10 +86,6 @@ -2.69 2.69 - - -1.6 - 1.6 - ${initial_positions['joint_3']} @@ -96,10 +97,6 @@ -2.59 2.59 - - -1.6 - 1.6 - ${initial_positions['joint_4']} @@ -111,10 +108,6 @@ -2.57 2.57 - - -1.6 - 1.6 - ${initial_positions['joint_5']} @@ -126,10 +119,6 @@ -2.59 2.59 - - -3.2 - 3.2 - ${initial_positions['joint_6']} diff --git a/kortex_description/grippers/gen3_lite_2f/urdf/gen3_lite_2f_macro.xacro b/kortex_description/grippers/gen3_lite_2f/urdf/gen3_lite_2f_macro.xacro index 804df5a6..39bf3ebd 100644 --- a/kortex_description/grippers/gen3_lite_2f/urdf/gen3_lite_2f_macro.xacro +++ b/kortex_description/grippers/gen3_lite_2f/urdf/gen3_lite_2f_macro.xacro @@ -1,7 +1,16 @@ - +