Skip to content

Commit 2501f50

Browse files
committed
Added file to control the ergocub arm
1 parent dc4c646 commit 2501f50

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
<robot name="ergoCub-Retargeting" build=0 portprefix="">
4+
5+
6+
<device type="human_state_nwc_yarp" name="RobotStateRemapper">
7+
<param name="humanStateDataPort">/ergoCub/RobotStateServer/state:o</param>
8+
</device>
9+
10+
<!-- uncomment if you want to use the RobotStateProvider data to control the robot position -->
11+
<device type="robot_position_controller" name="RobotPositionController">
12+
<param name="period">0.100</param>
13+
<param name="controlMode">positionDirect</param>
14+
<param name="refSpeed">15.0</param>
15+
<param name="samplingTime">0.01</param>
16+
<param name="smoothingTime">0.25</param>
17+
<param name="initialSmoothingTime">2.5</param>
18+
<param name="maxSmoothingCount">250</param>
19+
<param name="controlBoardsList">(left_arm)</param>
20+
<param name="remotePrefix">/ergocub</param>
21+
<param name="localPrefix">/robotPositionController</param>
22+
<param name="head">(neck_pitch neck_roll neck_yaw)</param>
23+
<param name="torso">(torso_yaw torso_roll torso_pitch)</param>
24+
<param name="left_arm">(l_shoulder_pitch l_shoulder_roll l_shoulder_yaw l_elbow l_wrist_roll l_wrist_pitch l_wrist_yaw)</param>
25+
<param name="right_arm">(r_shoulder_pitch r_shoulder_roll r_shoulder_yaw r_elbow r_wrist_roll r_wrist_pitch r_wrist_yaw)</param>
26+
<action phase="startup" level="5" type="attach">
27+
<paramlist name="networks">
28+
<elem name="RobotPositionController">RobotStateRemapper</elem>
29+
</paramlist>
30+
</action>
31+
<action phase="shutdown" level="4" type="detach"/>
32+
</device>
33+
34+
</robot>

0 commit comments

Comments
 (0)