Skip to content

Commit 029d0ee

Browse files
authored
Add ergoCub head configuration (#393)
1 parent 64e482c commit 029d0ee

File tree

65 files changed

+312
-1119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+312
-1119
lines changed

ergoCubSN000/calibrators/face-calib.xml

Lines changed: 0 additions & 61 deletions
This file was deleted.

ergoCubSN000/calibrators/head-calib.xml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,40 @@
33

44

55
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="head-calibrator" type="parametricCalibratorEth">
6-
6+
77
<xi:include href="../general.xml" />
8-
8+
99
<group name="GENERAL">
10-
<param name="joints"> 6 </param> <!-- the number of joints of the robot part -->
10+
<param name="joints"> 4 </param> <!-- the number of joints of the robot part -->
1111
<param name="deviceName"> HeadV3_Calibrator </param> <!-- this name is used for high-level debug -->
1212
</group>
1313

1414
<group name="HOME">
15-
<param name="positionHome"> 0 0 0 0 0 0 </param>
16-
<param name="velocityHome"> 10 10 10 10 10 10 </param>
15+
<param name="positionHome"> 0 0 0 0 </param>
16+
<param name="velocityHome"> 10 10 10 10 </param>
1717
</group>
1818

19-
<!-- joint logical number 0 1 2 3 4 5 -->
20-
<!-- joint name neck-pitch neck-roll neck-yaw eyes-tilt eyes-vers eyes-verg -->
19+
<!-- joint logical number 0 1 2 3 -->
20+
<!-- joint name neck-pitch neck-roll neck-yaw eyes-tilt -->
2121
<group name="CALIBRATION">
22-
<param name="calibrationType"> 12 12 12 12 5 5 </param>
23-
<param name="calibration1"> 19567 53471 4175 770 2000 2000 </param>
24-
<param name="calibration2"> 0 0 0 0 8192 8192 </param>
25-
<param name="calibration3"> 0 0 0 0 0 0 </param>
26-
27-
<param name="calibration4"> 0 0 0 0 0 0 </param>
28-
<param name="calibration5"> 0 0 0 0 0 0 </param>
29-
30-
<param name="calibrationZero"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
31-
<param name="calibrationDelta"> 0.0 0.0 0.0 0.0 0.0 6.5 </param>
32-
33-
<param name="startupPosition"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
34-
<param name="startupVelocity"> 10 10 20.0 20.0 20.0 20.0 </param>
35-
<param name="startupMaxPwm"> 1000 1000 1000 1000 0 0 </param>
36-
<param name="startupPosThreshold"> 90 90 2 2 2 2 </param>
37-
</group>
38-
39-
<param name="CALIB_ORDER"> (0 1 2) (3) (4 5) </param>
22+
<param name="calibrationType"> 12 12 12 12 </param>
23+
<param name="calibration1"> 39103 -18095 61615 52575 </param>
24+
<param name="calibration2"> 0 0 0 0 </param>
25+
<param name="calibration3"> 0 0 0 0 </param>
26+
27+
<param name="calibration4"> 0 0 0 0 </param>
28+
<param name="calibration5"> 0 0 0 0 </param>
29+
30+
<param name="calibrationZero"> 0.0 0.0 0.0 0.0 </param>
31+
<param name="calibrationDelta"> 0.0 0.0 0.0 0.0 </param>
32+
33+
<param name="startupPosition"> 0.0 0.0 0.0 0.0 </param>
34+
<param name="startupVelocity"> 10 10 20.0 20.0 </param>
35+
<param name="startupMaxPwm"> 1000 1000 1000 1000 </param>
36+
<param name="startupPosThreshold"> 90 90 2 2 </param>
37+
</group>
38+
39+
<param name="CALIB_ORDER"> (0 1 2) (3) </param>
4040

4141
<action phase="startup" level="10" type="calibrate">
4242
<param name="target">head-mc_remapper</param>

ergoCubSN000/cartesian/left_arm-cartesian.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="left_arm-cartesian" type="cartesiancontrollerserver">
66
<group name="GENERAL">
7-
<param name="ControllerName">icub/cartesianController/left_arm</param>
7+
<param name="ControllerName">ergocub/cartesianController/left_arm</param>
88
<param name="ControllerPeriod">10</param>
99
<param name="TaskRefVelPeriodFactor">4</param>
1010
<param name="SolverNameToConnect">cartesianSolver/left_arm</param>

ergoCubSN000/cartesian/right_arm-cartesian.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="right_arm-cartesian" type="cartesiancontrollerserver">
66
<group name="GENERAL">
7-
<param name="ControllerName">icub/cartesianController/right_arm</param>
7+
<param name="ControllerName">ergocub/cartesianController/right_arm</param>
88
<param name="ControllerPeriod">10</param>
99
<param name="TaskRefVelPeriodFactor">4</param>
1010
<param name="SolverNameToConnect">cartesianSolver/right_arm</param>

ergoCubSN000/cartesianSolver.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[left_arm]
2-
robot icub
2+
robot ergocub
33
name cartesianSolver/left_arm
44
type left_v3
55
period 20
@@ -16,7 +16,7 @@ interPoints off
1616
ping_robot_tmo 40.0
1717

1818
[right_arm]
19-
robot icub
19+
robot ergocub
2020
name cartesianSolver/right_arm
2121
type right_v3
2222
period 20
@@ -33,7 +33,7 @@ interPoints off
3333
ping_robot_tmo 40.0
3434

3535
[left_leg]
36-
robot icub
36+
robot ergocub
3737
name cartesianSolver/left_leg
3838
type left_v3
3939
period 20
@@ -50,7 +50,7 @@ interPoints off
5050
ping_robot_tmo 40.0
5151

5252
[right_leg]
53-
robot icub
53+
robot ergocub
5454
name cartesianSolver/right_leg
5555
type right_v3
5656
period 20

ergoCubSN000/ergocub_all.xml

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,32 @@
1010
<devices>
1111

1212
<!-- motor controllers wrappers -->
13-
<xi:include href="wrappers/motorControl/left_leg-mc_wrapper.xml" />
14-
<xi:include href="wrappers/motorControl/right_leg-mc_wrapper.xml" />
15-
16-
<xi:include href="wrappers/motorControl/left_leg-mc_remapper.xml" />
17-
<xi:include href="wrappers/motorControl/right_leg-mc_remapper.xml" />
18-
19-
<xi:include href="wrappers/motorControl/right_shoulder-mc_wrapper.xml" />
20-
21-
22-
<xi:include href="wrappers/motorControl/right_shoulder-mc_remapper.xml" />
23-
24-
<xi:include href="wrappers/motorControl/left_shoulder-mc_wrapper.xml" />
25-
26-
27-
<xi:include href="wrappers/motorControl/left_shoulder-mc_remapper.xml" />
28-
29-
30-
<xi:include href="wrappers/motorControl/torso-mc_wrapper.xml" />
31-
32-
33-
<xi:include href="wrappers/motorControl/torso-mc_remapper.xml" />
34-
13+
<xi:include href="wrappers/motorControl/left_leg-mc_wrapper.xml" />
14+
<xi:include href="wrappers/motorControl/right_leg-mc_wrapper.xml" />
15+
16+
<xi:include href="wrappers/motorControl/left_leg-mc_remapper.xml" />
17+
<xi:include href="wrappers/motorControl/right_leg-mc_remapper.xml" />
18+
19+
<xi:include href="wrappers/motorControl/right_shoulder-mc_wrapper.xml" />
20+
21+
<xi:include href="wrappers/motorControl/right_shoulder-mc_remapper.xml" />
22+
23+
<xi:include href="wrappers/motorControl/left_shoulder-mc_wrapper.xml" />
24+
25+
<xi:include href="wrappers/motorControl/left_shoulder-mc_remapper.xml" />
26+
27+
<xi:include href="wrappers/motorControl/torso-mc_wrapper.xml" />
28+
29+
<xi:include href="wrappers/motorControl/torso-mc_remapper.xml" />
30+
3531
<!-- TORSO -->
3632
<xi:include href="hardware/motorControl/torso-eb5-j0_2-mc.xml" />
37-
33+
3834
<!-- LEFT ARM -->
3935
<xi:include href="hardware/motorControl/left_arm-eb2-j0_1-mc.xml" />
4036
<xi:include href="hardware/motorControl/left_arm-eb4-j2_3-mc.xml" />
4137

42-
<!-- RIGHT ARM -->
38+
<!-- RIGHT ARM -->
4339
<xi:include href="hardware/motorControl/right_arm-eb1-j0_1-mc.xml" />
4440
<xi:include href="hardware/motorControl/right_arm-eb3-j2_3-mc.xml" />
4541

@@ -50,20 +46,20 @@
5046
<!-- RIGHT LEG -->
5147
<xi:include href="hardware/motorControl/right_leg-eb6-j0_3-mc.xml" />
5248
<xi:include href="hardware/motorControl/right_leg-eb7-j4_5-mc.xml" />
53-
49+
5450
<!-- ANALOG SENSORS FT -->
5551
<xi:include href="wrappers/FT/left_arm-FT_wrapper.xml" />
56-
<xi:include href="wrappers/FT/right_arm-FT_wrapper.xml" />
52+
<xi:include href="wrappers/FT/right_arm-FT_wrapper.xml" />
5753

5854
<xi:include href="hardware/FT/left_arm-eb2-j0_1-strain.xml" />
59-
<xi:include href="hardware/FT/right_arm-eb1-j0_1-strain.xml" />
55+
<xi:include href="hardware/FT/right_arm-eb1-j0_1-strain.xml" />
6056

6157

6258
<xi:include href="wrappers/FT/left_foot-FT_wrapper.xml" />
63-
<xi:include href="wrappers/FT/right_foot-FT_wrapper.xml" />
59+
<xi:include href="wrappers/FT/right_foot-FT_wrapper.xml" />
6460

6561
<xi:include href="hardware/FT/left_leg-eb9-j4_5-strain.xml" />
66-
<xi:include href="hardware/FT/right_leg-eb7-j4_5-strain.xml" />
62+
<xi:include href="hardware/FT/right_leg-eb7-j4_5-strain.xml" />
6763

6864

6965
<!-- CALIBRATORS -->
@@ -72,5 +68,6 @@
7268
<xi:include href="calibrators/left_shoulder-calib.xml" />
7369
<xi:include href="calibrators/right_shoulder-calib.xml" />
7470
<xi:include href="calibrators/torso-calib.xml" />
71+
<xi:include href="calibrators/head-calib.xml" />
7572
</devices>
7673
</robot>

ergoCubSN000/ergocub_head.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!DOCTYPE robot PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">
3+
4+
<robot name="ergoCubSN000" xmlns:xi="http://www.w3.org/2001/XInclude">
5+
6+
<params>
7+
<xi:include href="hardware/electronics/pc104.xml" />
8+
</params>
9+
10+
<devices>
11+
<!-- motor controllers wrappers and remappers -->
12+
<xi:include href="wrappers/motorControl/head-mc_wrapper.xml" />
13+
<xi:include href="wrappers/motorControl/head-mc_remapper.xml" />
14+
15+
<!-- Head -->
16+
<xi:include href="hardware/motorControl/head-eb20-j0_1-mc.xml" />
17+
<xi:include href="hardware/motorControl/head-eb21-j2_3-mc.xml" />
18+
19+
<xi:include href="calibrators/head-calib.xml" />
20+
</devices>
21+
22+
</robot>

ergoCubSN000/estimators/wholebodydynamics.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<paramlist name="networks">
4949
<!-- motorcontrol and virtual torque sensors -->
5050
<elem name="head-j0">head-eb20-j0_1-mc</elem>
51-
<elem name="head-j2">head-eb21-j2_5-mc</elem>
51+
<elem name="head-j2">head-eb21-j2_3-mc</elem>
5252
<elem name="torso">torso-eb5-j0_2-mc</elem>
5353
<elem name="left_upper_arm-j0">left_arm-eb1-j0_1-mc</elem>
5454
<elem name="left_upper_arm-j2">left_arm-eb2-j2_3-mc</elem>

ergoCubSN000/extra/applications/cameras_calib_640_480.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<module>
66
<name>yarpdev</name>
77
<parameters> --from camera/ServerGrabberDualDragon640_480.ini --split true</parameters>
8-
<node>icub-head</node>
8+
<node>ergocub-head</node>
99
</module>
1010
<module>
1111
<name>camCalib</name>

ergoCubSN000/ft.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<!DOCTYPE robot PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">
33

4-
<robot name="iCubGenovergoCubSN000" build="1" portprefix="icub" xmlns:xi="http://www.w3.org/2001/XInclude">
4+
<robot name="iCubGenovergoCubSN000" build="1" portprefix="ergocub" xmlns:xi="http://www.w3.org/2001/XInclude">
55

66
<params>
77
<xi:include href="hardware/electronics/pc104.xml" />

0 commit comments

Comments
 (0)