ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need to remap topic name on at least one of the nodes, and give deffirent names to them. Easiest way is use launch file:

<launch> <node name="hokuyo0" pkg="hokuyo_node" type="hokuyo_node"> <remap from="scan" to="scan0"/> </node> <node name="hokuyo1" pkg="hokuyo_node" type="hokuyo_node"> <remap from="scan" to="scan1"/> </node> </launch>

click to hide/show revision 2
indetation correction

You need to remap topic name on at least one of the nodes, and give deffirent names to them. Easiest way is use launch file:

<launch>
    <node name="hokuyo0" pkg="hokuyo_node" type="hokuyo_node">
         <param name="port" type="string" value="/dev/ttyACM0" />
        <remap from="scan" to="scan0"/>
to="scan0" />
    </node>
    <node name="hokuyo1" pkg="hokuyo_node" type="hokuyo_node">
         <param name="port" type="string" value="/dev/ttyACM1" />
        <remap from="scan" to="scan1"/>
to="scan1" />
    </node>
   </launch>

</launch>