Complete the code to launch a single node named 'talker' in ROS.
<launch> <node pkg="roscpp_tutorials" type="talker" name="[1]"/> </launch>
The name attribute sets the node's name. Here, it should be 'talker' to match the node type.
Complete the code to launch two nodes: 'talker' and 'listener'.
<launch> <node pkg="roscpp_tutorials" type="talker" name="talker"/> <node pkg="roscpp_tutorials" type="[1]" name="listener"/> </launch>
The second node's type should be 'listener' to match its name and function.
Fix the error in the launch file to correctly launch two nodes.
<launch> <node pkg="roscpp_tutorials" type="talker" name="talker"/> <node pkg="roscpp_tutorials" type="listener" name="[1]"/> </launch>
The second node's name should be 'listener' to match its type and avoid conflicts.
Fill both blanks to launch two nodes with remapped topics.
<launch> <node pkg="roscpp_tutorials" type="talker" name="talker"> <remap from="chatter" to="[1]"/> </node> <node pkg="roscpp_tutorials" type="listener" name="listener"> <remap from="chatter" to="[2]"/> </node> </launch>
The talker remaps 'chatter' to 'chatter_out' and the listener remaps 'chatter' to 'chatter_in' to avoid topic conflicts.
Fill all three blanks to launch two nodes with namespaces and remapped topics.
<launch> <group ns="[1]"> <node pkg="roscpp_tutorials" type="talker" name="talker"> <remap from="chatter" to="[2]"/> </node> </group> <group ns="[3]"> <node pkg="roscpp_tutorials" type="listener" name="listener"/> </group> </launch>
The first group uses namespace 'robot1' and remaps 'chatter' to 'robot1/chatter_out'. The second group uses namespace 'robot2'.
