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

Map is not initialized, with Rviz and Gazebo simulation, ROS2

asked 2019-10-10 05:58:44 -0500

ninamwa gravatar image

updated 2021-10-26 09:22:14 -0500

lucasw gravatar image

Hi. I have been following the Turtlebot3 tutorial with ROS2 Dashing (http://emanual.robotis.com/docs/en/pl...) which works fine for all the steps. Now, i want to try out simulation in gazebo and navigation2 with a simple robot i have built on my own. As a starter i have been using the turtlebot files, the only thing i have changed is the design of the robot (inside the model and urdf files). The sensors etc. is kept the same. I also use the map and world for turtlebot3. I want to perform the simulation part in the tutorial. First I run the command:

 ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py

which correctly visualize the robot and world in Gazebo. Then I run

ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=True map:=$HOME/map.yaml

RviZ opens with the correct map, but a lot of errors occur both in Rviz and in the terminalwindow:

When I used the turtlebot model, this errors also occurred, but they where removed when I set the initial pose for the robot. Now, when I try to set the initial pose, the command line tells that amcl has received an initial pose and set it:

But the errors in rviz are still there and the command window keeps printing the same errors as before.

The error in Rviz are Global Status: Error, Fixed Frame:Frame [map] does not exist.

I assume it is the transform between the map and gazebo/odom(?) which is missing, but I tought it would be fine when I set the initial pose for the robot. Does anyone have any suggestions to what could be the problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-06-12 04:59:49 -0500

vaspo gravatar image

updated 2020-06-12 05:03:20 -0500

image description

Try to have the Fixed Frame changed. For example, a world frame.

http://wiki.ros.org/rviz/UserGuide#Co...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-10-10 05:58:44 -0500

Seen: 1,285 times

Last updated: Jun 12 '20