Skip to content

Commit 7d086a3

Browse files
authored
Update of iCubGenova09 configuration files (robotology#265)
1 parent 6096074 commit 7d086a3

Some content is hidden

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

49 files changed

+863
-114
lines changed

iCubGenova09/calibrators/face-calib.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<group name="CALIBRATION">
2222
<param name="calibrationType"> 12 </param>
2323
<!-- The value of the raw encoder needs to be with sign -->
24-
<param name="calibration1"> -7058 </param>
24+
<param name="calibration1"> -25108 </param>
2525
<param name="calibration2"> 0 </param>
2626
<param name="calibration3"> 0 </param>
2727

iCubGenova09/calibrators/left_leg-calib.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@
2020
<group name="CALIBRATION">
2121
<param name="calibrationType"> 12 12 12 12 12 12 </param> <!--
2222
<param name="calibration1"> 24444 29251 18367 -46782 -13812 -47721 </param> -->
23-
<param name="calibration1"> 25002 28489 18035 -38795 14006 -47767 </param>
23+
<param name="calibration1"> 40461 29421 50502 -14794 33699 -9860 </param>
2424

2525
<param name="calibration2"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
2626
<param name="calibration3"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
2727

2828
<param name="calibration4"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
2929
<param name="calibration5"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
3030
<param name="calibrationZero"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
31-
<param name="calibrationDelta"> 0.280 1.653 0.176 -2.129 1.620 0.840 </param>
31+
<param name="calibrationDelta"> -2.3 -5.64 1.29 -6.61 -4.28 1.412 </param>
3232

3333
<param name="startupPosition"> 5 15 0 -20 0 0 </param>
3434
<param name="startupVelocity"> 10.0 10.0 10.0 10.0 10.0 10.0 </param>
35-
<param name="startupMaxPwm"> 3000 3000 3000 3000 5000 3000 </param>
35+
<param name="startupMaxPwm"> 3000 3000 3000 3000 3000 3000 </param>
3636
<param name="startupPosThreshold"> 2 2 2 2 2 2 </param>
3737
</group>
3838

39-
<param name="CALIB_ORDER"> (0) (1) (2) (3) (4) (5) </param>
39+
<param name="CALIB_ORDER"> (0) (1) (2) (3) (4) (5) </param>
4040

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

iCubGenova09/calibrators/right_arm-calib.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
<param name="calibration1"> 6576 -12912 -883 -47529 1500 36903 -12703 0 0 0 0 0 0 0 0 0 </param>
2323
<param name="calibration2"> 0 0 0 0 16384 0 0 0 0 9102 9102 9102 9102 9102 9102 10000 </param>
2424
<param name="calibration3"> 0 0 0 0 0 0 0 0 0 -1 1 -1 1 -1 1 1 </param>
25-
<param name="calibration4"> 0 0 0 0 0 0 0 2260 1470 250 510 255 510 255 510 748 </param>
26-
<param name="calibration5"> 0 0 0 0 0 0 0 2560 2340 27 40 18 30 0 30 120 </param>
25+
<param name="calibration4"> 0 0 0 0 0 0 0 2260 1470 242 510 255 510 255 510 748 </param>
26+
<param name="calibration5"> 0 0 0 0 0 0 0 2560 2350 25 40 18 30 0 30 120 </param>
2727
<param name="calibrationZero"> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 </param>
28-
<param name="calibrationDelta"> 0 0 0 0 0 -5.5 -4 0 0 0 0 0 0 0 0 0 </param>
28+
<param name="calibrationDelta"> 0 0 -5.8 0 0 -5.5 -4 0 0 0 0 0 0 0 0 0 </param>
2929

3030
<param name="startupPosition"> -35 30 0 45 0 0 0 25 45 0 0 0 0 0 0 0 </param>
3131
<param name="startupVelocity"> 10.0 10.0 10.0 10.0 30 30 30 60 100 100 100 100 100 100 100 100 </param>

iCubGenova09/calibrators/right_leg-calib.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,23 @@
2020
<group name="CALIBRATION">
2121
<param name="calibrationType"> 12 12 12 12 12 12 </param> <!--
2222
<param name="calibration1"> -46315 -27486 -21455 29918 27285 7866 </param> -->
23-
<param name="calibration1"> -46315 -27486 -21499 30215 -7550 8538 </param>
23+
<param name="calibration1"> -46203 -26675 -54991 25400 -1989 9657 </param>
2424
<param name="calibration2"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
2525
<param name="calibration3"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
2626

2727
<param name="calibration4"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
2828
<param name="calibration5"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
2929
<param name="calibrationZero"> 0.0 0.0 0.0 0.0 0.0 0.0 </param>
30-
<param name="calibrationDelta"> 1.406 0.917 0.247 -3.961 1.170 -1.522 </param>
30+
<param name="calibrationDelta"> 1.373 -3.615 0.0 11.0 -0.485 1.173 </param>
3131

3232
<param name="startupPosition"> 5 15 0 -20.0 0 0 </param>
3333
<param name="startupVelocity"> 10.0 10.0 10.0 10.0 10.0 10.0 </param>
3434
<param name="startupMaxPwm"> 3000 3000 3000 3000 3000 3000 </param>
3535
<param name="startupPosThreshold"> 2 2 2 2 2 2 </param>
3636
</group>
3737

38-
<param name="CALIB_ORDER">(0) (1) (2) (3) (4) (5) </param>
38+
<param name="CALIB_ORDER">(0) (1) (2) (3) (4) (5)</param>
39+
<!-- (1) (2) (3) (4) (5) -->
3940

4041
<action phase="startup" level="10" type="calibrate">
4142
<param name="target">right_leg-mc_wrapper</param>
+11-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
device dragonfly2
2-
width 320
3-
height 240
4-
video_type 1
5-
white_balance 0.561 0.627
2+
width 1024
3+
height 768
4+
video_type 10
5+
white_balance 0.561 0.631
66
gain 0.0
7-
shutter 0.635
7+
shutter 0.512
88
name /icub/cam/left
99
brightness 0
1010
DR2
11-
stamp
12-
sharpness 0.499
11+
stamp
12+
sharpness 0.518
1313
hue 0.479
1414
gamma 0.399
15-
saturation 0.449
16-
framerate 30
17-
#d 0
18-
guid 00b09d01009da734
15+
saturation 0.467
16+
framerate 15
17+
#d 1
18+
guid 00b09d0100c77485
1919
#<64bit global identifier, without the leading 0x> then remove the d option

iCubGenova09/camera/dragonfly2_config_left640_480.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ hue 0.48
1414
gamma 0.4
1515
saturation 0.420
1616
framerate 25
17-
#d 0
18-
guid 00b09d01009da734
17+
#d 1
18+
guid 00b09d0100c77485
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
device dragonfly2
2+
width 320
3+
height 240
4+
video_type 1
5+
white_balance 0.561 0.631
6+
gain 0.0
7+
shutter 0.512
8+
name /icub/cam/left
9+
brightness 0
10+
DR2
11+
stamp
12+
sharpness 0.518
13+
hue 0.479
14+
gamma 0.399
15+
saturation 0.467
16+
framerate 30
17+
#d 1
18+
guid 00b09d0100c77485
19+
#<64bit global identifier, without the leading 0x> then remove the d option

iCubGenova09/camera/dragonfly2_config_left_bayer_320_240.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ gamma 0.4
1515
saturation 0.271
1616
framerate 30
1717
use_network_time 1
18-
#d 0
19-
guid 00b09d0100b79535
18+
#d 1
19+
guid 00b09d0100c77485
2020
#<64bit global identifier, without the leading 0x> then remove the d option

iCubGenova09/camera/dragonfly2_config_left_bayer_640_480.ini

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ device dragonfly2raw
22
width 640
33
height 480
44
video_type 3
5-
white_balance 0.477 0.514
6-
gain 0.0
5+
white_balance 0.477 0.514
6+
gain 0.0
77
shutter 0.666
8-
name /icub/cam/left
8+
name /icub/cam/left
99
brightness 0
1010
DR2
11-
stamp
11+
stamp
1212
sharpness 1.0
1313
hue 0.48
1414
gamma 0.4
1515
saturation 0.271
1616
framerate 30
1717
use_network_time 1
18-
#d 0
19-
guid 00b09d0100b79535
18+
#d 1
19+
guid 00b09d0100c77485
2020
#<64bit global identifier, without the leading 0x> then remove the d option
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
device dragonfly2
2-
width 320
3-
height 240
4-
video_type 1
5-
white_balance 0.561 0.631
2+
width 1024
3+
height 768
4+
video_type 10
5+
white_balance 0.561 0.627
66
gain 0.0
7-
shutter 0.512
7+
shutter 0.635
88
name /icub/cam/right
99
brightness 0
1010
DR2
11-
stamp
12-
sharpness 0.518
11+
stamp
12+
sharpness 0.499
1313
hue 0.479
1414
gamma 0.399
15-
saturation 0.467
16-
framerate 30
17-
#d 1
18-
guid 00b09d01009da726
15+
saturation 0.449
16+
framerate 15
17+
#d 0
18+
guid 00b09d0100bbb395
1919
#<64bit global identifier, without the leading 0x> then remove the d option

iCubGenova09/camera/dragonfly2_config_right640_480.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ hue 0.48
1414
gamma 0.4
1515
saturation 0.420
1616
framerate 25
17-
#d 1
18-
guid 00b09d01009da726
17+
#d 0
18+
guid 00b09d0100bbb395
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
device dragonfly2
2+
width 320
3+
height 240
4+
video_type 1
5+
white_balance 0.561 0.627
6+
gain 0.0
7+
shutter 0.635
8+
name /icub/cam/right
9+
brightness 0
10+
DR2
11+
stamp
12+
sharpness 0.499
13+
hue 0.479
14+
gamma 0.399
15+
saturation 0.449
16+
framerate 30
17+
#d 0
18+
guid 00b09d0100bbb395
19+
#<64bit global identifier, without the leading 0x> then remove the d option

iCubGenova09/camera/dragonfly2_config_right_bayer_320_240.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ gamma 0.4
1515
saturation 0.271
1616
framerate 30
1717
use_network_time 1
18-
#d 1
19-
guid 00b09d0100b79534
18+
#d 0
19+
guid 00b09d0100bbb395
2020
#<64bit global identifier, without the leading 0x> then remove the d option

iCubGenova09/camera/dragonfly2_config_right_bayer_640_480.ini

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ device dragonfly2raw
22
width 640
33
height 480
44
video_type 3
5-
white_balance 0.477 0.514
6-
gain 0.0
5+
white_balance 0.477 0.514
6+
gain 0.0
77
shutter 0.666
8-
name /icub/cam/right
8+
name /icub/cam/right
99
brightness 0
1010
DR2
11-
stamp
11+
stamp
1212
sharpness 1.0
1313
hue 0.48
1414
gamma 0.4
1515
saturation 0.271
1616
framerate 30
1717
use_network_time 1
18-
#d 1
19-
guid 00b09d0100b79534
18+
#d 0
19+
guid 00b09d0100bbb395
2020
#<64bit global identifier, without the leading 0x> then remove the d option

iCubGenova09/estimators/wholebodydynamics.xml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<param name="jointVelFilterCutoffInHz">3.0</param> <!-- used if useJointVelocity is set to true -->
1919
<param name="jointAccFilterCutoffInHz">3.0</param> <!-- used if useJointAcceleration is set to true -->
2020
<param name="useSkinForContacts">false</param>
21+
<param name="publishNetExternalWrenches">true</param>
2122
<!-- <param name="assume_fixed">root_link</param>-->
2223
<group name="HW_USE_MAS_IMU">
2324
<param name="accelerometer">rfeimu_acc</param>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<cluster name="icub09" user="icub">
2+
3+
<!-- specify type="yarpserver" or type="yarpserver3" to use the old or new nameserver default behavior is to use yarpserver3 -->
4+
<nameserver namespace="/icub09" node="icub-console" type="yarpserver"> </nameserver>
5+
6+
<!-- specify nodes, if you want to enable display on desktop please specify which desktop to use
7+
this is usually the value of the DISPLAY variable when logged on -->
8+
<node display=":1" address="10.0.0.158">icub-console</node>
9+
<node display=":1" address="10.0.10.164">icub-console-gui</node>
10+
<node display=":1">icub-cuda</node>
11+
<node>icub-head</node>
12+
<node>icub-virtualizer</node>
13+
<node display=":1" address="10.0.10.29">icub29</node>
14+
15+
</cluster>
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<application>
2+
3+
<name>iCub3SkinGui</name>
4+
<description>Application for iCub3 skin gui visualization</description>
5+
6+
<var name="generic_node">localhost</var>
7+
8+
<module>
9+
<name>iCubSkinGui</name>
10+
<parameters>--from left_upperarm_V3.ini</parameters>
11+
<node>${generic_node}</node>
12+
</module>
13+
14+
<module>
15+
<name>iCubSkinGui</name>
16+
<parameters>--from right_upperarm_V3.ini</parameters>
17+
<node>${generic_node}</node>
18+
<tag>yarpdatadumper</tag>
19+
</module>
20+
21+
<connection>
22+
<from>/icub/skin/left_upperarm</from>
23+
<to>/skinGui/left_upperarm:i</to>
24+
<protocol>udp</protocol>
25+
</connection>
26+
27+
<connection>
28+
<from>/icub/skin/right_upperarm</from>
29+
<to>/skinGui/right_upperarm:i</to>
30+
<protocol>udp</protocol>
31+
</connection>
32+
33+
</application>

iCubGenova09/extra/scripts/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Additional Commands
2+
3+
This folder contains a set of script and aliases that ease the use of the robot.
4+
In order to use them, we assume that ``robots-configuration`` has been installed using the [``robotology-superbuild``](https://github.com/robotology/robotology-superbuild), and that the ``ROBOTOLOGY_SUPERBUILD_SOURCE_DIR`` and ``YARP_ROBOT_NAME`` environmental variables have been set.
5+
Then, in the ``.bashrc_iCub`` file, append the following lines
6+
```sh
7+
additionalCommandsFile=${ROBOTOLOGY_SUPERBUILD_SOURCE_DIR}/src/robots-configuration/${YARP_ROBOT_NAME}/extra/scripts/additionalCommands.sh
8+
9+
if [ -f "$additionalCommandsFile" ]; then
10+
source $additionalCommandsFile
11+
fi
12+
```
13+
14+
After opening a new terminal, you can type ``helpRobot`` to get a list of useful commands.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## Additional aliases and commands to use the robot
2+
3+
getParentDir () {
4+
SOURCE="${1}"
5+
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
6+
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
7+
SOURCE="$(readlink "$SOURCE")"
8+
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
9+
done
10+
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
11+
}
12+
13+
getParentDir "${BASH_SOURCE[0]}"
14+
15+
# The directory where this script is
16+
export ADDITIONAL_COMMANDS_DIR="$DIR"
17+
18+
19+
#Robots Configuration settings
20+
alias robotsConfigurationInstaller='bash ${ADDITIONAL_COMMANDS_DIR}/installRobotsConfiguration.sh'
21+
export ROBOTS_CONFIGURATION_DIR=${ROBOTOLOGY_SUPERBUILD_SOURCE_DIR}/src/robots-configuration/${YARP_ROBOT_NAME}
22+
alias gotoRobotsConfigurationFolder='cd $ROBOTS_CONFIGURATION_DIR'
23+
24+
#Automatic Joypad configuration
25+
alias connectToJoypad='sudo expect ${ADDITIONAL_COMMANDS_DIR}/bluetoothConnect.sh 28:9A:4B:08:E1:1B'
26+
27+
# Go to DCM folder
28+
alias dcmFolder='cd ${ROBOTOLOGY_SUPERBUILD_SOURCE_DIR}/src/walking-controllers/src/WalkingModule/app/robots/${YARP_ROBOT_NAME}'
29+
30+
# Go to the corresponding build folder in the superbuild
31+
alias goToBuildSuperbuild='cd ../../build/src/${PWD##*/}'
32+
33+
## Alias for running a diff between the source and the install of the configuration files
34+
alias configurationSourceInstallDiff='bash ${ADDITIONAL_COMMANDS_DIR}/checkConfigurationFiles.sh'
35+
36+
alias test-speaker='speaker-test -t wav -c 1'
37+
38+
# Test if the microphone is working
39+
test-microphone() {
40+
arecord -vvv -f dat /dev/null
41+
}
42+
43+
GREEN='\033[0;32m'
44+
NC='\033[0m' # No Color
45+
## Alias for displaying info messages about the other aliases
46+
alias helpRobot='echo -e "Here some useful commands:
47+
${GREEN}robotsConfigurationInstaller${NC} Takes care of installing the robot configuration files from any folder.
48+
${GREEN}gotoRobotsConfigurationFolder${NC} Go to the source folder of the robot configuration files.
49+
${GREEN}configurationSourceInstallDiff${NC} Performs a diff between the source and install configuration files. If there is no difference, it prints nothing.
50+
${GREEN}connectToJoypad${NC} To reconnect the bluetooth connection of the robot joypad.
51+
${GREEN}test-speaker${NC} Test if the speaker is working.
52+
${GREEN}test-microphone${NC} Test if the micorphone is working.
53+
${GREEN}dcmFolder${NC} Go to the robot walking configuration files.
54+
${GREEN}goToBuildSuperbuild${NC} Go to the corresponding build folder of the robotology superbuild."'
55+
56+
if [ "$PS1" ]; then
57+
echo -e "Type ${GREEN}helpRobot${NC} for a list of useful commands."
58+
fi
59+

0 commit comments

Comments
 (0)