From 1e483076d6ce3fc3896235d1fcc9074d957a9d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2?= Date: Fri, 20 Nov 2020 17:42:11 +0100 Subject: [PATCH] icub3: fix ft frame exportation --- .../data/icub3/ICUB_3_all_options.yaml | 41 +++++++--------- .../icub3/ICUB_3_all_options_gazebo.yaml.in | 49 +++++++------------ 2 files changed, 35 insertions(+), 55 deletions(-) diff --git a/simmechanics/data/icub3/ICUB_3_all_options.yaml b/simmechanics/data/icub3/ICUB_3_all_options.yaml index 5feb68ba..71f6b2d3 100644 --- a/simmechanics/data/icub3/ICUB_3_all_options.yaml +++ b/simmechanics/data/icub3/ICUB_3_all_options.yaml @@ -102,20 +102,6 @@ rename: SIM_ICUB3_R_FOREARM--SIM_ICUB3_R_WRIST_1: r_wrist_pitch SIM_ICUB3_R_WRIST_1--SIM_ICUB3_R_HAND: r_wrist_yaw -# Sensors options -forceTorqueSensors: - - jointName: l_leg_ft_sensor - directionChildToParent: Yes - - jointName: r_leg_ft_sensor - directionChildToParent: Yes - - jointName: l_foot_front_ft_sensor - directionChildToParent: Yes - - jointName: l_foot_rear_ft_sensor - directionChildToParent: Yes - - jointName: r_foot_front_ft_sensor - directionChildToParent: Yes - - jointName: r_foot_rear_ft_sensor - directionChildToParent: Yes # Frames options exportAllUseradded: No @@ -124,8 +110,6 @@ linkFrames: # upperbody - linkName: root_link frameName: SCSYS_ROOT - - linkName: l_shoulder_2 - frameName: SCSYS_L_SHOULDER_2_FT - linkName: chest frameName: SCSYS_CHEST - linkName: l_shoulder_1 @@ -151,12 +135,6 @@ linkFrames: - linkName: torso_2 frameName: SCSYS_TORSO_2 # left leg - - linkName: l_hip_2 - frameName: SCSYS_L_HIP_2_FT - - linkName: l_ankle_2 - frameName: SCSYS_L_ANKLE_2_FT_FRONT - - linkName: l_ankle_2 - frameName: SCSYS_L_ANKLE_2_FT_REAR - linkName: l_hip_1 frameName: SCSYS_L_HIP_1 - linkName: l_hip_2 @@ -244,6 +222,8 @@ forceTorqueSensors: # upperbody - jointName: l_arm_ft_sensor directionChildToParent: Yes + frame: l_shoulder_3 + frameName: SCSYS_L_SHOULDER_2_FT sensorBlobs: - | @@ -251,6 +231,8 @@ forceTorqueSensors: - jointName: r_arm_ft_sensor directionChildToParent: Yes + frame: r_shoulder_3 + frameName: SCSYS_R_SHOULDER_2_FT sensorBlobs: - | @@ -259,6 +241,8 @@ forceTorqueSensors: # left leg - jointName: l_leg_ft_sensor directionChildToParent: Yes + frame: l_hip_3 + frameName: SCSYS_L_HIP_2_FT sensorBlobs: - | @@ -266,6 +250,8 @@ forceTorqueSensors: - jointName: l_foot_front_ft_sensor directionChildToParent: Yes + frame: l_foot_front + frameName: SCSYS_L_ANKLE_2_FT_FRONT sensorBlobs: - | @@ -273,6 +259,8 @@ forceTorqueSensors: - jointName: l_foot_rear_ft_sensor directionChildToParent: Yes + frame: l_foot_rear + frameName: SCSYS_L_ANKLE_2_FT_REAR sensorBlobs: - | @@ -281,6 +269,8 @@ forceTorqueSensors: # right leg - jointName: r_leg_ft_sensor directionChildToParent: Yes + frame: r_hip_3 + frameName: SCSYS_R_HIP_2_FT sensorBlobs: - | @@ -288,6 +278,8 @@ forceTorqueSensors: - jointName: r_foot_front_ft_sensor directionChildToParent: Yes + frame: r_foot_front + frameName: SCSYS_R_ANKLE_2_FT_FRONT sensorBlobs: - | @@ -295,12 +287,15 @@ forceTorqueSensors: - jointName: r_foot_rear_ft_sensor directionChildToParent: Yes + frame: r_foot_rear + frameName: SCSYS_R_ANKLE_2_FT_REAR sensorBlobs: - | model://iCub/conf_icub3/FT/gazebo_icub_right_foot_rear_ft.ini + sensors: - sensorName: default exportFrameInURDF: No @@ -344,7 +339,7 @@ sensors: model://iCub/conf_icub3/gazebo_icub_depth_camera.ini - - frameName: SCSYS_CHEST_RGB + - frameName: SCSYS_CHEST_RGB linkName: chest sensorName: realsense_chest_rgb sensorType: "camera" diff --git a/simmechanics/data/icub3/ICUB_3_all_options_gazebo.yaml.in b/simmechanics/data/icub3/ICUB_3_all_options_gazebo.yaml.in index 344af7d4..c8c75700 100644 --- a/simmechanics/data/icub3/ICUB_3_all_options_gazebo.yaml.in +++ b/simmechanics/data/icub3/ICUB_3_all_options_gazebo.yaml.in @@ -102,21 +102,6 @@ rename: SIM_ICUB3_R_FOREARM--SIM_ICUB3_R_WRIST_1: r_wrist_pitch SIM_ICUB3_R_WRIST_1--SIM_ICUB3_R_HAND: r_wrist_yaw -# Sensors options -forceTorqueSensors: - - jointName: l_leg_ft_sensor - directionChildToParent: Yes - - jointName: r_leg_ft_sensor - directionChildToParent: Yes - - jointName: l_foot_front_ft_sensor - directionChildToParent: Yes - - jointName: l_foot_rear_ft_sensor - directionChildToParent: Yes - - jointName: r_foot_front_ft_sensor - directionChildToParent: Yes - - jointName: r_foot_rear_ft_sensor - directionChildToParent: Yes - # Frames options exportAllUseradded: No @@ -124,8 +109,6 @@ linkFrames: # upperbody - linkName: root_link frameName: SCSYS_ROOT - - linkName: l_shoulder_2 - frameName: SCSYS_L_SHOULDER_2_FT - linkName: chest frameName: SCSYS_CHEST - linkName: l_shoulder_1 @@ -136,8 +119,6 @@ linkFrames: frameName: SCSYS_L_SHOULDER_3 - linkName: l_upper_arm frameName: SCSYS_L_UPPERARM - - linkName: r_shoulder_2 - frameName: SCSYS_R_SHOULDER_2_FT - linkName: r_shoulder_1 frameName: SCSYS_R_SHOULDER_1 - linkName: r_shoulder_2 @@ -151,12 +132,6 @@ linkFrames: - linkName: torso_2 frameName: SCSYS_TORSO_2 # left leg - - linkName: l_hip_2 - frameName: SCSYS_L_HIP_2_FT - - linkName: l_ankle_2 - frameName: SCSYS_L_ANKLE_2_FT_FRONT - - linkName: l_ankle_2 - frameName: SCSYS_L_ANKLE_2_FT_REAR - linkName: l_hip_1 frameName: SCSYS_L_HIP_1 - linkName: l_hip_2 @@ -176,12 +151,6 @@ linkFrames: - linkName: l_foot_rear frameName: SCSYS_L_FOOT_REAR # right leg - - linkName: r_hip_2 - frameName: SCSYS_R_HIP_2_FT - - linkName: r_ankle_2 - frameName: SCSYS_R_ANKLE_2_FT_FRONT - - linkName: r_ankle_2 - frameName: SCSYS_R_ANKLE_2_FT_REAR - linkName: r_hip_1 frameName: SCSYS_R_HIP_1 - linkName: r_hip_2 @@ -250,6 +219,8 @@ forceTorqueSensors: # upperbody - jointName: l_arm_ft_sensor directionChildToParent: Yes + frame: l_shoulder_3 + frameName: SCSYS_L_SHOULDER_2_FT sensorBlobs: - | @@ -257,6 +228,8 @@ forceTorqueSensors: - jointName: r_arm_ft_sensor directionChildToParent: Yes + frame: r_shoulder_3 + frameName: SCSYS_R_SHOULDER_2_FT sensorBlobs: - | @@ -265,6 +238,8 @@ forceTorqueSensors: # left leg - jointName: l_leg_ft_sensor directionChildToParent: Yes + frame: l_hip_3 + frameName: SCSYS_L_HIP_2_FT sensorBlobs: - | @@ -272,6 +247,8 @@ forceTorqueSensors: - jointName: l_foot_front_ft_sensor directionChildToParent: Yes + frame: l_foot_front + frameName: SCSYS_L_ANKLE_2_FT_FRONT sensorBlobs: - | @@ -279,6 +256,8 @@ forceTorqueSensors: - jointName: l_foot_rear_ft_sensor directionChildToParent: Yes + frame: l_foot_rear + frameName: SCSYS_L_ANKLE_2_FT_REAR sensorBlobs: - | @@ -287,6 +266,8 @@ forceTorqueSensors: # right leg - jointName: r_leg_ft_sensor directionChildToParent: Yes + frame: r_hip_3 + frameName: SCSYS_R_HIP_2_FT sensorBlobs: - | @@ -294,6 +275,8 @@ forceTorqueSensors: - jointName: r_foot_front_ft_sensor directionChildToParent: Yes + frame: r_foot_front + frameName: SCSYS_R_ANKLE_2_FT_FRONT sensorBlobs: - | @@ -301,6 +284,8 @@ forceTorqueSensors: - jointName: r_foot_rear_ft_sensor directionChildToParent: Yes + frame: r_foot_rear + frameName: SCSYS_R_ANKLE_2_FT_REAR sensorBlobs: - | @@ -349,7 +334,7 @@ sensors: model://iCub/conf_icub3/gazebo_icub_depth_camera.ini - - frameName: SCSYS_CHEST_RGB + - frameName: SCSYS_CHEST_RGB linkName: chest sensorName: realsense_chest_rgb sensorType: "camera"