Request for map failed [closed]

asked 2020-09-13 04:13:36 -0600

anonymous user

Anonymous

updated 2020-09-13 04:33:54 -0600

Hey all,

I'm trying to follow this excellent resource to create a navigation stack for a multi-robot system: https://answers.ros.org/question/4143...

However, I'm having a hard time creating the launch files for it because although I'm running the map_server, I keep getting the warning: Request for map failed; trying again..., which stops me from moving forward.

I started off by using just one robot to make the system as simple as possible but it still isn't working.

The weirdest part is that although I get that Warning, the map appears in RVIZ correctly.

Just like in the resource I mentioned, I have two files for the navigation stack:

  • multi_robot_navigation.launch;
  • move_base.launch.

The files are below:

multi_robot_navigation.launch:

<launch>
  <arg name="model" default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]"/>

  <param name="/use_sim_time" value="true"/>

  <!-- Run the map server -->
  <node name="map_server" pkg="map_server" type="map_server" args="$(find gspn_framework_package)/ros/config/map.yaml" >
    <param name="frame_id" value="map" />
  </node>

  <group ns="robot_1">
    <param name="tf_prefix" value="robot1_tf" />
    <param name="amcl/initial_pose_x" value="-0.5" />
    <param name="amcl/initial_pose_y" value="0.5" />
    <include file="$(find gspn_framework_package)/ros/launch/static_transform_publisher_test/move_base.launch" />
  </group>
  <node name="rviz" pkg="rviz" type="rviz" args="-d $(find gspn_framework_package)/ros/config/myconfig.rviz"/>

</launch>

move_base.launch:

<launch>
  <arg name="model" default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]"/>
  <arg name="name_space"/>
  <!--- Run AMCL -->
  <include file="$(find turtlebot3_navigation)/launch/amcl.launch"/>

  <!-- Define your move_base node -->
  <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
    <rosparam file="$(find turtlebot3_navigation)/param/costmap_common_params_$(arg model).yaml" command="load" ns="global_costmap" />
    <rosparam file="$(find turtlebot3_navigation)/param/costmap_common_params_$(arg model).yaml" command="load" ns="local_costmap" />
    <rosparam file="$(find turtlebot3_navigation)/param/local_costmap_params.yaml" command="load" />
    <rosparam file="$(find turtlebot3_navigation)/param/global_costmap_params.yaml" command="load" />
    <rosparam file="$(find turtlebot3_navigation)/param/dwa_local_planner_params_$(arg model).yaml" command="load" />
  <remap from="map" to="/map" />
  </node>
</launch>

I am using ROS Noetic and I have been stuck with this issue for a long time and any help would be great! Thanks in advance :)

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2021-01-22 03:41:10.754976