Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nav2 map frame does not exist #274

Closed
mbergman257 opened this issue Sep 21, 2023 · 2 comments
Closed

Nav2 map frame does not exist #274

mbergman257 opened this issue Sep 21, 2023 · 2 comments
Assignees
Labels
bug Something isn't working requiring changes to this package

Comments

@mbergman257
Copy link

Please provide the following information:

  • OS: Ubuntu 20.04
  • ROS Distro: Galactic
  • Built from source or installed: Installed
  • Package version: ros-galactic-turtlebot4-navigation 0.1.2-1focal.20221208.082815
  • TurtleBot4 Lite : G.5.2
  • Fast DDS
  • Discovery Server

Expected behaviour
Use nav2 stack to load saved map.yaml and launch navigation on Turtlebot4 lite

Actual behaviour
Map frame does not exist
tb4_debug3

To Reproduce
Provide the steps to reproduce:

  1. Successfully generate and save map with slam_sync (ref: https://turtlebot.github.io/turtlebot4-user-manual/tutorials/generate_map.html) Turned off TB4...
  2. Turn on Turtlebot4
  3. ssh into rpi, run: ros2 launch turtlebot4_navigation nav_bringup.launch.py slam:=off localization:=true map:=/home/ubuntu/lab.yaml (ref: https://turtlebot.github.io/turtlebot4-user-manual/tutorials/navigation.html)
  4. Open desktop terminal and run: ros2 launch turtlebot4_viz view_robot.launch.py

Errors

  • Nav terminal: gets stuck at [controller_server-5] [INFO] [1677764723.699949411] [local_costmap.local_costmap]: Creating Costmap
  • RVIZ Terminal: [rviz2-1] Warning: Invalid frame ID "map" passed to canTransform argument target_frame - frame does not exist [rviz2-1] at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.5/src/buffer_core.cpp
  • RVIZ Window: see image above
    Also tried in new terminal, which allows rviz to shows the map but does not update or show anything else (ref: ros2 launch turtlebot4_navigation nav_bringup.launch.py slam:=off localization:=false map:=office.yaml, stuck at creating map #40):
    ros2 lifecycle set map_server configure
    ros2 lifecycle set map_server activate

tb4_debug2

Other notes
I've tried a lot of things, but I'm not sure what to do now. Looks like the map needs to be published and a tf between map and base_link is needed? Thanks-

@mbergman257 mbergman257 added the bug Something isn't working requiring changes to this package label Sep 21, 2023
@hilary-luo
Copy link
Contributor

After launching localization did you set the 2d Pose Estimate? If you are not sure what I am referring to see this section of the navigation tutorial.

@mbergman257
Copy link
Author

facepalm yes I forgot to do this step. I should go to bed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working requiring changes to this package
Projects
None yet
Development

No branches or pull requests

2 participants