Content correction: Live class 64, Multiple robot navigation: Noetic

@staff
Course: Public Rosject: Live class 64, Multiple robot navigation: Noetic

The code used:

<launch>
    <arg name="robot_name"/>
    <arg name="init_pose"/>

    <node name="spawn_minibot_model" pkg="gazebo_ros" type="spawn_model"
     args="$(arg init_pose) -urdf -param /robot_description -model $(arg robot_name)"
     respawn="false" output="screen" />

    <node pkg="robot_state_publisher" type="state_publisher"
          name="robot_state_publisher" output="screen"/>
</launch>

Correction: the type=state_publisher in pkg="robot_state_publisher" should have been robot_state_publisher instead of state_publisher

Correction code is as below:

<launch>
    <arg name="robot_name"/>
    <arg name="init_pose"/>

    <node name="spawn_minibot_model" pkg="gazebo_ros" type="spawn_model"
     args="$(arg init_pose) -urdf -param /robot_description -model $(arg robot_name)"
     respawn="false" output="screen" />

    <node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher" output="screen"/>
</launch>

I had received errors with the former and the corrections shown in the latter gave me error-free output. Kindly make the changes.

3 Likes

Thanks for posting the correction, you are great!

1 Like