Skip to content

Commit

Permalink
Migrate ergoCub FT to have one NWS for each part
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro committed May 16, 2023
1 parent 4d8a1cc commit 53b69a7
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 53 deletions.
5 changes: 3 additions & 2 deletions ergoCubSN000/ergocub_all.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@
<xi:include href="hardware/FT/left_leg-eb8-j0_3-strain.xml" />
<xi:include href="hardware/FT/right_leg-eb6-j0_3-strain.xml" />

<!-- FT SENSORS - REMAPPERS -->
<xi:include href="wrappers/FT/left_leg-FT_remapper.xml" />
<xi:include href="wrappers/FT/right_leg-FT_remapper.xml" />

<!-- FT SENSORS - MULTIPLE ANALOG SENSOR SERVERS -->
<xi:include href="wrappers/FT/left_arm-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_arm-FT_wrapper.xml" />
<xi:include href="wrappers/FT/left_foot-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_foot-FT_wrapper.xml" />
<xi:include href="wrappers/FT/left_leg-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_leg-FT_wrapper.xml" />

Expand Down
6 changes: 3 additions & 3 deletions ergoCubSN000/ergocub_all_ros2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
<xi:include href="wrappers/FT/left_leg-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_leg-FT_wrapper.xml" />

<xi:include href="wrappers/FT/left_leg-FT_remapper.xml" />
<xi:include href="wrappers/FT/right_leg-FT_remapper.xml" />

<xi:include href="hardware/FT/left_leg-eb8-j0_3-strain.xml" />
<xi:include href="hardware/FT/right_leg-eb6-j0_3-strain.xml" />


<xi:include href="wrappers/FT/left_foot-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_foot-FT_wrapper.xml" />

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

Expand Down
6 changes: 4 additions & 2 deletions ergoCubSN000/ergocub_wbd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@
<xi:include href="hardware/FT/left_leg-eb8-j0_3-strain.xml" />
<xi:include href="hardware/FT/right_leg-eb6-j0_3-strain.xml" />

<!-- FT SENSORS - REMAPPERS -->
<xi:include href="wrappers/FT/left_leg-FT_remapper.xml" />
<xi:include href="wrappers/FT/right_leg-FT_remapper.xml" />

<!-- FT SENSORS - MULTIPLE ANALOG SENSOR SERVERS -->
<xi:include href="wrappers/FT/left_arm-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_arm-FT_wrapper.xml" />
<xi:include href="wrappers/FT/left_foot-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_foot-FT_wrapper.xml" />
<xi:include href="wrappers/FT/left_leg-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_leg-FT_wrapper.xml" />

Expand Down
6 changes: 3 additions & 3 deletions ergoCubSN000/ft.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
<xi:include href="wrappers/FT/left_leg-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_leg-FT_wrapper.xml" />

<xi:include href="wrappers/FT/left_leg-FT_remapper.xml" />
<xi:include href="wrappers/FT/right_leg-FT_remapper.xml" />

<xi:include href="hardware/FT/left_leg-eb8-j0_3-strain.xml" />
<xi:include href="hardware/FT/right_leg-eb6-j0_3-strain.xml" />

<xi:include href="wrappers/FT/left_foot-FT_wrapper.xml" />
<xi:include href="wrappers/FT/right_foot-FT_wrapper.xml" />

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

Expand Down
17 changes: 0 additions & 17 deletions ergoCubSN000/wrappers/FT/left_foot-FT_wrapper.xml

This file was deleted.

22 changes: 22 additions & 0 deletions ergoCubSN000/wrappers/FT/left_leg-FT_remapper.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE devices PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">


<device xmlns:xi="http://www.w3.org/2001/XInclude" name="left_leg-FT_remapper" type="multipleanalogsensorsremapper">
<!-- The below parameter names are set from the macro MAS_getTagFromEnum(enum MAS_SensorType) + "Names"
defined in <yarp/dev/MultipleAnalogSensorsInterfaces.h> and respective device source file -->
<param name="SixAxisForceTorqueSensorsNames">
(l_leg_ft_sensor l_foot_rear_ft_sensor l_foot_front_ft_sensor)
</param>
<param name="TemperatureSensorsNames">
(l_leg_ft_sensor l_foot_rear_ft_sensor l_foot_front_ft_sensor)
</param>
<action phase="startup" level="5" type="attach">
<paramlist name="networks">
<elem name="left_leg-eb8-j0_3-strain"> left_leg-eb8-j0_3-strain </elem>
<elem name="left_leg-eb9-j4_5-strain"> left_leg-eb9-j4_5-strain </elem>
</paramlist>
</action>

<action phase="shutdown" level="20" type="detach" />
</device>
7 changes: 3 additions & 4 deletions ergoCubSN000/wrappers/FT/left_leg-FT_wrapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
<param name="period"> 2 </param>
<param name="name"> /ergocub/left_leg/FT </param>

<action phase="startup" level="5" type="attach">
<action phase="startup" level="10" type="attach">
<paramlist name="networks">
<!-- The param value must match the device name in the corresponding body_part-ebX-jA_B-strain.xml file -->
<elem name="FirstStrain"> left_leg-eb8-j0_3-strain </elem>
<elem name="left_leg-FT_remapper"> left_leg-FT_remapper </elem>
</paramlist>
</action>

<action phase="shutdown" level="5" type="detach" />
<action phase="shutdown" level="15" type="detach" />
</device>

18 changes: 0 additions & 18 deletions ergoCubSN000/wrappers/FT/right_foot-FT_wrapper.xml

This file was deleted.

22 changes: 22 additions & 0 deletions ergoCubSN000/wrappers/FT/right_leg-FT_remapper.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE devices PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">


<device xmlns:xi="http://www.w3.org/2001/XInclude" name="right_leg-FT_remapper" type="multipleanalogsensorsremapper">
<!-- The below parameter names are set from the macro MAS_getTagFromEnum(enum MAS_SensorType) + "Names"
defined in <yarp/dev/MultipleAnalogSensorsInterfaces.h> and respective device source file -->
<param name="SixAxisForceTorqueSensorsNames">
(r_leg_ft_sensor r_foot_rear_ft_sensor r_foot_front_ft_sensor)
</param>
<param name="TemperatureSensorsNames">
(r_leg_ft_sensor r_foot_rear_ft_sensor r_foot_front_ft_sensor)
</param>
<action phase="startup" level="5" type="attach">
<paramlist name="networks">
<elem name="right_leg-eb6-j0_3-strain"> right_leg-eb6-j0_3-strain </elem>
<elem name="right_leg-eb7-j4_5-strain"> right_leg-eb7-j4_5-strain </elem>
</paramlist>
</action>

<action phase="shutdown" level="20" type="detach" />
</device>
7 changes: 3 additions & 4 deletions ergoCubSN000/wrappers/FT/right_leg-FT_wrapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
<param name="period"> 2 </param>
<param name="name"> /ergocub/right_leg/FT </param>

<action phase="startup" level="5" type="attach">
<action phase="startup" level="10" type="attach">
<paramlist name="networks">
<!-- The param value must match the device name in the corresponding body_part-ebX-jA_B-strain.xml file -->
<elem name="FirstStrain"> right_leg-eb6-j0_3-strain </elem>
<elem name="right_leg-FT_remapper"> right_leg-FT_remapper </elem>
</paramlist>
</action>

<action phase="shutdown" level="5" type="detach" />
<action phase="shutdown" level="15" type="detach" />
</device>

0 comments on commit 53b69a7

Please sign in to comment.