Skip to content

Commit c73aa1d

Browse files
authored
Merge pull request #98 from robotology/devel
Merge devel in master for release v1.21.0
2 parents 955de8f + 3ca131a commit c73aa1d

34 files changed

+993324
-2592
lines changed

CMakeLists.txt

+23-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ list(APPEND GAZEBO_SUPPORTED_MODELS "iCubGazeboV2_5")
5050
list(APPEND GAZEBO_SUPPORTED_MODELS "iCubGazeboV2_5_plus")
5151
list(APPEND GAZEBO_SUPPORTED_MODELS "iCubGazeboV3")
5252

53+
# Note: these models don't need further configuration apart from
54+
# model version in model.config. Only one configuration is generated for
55+
# these models, and no helper models (fixed, no_hans, and so on) are
56+
# generated.
57+
set(CONFIGURED_MODELS "")
58+
list(APPEND CONFIGURED_MODELS "left_hand_mk3")
59+
list(APPEND CONFIGURED_MODELS "left_wrist_mk2")
60+
5361
SUBDIRLIST(ROBOTS_NAMES ${CMAKE_CURRENT_SOURCE_DIR}/iCub/robots)
5462
foreach(ROBOT_DIRNAME ${ROBOTS_NAMES})
5563
set(ROBOT_NAME ${ROBOT_DIRNAME})
@@ -63,7 +71,11 @@ foreach(ROBOT_DIRNAME ${ROBOTS_NAMES})
6371
set(ROBOT_FEET_FIXED_MODEL_CONFIG_FILE "${ROBOT_FEET_FIXED_MODEL_FOLDER}/model.config")
6472
set(ROBOT_FEET_FIXED_MODEL_SDF_FILE "${ROBOT_FEET_FIXED_MODEL_FOLDER}/${ROBOT_NAME}_feet_fixed.sdf")
6573

66-
if(ROBOT_NAME IN_LIST GAZEBO_SUPPORTED_MODELS OR ICUB_MODELS_INSTALL_ALL_GAZEBO_MODELS)
74+
if(ROBOT_NAME IN_LIST CONFIGURED_MODELS)
75+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/iCub/robots/${ROBOT_NAME}/model.config
76+
${CMAKE_CURRENT_BINARY_DIR}/iCub/robots/${ROBOT_NAME}/model.config
77+
@ONLY)
78+
elseif(ROBOT_NAME IN_LIST GAZEBO_SUPPORTED_MODELS OR ICUB_MODELS_INSTALL_ALL_GAZEBO_MODELS)
6779

6880
set(ROBOT_NAME_CONFIG "${ROBOT_NAME} (no hands)")
6981
set(ROBOT_MODEL_CONFIG "model.urdf")
@@ -105,6 +117,16 @@ endforeach()
105117
set(GAZEBO_SUPPORTED_MODELS "")
106118
list(APPEND GAZEBO_SUPPORTED_MODELS "iCubGazeboV2_5_visuomanip")
107119

120+
SUBDIRLIST(ROBOTS_NAMES ${CMAKE_CURRENT_SOURCE_DIR}/iCub_manual/robots)
121+
foreach(ROBOT_NAME ${ROBOTS_NAMES})
122+
if(ROBOT_NAME IN_LIST GAZEBO_SUPPORTED_MODELS)
123+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/iCub_manual/robots/${ROBOT_NAME}/model.config
124+
${CMAKE_CURRENT_BINARY_DIR}/iCub/robots/${ROBOT_NAME}/model.config
125+
@ONLY)
126+
endif()
127+
endforeach()
128+
129+
108130
SUBDIRLIST(ROBOTS_NAMES ${CMAKE_CURRENT_SOURCE_DIR}/iCub_manual/robots)
109131
foreach(ROBOT_NAME ${ROBOTS_NAMES})
110132
if(ROBOT_NAME IN_LIST GAZEBO_SUPPORTED_MODELS)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gazeboYarpPluginsRobotName handMk3Sim

