diff --git a/meshes/collision/L_Link5.stl b/meshes/collision/L_Link5.stl index 642c0a9..a497e7e 100644 Binary files a/meshes/collision/L_Link5.stl and b/meshes/collision/L_Link5.stl differ diff --git a/sciurus17_description/robot_description_loader.py b/sciurus17_description/robot_description_loader.py index 9f87fd5..b5c3e9b 100755 --- a/sciurus17_description/robot_description_loader.py +++ b/sciurus17_description/robot_description_loader.py @@ -14,10 +14,14 @@ def __init__(self): 'urdf', 'sciurus17.urdf.xacro') self.use_gazebo = 'false' + self.gz_control_config_package = '' + self.gz_control_config_file_path = '' def load(self): return Command([ 'xacro ', self.robot_description_path, - ' use_gazebo:=', self.use_gazebo + ' use_gazebo:=', self.use_gazebo, + ' gz_control_config_package:=', self.gz_control_config_package, + ' gz_control_config_file_path:=', self.gz_control_config_file_path ]) diff --git a/test/test_robot_description_loader.py b/test/test_robot_description_loader.py index 447c193..4608614 100644 --- a/test/test_robot_description_loader.py +++ b/test/test_robot_description_loader.py @@ -28,7 +28,9 @@ def test_change_description_path(): def test_use_gazebo(): - # use_gazeboが変更され、xacroにgazeboタグがセットされることを期待 + # use_gazeboが変更され、xacroにign_ros2_controlがセットされることを期待 rdl = RobotDescriptionLoader() rdl.use_gazebo = 'true' - assert ' + + + + + + + ign_ros2_control/IgnitionSystem + + + + + ${NAME_JOINT_BODY_LOWER_LIMIT} + ${NAME_JOINT_BODY_UPPER_LIMIT} + + + 0.0 + + + + + + + + ${JOINT_NECK_1_LOWER_LIMIT}" + ${JOINT_NECK_1_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_NECK_2_LOWER_LIMIT}" + ${JOINT_NECK_2_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_ARM_R_1_LOWER_LIMIT}" + ${JOINT_ARM_R_1_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_ARM_R_2_LOWER_LIMIT}" + ${JOINT_ARM_R_2_UPPER_LIMIT}" + + + -1.5707 + + + + + + + + ${JOINT_ARM_R_3_LOWER_LIMIT}" + ${JOINT_ARM_R_3_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_ARM_R_4_LOWER_LIMIT}" + ${JOINT_ARM_R_4_UPPER_LIMIT}" + + + 2.7262 + + + + + + + + ${JOINT_ARM_R_5_LOWER_LIMIT}" + ${JOINT_ARM_R_5_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_ARM_R_6_LOWER_LIMIT}" + ${JOINT_ARM_R_6_UPPER_LIMIT}" + + + -2.0943 + + + + + + + + ${JOINT_ARM_R_7_LOWER_LIMIT}" + ${JOINT_ARM_R_7_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_HAND_R_LOWER_LIMIT}" + ${JOINT_HAND_R_UPPER_LIMIT}" + + + 0.0 + + + + + + + ${NAME_JOINT_HAND_R_A} + 1 + + + + + + + + + ${JOINT_ARM_L_1_LOWER_LIMIT}" + ${JOINT_ARM_L_1_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_ARM_L_2_LOWER_LIMIT}" + ${JOINT_ARM_L_2_UPPER_LIMIT}" + + + 1.5707 + + + + + + + + ${JOINT_ARM_L_3_LOWER_LIMIT}" + ${JOINT_ARM_L_3_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_ARM_L_4_LOWER_LIMIT}" + ${JOINT_ARM_L_4_UPPER_LIMIT}" + + + -2.7262 + + + + + + + + ${JOINT_ARM_L_5_LOWER_LIMIT}" + ${JOINT_ARM_L_5_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_ARM_L_6_LOWER_LIMIT}" + ${JOINT_ARM_L_6_UPPER_LIMIT}" + + + 2.09439 + + + + + + + + ${JOINT_ARM_L_7_LOWER_LIMIT}" + ${JOINT_ARM_L_7_UPPER_LIMIT}" + + + 0.0 + + + + + + + + ${JOINT_HAND_L_LOWER_LIMIT}" + ${JOINT_HAND_L_UPPER_LIMIT}" + + + 0.0 + + + + + + + ${NAME_JOINT_HAND_L_A} + 1 + + + + + + + + + diff --git a/urdf/sciurus17.urdf.xacro b/urdf/sciurus17.urdf.xacro index c37f304..678e1dc 100644 --- a/urdf/sciurus17.urdf.xacro +++ b/urdf/sciurus17.urdf.xacro @@ -14,8 +14,13 @@ + + + + + @@ -104,7 +109,9 @@ - + + + @@ -112,7 +119,9 @@ - + + + @@ -122,7 +131,9 @@ - + + + @@ -130,7 +141,9 @@ - + + + @@ -160,6 +173,10 @@ + + + + diff --git a/urdf/sciurus17_gazebo.xacro b/urdf/sciurus17_gazebo.xacro index 3393116..d333095 100644 --- a/urdf/sciurus17_gazebo.xacro +++ b/urdf/sciurus17_gazebo.xacro @@ -30,6 +30,11 @@ + + + $(find ${GZ_CONTROL_CONFIG_PACKAGE})/${GZ_CONTROL_CONFIG_FILE_PATH} + + diff --git a/urdf/sciurus17_left_hand.xacro b/urdf/sciurus17_left_hand.xacro index adf3f34..363782f 100644 --- a/urdf/sciurus17_left_hand.xacro +++ b/urdf/sciurus17_left_hand.xacro @@ -59,6 +59,15 @@ + + + + + + + diff --git a/urdf/sciurus17_right_hand.xacro b/urdf/sciurus17_right_hand.xacro index ee4fb70..f06588d 100644 --- a/urdf/sciurus17_right_hand.xacro +++ b/urdf/sciurus17_right_hand.xacro @@ -60,6 +60,15 @@ + + + + + + +