Skip to content

Commit

Permalink
Merge pull request #240 from robotology/fix234
Browse files Browse the repository at this point in the history
iCubGazeboV2_5_visuomanip: migrate hand encoder arrays (i.e. MAIS) sensors to use multipleanalogsensorsserver and gazebo_yarp_robotinterface
  • Loading branch information
traversaro authored Sep 19, 2024
2 parents 0b08b1d + 4798b65 commit 468b9f7
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
cmake_minimum_required(VERSION 3.8...3.16)

project(icub-models
VERSION 2.7.0)
VERSION 2.8.0)

include(GNUInstallDirs)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
[WRAPPER]
name /icubSim/left_hand/analog:o
period 10
networks (left_mais)
device analogServer

[left_mais]
disableImplicitNetworkWrapper
yarpDeviceName icub_left_hand_mais_hardware_device
sensorName l_hand_mais
jointNames l_hand_thumb_1_joint l_hand_thumb_2_joint l_hand_thumb_3_joint l_hand_index_1_joint l_hand_index_2_joint l_hand_index_3_joint l_hand_middle_1_joint l_hand_middle_2_joint l_hand_middle_3_joint l_hand_ring_1_joint l_hand_ring_2_joint l_hand_ring_3_joint l_hand_little_1_joint l_hand_little_2_joint l_hand_little_3_joint
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
[WRAPPER]
name /icubSim/right_hand/analog:o
period 10
networks (right_mais)
device analogServer

[right_mais]
disableImplicitNetworkWrapper
yarpDeviceName icub_right_hand_mais_hardware_device
sensorName r_hand_mais
jointNames r_hand_thumb_1_joint r_hand_thumb_2_joint r_hand_thumb_3_joint r_hand_index_1_joint r_hand_index_2_joint r_hand_index_3_joint r_hand_middle_1_joint r_hand_middle_2_joint r_hand_middle_3_joint r_hand_ring_1_joint r_hand_ring_2_joint r_hand_ring_3_joint r_hand_little_1_joint r_hand_little_2_joint r_hand_little_3_joint
10 changes: 9 additions & 1 deletion iCub_manual/conf_manual/iCubGazeboV2_5_visuomanip/icub.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE robot PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">

<robot name="iCubGazeboV3" build="1" portprefix="/icubSim" xmlns:xi="http://www.w3.org/2001/XInclude">
<robot name="iCubGazeboV2_5" build="1" portprefix="/icubSim" xmlns:xi="http://www.w3.org/2001/XInclude">
<devices>

<!-- MOTOR CONTROLLERS -->
Expand Down Expand Up @@ -35,5 +35,13 @@

<!-- -->

<!-- MAIS (i.e. ENCODER ARRAY) SENSORS -->

<xi:include href="wrappers/MAIS/left_arm-mais_wrapper.xml" />
<xi:include href="wrappers/MAIS/right_arm-mais_wrapper.xml" />

<!-- -->


</devices>
</robot>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE robot PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">

<robot name="iCubGazeboV3" build="1" portprefix="/icubSim" xmlns:xi="http://www.w3.org/2001/XInclude">
<robot name="iCubGazeboV2_5" build="1" portprefix="/icubSim" xmlns:xi="http://www.w3.org/2001/XInclude">
<devices>

<!-- MOTOR CONTROLLERS -->
Expand Down Expand Up @@ -35,6 +35,13 @@

<!-- -->

<!-- MAIS (i.e. ENCODER ARRAY) SENSORS -->

<xi:include href="wrappers/MAIS/left_arm-mais_wrapper.xml" />
<xi:include href="wrappers/MAIS/right_arm-mais_wrapper.xml" />

<!-- -->

<!-- ROS 2 entries -->
<xi:include href="wrappers/motorControl/alljoints-mc_remapper.xml" />
<xi:include href="wrappers/motorControl/alljoints-mc_nws_ros2.xml" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?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_arm-mais_wrapper" type="multipleanalogsensorsserver">
<param name="period"> 10 </param>
<param name="name"> /icubSim/left_hand/MAIS </param>


<action phase="startup" level="5" type="attach">
<paramlist name="networks">
<elem name="leftMais"> icub_left_hand_mais_hardware_device </elem>
</paramlist>
</action>

<action phase="shutdown" level="20" type="detach" />
</device>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?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_arm-mais_wrapper" type="multipleanalogsensorsserver">
<param name="period"> 10 </param>
<param name="name"> /icubSim/right_hand/MAIS </param>


<action phase="startup" level="5" type="attach">
<paramlist name="networks">
<elem name="rightMais"> icub_right_hand_mais_hardware_device </elem>
</paramlist>
</action>

<action phase="shutdown" level="20" type="detach" />
</device>
2 changes: 1 addition & 1 deletion iCub_manual/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package>
<name>iCub</name>
<version>2.7.0</version>
<version>2.8.0</version>
<description>
This is not an actual package, but rather a placeholder to
make sure that the share/iCub directory is found as the
Expand Down

0 comments on commit 468b9f7

Please sign in to comment.