Skip to content

Commit 3ab9c6b

Browse files
authored
add logging of waist imu and cartesian wrenches for ergoCubGazeboV1_1 (#1009)
1 parent 7130496 commit 3ab9c6b

4 files changed

Lines changed: 28 additions & 9 deletions

File tree

devices/YarpRobotLoggerDevice/app/robots/ergoCubGazeboV1_1/blf-yarp-robot-logger-interfaces/imu_clients.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
<devices>
77

8+
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="waist_imu_client" type="multipleanalogsensorsclient">
9+
<param name="remote">/ergocubSim/waist/inertials</param>
10+
<param name="local">/yarp_robot_logger/waist/inertials</param>
11+
<param name="timeout">0.5</param>
12+
<param name="carrier">fast_tcp</param>
13+
</device>
14+
815
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="left_foot_imu_client" type="multipleanalogsensorsclient">
916
<param name="remote">/ergocubSim/left_foot_heel_tiptoe/imu</param>
1017
<param name="local">/yarp_robot_logger/left_foot/imu</param>

devices/YarpRobotLoggerDevice/app/robots/ergoCubGazeboV1_1/blf-yarp-robot-logger-interfaces/mas-remapper.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="mas-remapper" type="multipleanalogsensorsremapper">
77
<param name="period">10</param>
88
<param name="ThreeAxisGyroscopesNames">
9-
(l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)
9+
(waist_imu_0, l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)
1010
</param>
1111
<param name="ThreeAxisLinearAccelerometersNames">
12-
(l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)
12+
(waist_imu_0, l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)
1313
</param>
1414
<param name="ThreeAxisMagnetometersNames">
15-
(l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)
15+
(waist_imu_0,l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)
1616
</param>
1717
<param name="OrientationSensorsNames">
18-
(l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)
18+
(waist_imu_0, l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)
1919
</param>
2020
<param name="SixAxisForceTorqueSensorsNames">
2121
(l_arm_ft, r_arm_ft, l_leg_ft, l_foot_front_ft, l_foot_rear_ft, r_leg_ft, r_foot_front_ft, r_foot_rear_ft)
@@ -32,6 +32,7 @@
3232
<elem name="right_leg_ft_client">right_leg_ft_client</elem>
3333
<elem name="left_foot_imu_client">left_foot_imu_client</elem>
3434
<elem name="right_foot_imu_client">right_foot_imu_client</elem>
35+
<elem name="waist_imu_client">waist_imu_client</elem>
3536
</paramlist>
3637
</action>
3738

devices/YarpRobotLoggerDevice/app/robots/ergoCubGazeboV1_1/launch-yarp-robot-logger.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ BSD-3-Clause license. -->
1212
<xi:include href="blf-yarp-robot-logger-interfaces/ft_clients.xml" />
1313
<xi:include href="blf-yarp-robot-logger-interfaces/imu_clients.xml" />
1414
<xi:include href="blf-yarp-robot-logger-interfaces/mas-remapper.xml" />
15+
<xi:include href="blf-yarp-robot-logger-interfaces/wrench_clients.xml" />
1516
<xi:include href="./yarp-robot-logger.xml" />
1617
</devices>
1718
</robot>

devices/YarpRobotLoggerDevice/app/robots/ergoCubGazeboV1_1/yarp-robot-logger.xml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ BSD-3-Clause license. -->
6262
<param name="stream_joint_states">true</param>
6363
<param name="stream_joint_accelerations">false</param>
6464
<param name="stream_inertials">true</param>
65-
<param name="stream_cartesian_wrenches">false</param>
65+
<param name="stream_cartesian_wrenches">true</param>
6666
<param name="stream_forcetorque_sensors">true</param>
6767
<param name="stream_pids">false</param>
6868
<param name="stream_motor_PWM">false</param>
@@ -78,11 +78,15 @@ BSD-3-Clause license. -->
7878
<param name="temperature_sensors_list">("l_arm_ft", "r_arm_ft", "l_leg_ft", "l_foot_front_ft", "l_foot_rear_ft", "r_leg_ft", "r_foot_front_ft", "r_foot_rear_ft")</param>
7979
</group>
8080

81+
<group name="CartesianWrenches">
82+
<param name="cartesian_wrenches_list">("left_front_wrench_client", "left_rear_wrench_client", "right_front_wrench_client", "right_rear_wrench_client", "left_arm_wrench_client", "right_arm_wrench_client")</param>
83+
</group>
84+
8185
<group name="InertialSensors">
82-
<param name="accelerometers_list">(l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)</param>
83-
<param name="gyroscopes_list">(l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)</param>
84-
<param name="magnetometers_list">(l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)</param>
85-
<param name="orientation_sensors_list">(l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)</param>
86+
<param name="accelerometers_list">(waist_imu_0, l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)</param>
87+
<param name="gyroscopes_list">(waist_imu_0, l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)</param>
88+
<param name="magnetometers_list">(waist_imu_0, l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)</param>
89+
<param name="orientation_sensors_list">(waist_imu_0, l_foot_front_ft_imu, l_foot_rear_ft_imu, r_foot_front_ft_imu, r_foot_rear_ft_imu)</param>
8690
</group>
8791

8892
</group>
@@ -91,6 +95,12 @@ BSD-3-Clause license. -->
9195
<action phase="startup" level="15" type="attach">
9296
<paramlist name="networks">
9397
<elem name="all_joints">all_joints_mc</elem>
98+
<elem name="left_front_wrench_client">left_front_wrench_client</elem>
99+
<elem name="left_rear_wrench_client">left_rear_wrench_client</elem>
100+
<elem name="right_front_wrench_client">right_front_wrench_client</elem>
101+
<elem name="right_rear_wrench_client">right_rear_wrench_client</elem>
102+
<elem name="right_arm_wrench_client">right_arm_wrench_client</elem>
103+
<elem name="left_arm_wrench_client">left_arm_wrench_client</elem>
94104
<elem name="mas-remapper">mas-remapper</elem>
95105
</paramlist>
96106
</action>

0 commit comments

Comments
 (0)