iCub/conf_left_hand_mk3/left_hand.ini

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[include "gazebo_left_hand_robotname.ini"]
2+
3+
[WRAPPER]
4+
device controlboardwrapper2
5+
period 10
6+
name /${gazeboYarpPluginsRobotName}/left_hand
7+
8+
joints 7
9+
networks (left_hand_phys)
10+
11+
# for each network specify the joint map
12+
left_hand_phys 0 6 0 6
13+
14+
# Verbose output (on if present, off if commented out)
15+
#verbose
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[include "gazebo_left_hand_robotname.ini"]
2+
3+
[WRAPPER]
4+
device controlboardwrapper2
5+
period 10
6+
name /${gazeboYarpPluginsRobotName}/left_hand_phys
7+
8+
joints 11
9+
networks ( left_hand_phys )
10+
left_hand_phys 0 10 0 10
11+
# Verbose output (on if present, off if commented out)
12+
#verbose
13+
14+
[COUPLING]
15+
icub_hand_mk3 (0 1 2 3 4 5 6 7 8 9 10) (l_thumb_oppose l_thumb_rotate l_thumb l_hand_finger l_index l_middle l_pinky reserved reserved reserved reserved)
16+
17+
# Specify configuration of MotorControl devices
18+
[left_hand_phys]
19+
device gazebo_controlboard
20+
name left_hand_pyhs
21+
jointNames l_hand_metacarpus_joint l_hand_thumb_rotation_joint l_hand_thumb_proximal_joint l_hand_thumb_distal_joint l_hand_index_adduction_joint l_hand_index_proximal_joint l_hand_index_distal_joint l_hand_medium_proximal_joint l_hand_medium_distal_joint l_hand_pinky_proximal_joint l_hand_pinky_distal_joint
22+
23+
[LIMITS]
24+
jntVelMax 180.0 180.0 180.0 180.0 180.0 180.0 180.0 0 0 0 0
25+
jntPosMax 62.0 0.0 140.0 10.0 200.3 200.3 200.3 0 0 0 0
26+
jntPosMin 0.0 -70.0 0.0 0.0 0.0 0.0 0.0 0 0 0 0
27+
28+
[POSITION_CONTROL]
29+
controlUnits metric_units
30+
controlLaw joint_pid_gazebo_v1
31+
kp 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0
32+
kd 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
33+
ki 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
34+
maxInt 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999
35+
maxOutput 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999
36+
shift 0 0 0 0 0 0 0 0 0 0 0
37+
ko 0 0 0 0 0 0 0 0 0 0 0
38+
stictionUp 0 0 0 0 0 0 0 0 0 0 0
39+
stictionDwn 0 0 0 0 0 0 0 0 0 0 0
40+
41+
[VELOCITY_CONTROL]
42+
controlUnits metric_units
43+
controlLaw joint_pid_gazebo_v1
44+
kp 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0
45+
kd 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
46+
ki 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01
47+
maxInt 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999
48+
maxOutput 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999
49+
shift 0 0 0 0 0 0 0 0 0 0 0
50+
ko 0 0 0 0 0 0 0 0 0 0 0
51+
stictionUp 0 0 0 0 0 0 0 0 0 0 0
52+
stictionDwn 0 0 0 0 0 0 0 0 0 0 0
53+
54+
[IMPEDANCE_CONTROL]
55+
controlUnits metric_units
56+
controlLaw joint_pid_gazebo_v1
57+
stiffness 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
58+
damping 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
59+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name /world_input_port
2+
synchro 0
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Name of the robot
2+
name SIM_LEFT_HAND
3+
4+
# Parts to be opened by the GUI
5+
parts (left_hand)
6+
7+
[left_hand_zero]
8+
// 0 1 2 3 4 5 6
9+
PositionZero 0.0 -70.0 0.0 0.0 0.0 0.0 0.0
10+
VelocityZero 30.0 30.0 30.0 30.0 30.0 30.0 30.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gazeboYarpPluginsRobotName wristMk2Sim
+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[include "gazebo_left_wrist_robotname.ini"]
2+
3+
[WRAPPER]
4+
device controlboardwrapper2
5+
period 10
6+
name /${gazeboYarpPluginsRobotName}/left_wrist
7+
joints 3
8+
networks ( left_wrist )
9+
left_wrist 0 2 0 2
10+
# Verbose output (on if present, off if commented out)
11+
#verbose
12+
13+
[TRAJECTORY_GENERATION]
14+
trajectory_type minimum_jerk
15+
16+
# Specify configuration of MotorControl devices
17+
[left_wrist]
18+
device gazebo_controlboard
19+
name left_wrist
20+
jointNames l_wrist_prosup l_wrist_pitch l_wrist_yaw
21+
22+
[LIMITS]
23+
jntVelMax 180.0 180.0 180.0
24+
jntPosMax 90.0 50.0 30.0
25+
jntPosMin -90.0 -60.0 -30.0
26+
27+
[POSITION_CONTROL]
28+
controlUnits metric_units
29+
controlLaw joint_pid_gazebo_v1
30+
kp 5.0 5.0 5.0
31+
kd 0.0 0.0 0.0
32+
ki 0.00 0.00 0.00
33+
maxInt 9999 9999 9999
34+
maxOutput 9999 9999 9999
35+
shift 0 0 0
36+
ko 0 0 0
37+
stictionUp 0 0 0
38+
stictionDwn 0 0 0
39+
40+
[VELOCITY_CONTROL]
41+
controlUnits metric_units
42+
controlLaw joint_pid_gazebo_v1
43+
kp 20.0 20.0 20.0
44+
kd 0.0 0.0 0.0
45+
ki 0.01 0.01 0.01
46+
maxInt 9999 9999 9999
47+
maxOutput 9999 9999 9999
48+
shift 0 0 0
49+
ko 0 0 0
50+
stictionUp 0 0 0
51+
stictionDwn 0 0 0
52+
53+
[IMPEDANCE_CONTROL]
54+
controlUnits metric_units
55+
controlLaw joint_pid_gazebo_v1
56+
stiffness 0.0 0.0 0.0
57+
damping 0.0 0.0 0.0
58+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name /world_input_port
2+
synchro 0
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Name of the robot
2+
name SIM_L_WRIST
3+
4+
# Parts to be opened by the GUI
5+
parts (left_wrist)
6+
7+
[left_wrist_zero]
8+
// 0 1 2
9+
PositionZero 0.0 0.0 0.0
10+
VelocityZero 0.0 0.0 0.0

0 commit comments

Comments
 (0)