Skip to content

Commit 2d61361

Browse files
simeonedussonipattacini
authored andcommitted
[ergoCubSN002] skin updated to manage runtiime remapping
1 parent 4b69603 commit 2d61361

File tree

3 files changed

+11
-27
lines changed

3 files changed

+11
-27
lines changed

ergoCubSN002/ergocub.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
</params>
99

1010
<devices>
11+
12+
<!-- SKINS -->
13+
14+
<xi:include href="wrappers/skin/right_arm-skin_wrapper.xml" />
15+
<xi:include href="hardware/skin/right_arm-eb3-j2_3-skin.xml" />
16+
<xi:include href="wrappers/skin/left_arm-skin_wrapper.xml" />
17+
<xi:include href="hardware/skin/left_arm-eb4-j2_3-skin.xml" />
18+
1119

1220
<!-- POS4 -->
1321
<xi:include href="wrappers/POS/right_hand-pos_wrapper4.xml" disabled_by="disable_right_hand" />

ergoCubSN002/hardware/skin/left_arm-eb4-j2_3-skinSpec.xml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,12 @@
55

66
<group name="defaultCfgBoard">
77
<param name="period"> 50 </param>
8-
<param name="skinType"> 0 </param> <!-- 0 ==> new skin
8+
<param name="skinType"> 3 </param> <!-- 0 ==> new skin
99
1 ==> palm and fingertips skin
1010
2 ==> old skin without temperature compensation -->
1111
<param name="noLoad"> 0xf0 </param>
1212
<param name="diagnostic"> false </param> <!-- used to config high level -->
1313
</group>
14-
15-
<group name="specialCfgBoards">
16-
<!-- it tells some boards to be special.
17-
we can configure only: tx period, skinType, noLoad value.
18-
rule #1 -> CAN1:2 has: period = 50 ms, skinType = 1 (palm and fingertips skin), noLoad = 0xf0
19-
-->
20-
<param name="numOfSets"> 1 </param>
21-
<!-- CAN BUS = patch adr start adr end period type no_load -->
22-
<param name="boardSetCfg1"> 2 2 2 50 1 0xe8 </param>
23-
24-
</group>
2514

2615

2716
<group name="defaultCfgTriangle">
@@ -32,7 +21,7 @@
3221

3322
<group name="specialCfgTriangles">
3423
<param name="numOfSets"> 1 </param>
35-
<param name="triangleSetCfg1"> 2 2 0 4 1 1 0x0000 </param>
24+
<param name="triangleSetCfg1"> 2 2 0 8 1 1 0x0000 </param>
3625
<param name="triangleSetCfg2"> 2 2 0 15 1 1 0x0000 </param>
3726
<param name="triangleSetCfg3"> 2 2 8 8 1 1 0x0000 </param>
3827
<param name="triangleSetCfg4"> 2 2 12 12 1 1 0x0000 </param>

ergoCubSN002/hardware/skin/right_arm-eb3-j2_3-skinSpec.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,12 @@
55

66
<group name="defaultCfgBoard">
77
<param name="period"> 50 </param>
8-
<param name="skinType"> 0 </param> <!-- 0 ==> new skin
8+
<param name="skinType"> 3 </param> <!-- 0 ==> new skin
99
1 ==> palm and fingertips skin
1010
2 ==> old skin without temperature compensation -->
1111
<param name="noLoad"> 0xf0 </param>
1212
<param name="diagnostic"> false </param> <!-- used to config high level -->
1313
</group>
14-
15-
<group name="specialCfgBoards">
16-
<!-- it tells some boards to be special.
17-
we can configure only: tx period, skinType, noLoad value.
18-
rule #1 -> CAN1:14 has: period = 50 ms, skinType = 1 (palm and fingertips skin), noLoad = 0xf0
19-
rule #3 -> the CAN BUS is identified by the patch number!!!!!!!
20-
-->
21-
<param name="numOfSets"> 1 </param>
22-
<!-- CAN BUS = patch adr start adr end period type no_load -->
23-
<param name="boardSetCfg1"> 2 2 2 50 1 0xe8 </param>
24-
25-
</group>
26-
2714

2815
<group name="defaultCfgTriangle">
2916
<param name="enabled"> false </param>

0 commit comments

Comments
 (0)