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

Miss the map in tugbot_nav2 #1

Open
fxt-7 opened this issue May 15, 2024 · 2 comments
Open

Miss the map in tugbot_nav2 #1

fxt-7 opened this issue May 15, 2024 · 2 comments

Comments

@fxt-7
Copy link

fxt-7 commented May 15, 2024

Hi porizou, thanks for your great work, but when I want to build the project, the error "miss map in nav2" happened, could you please help to fix it?

@porizou
Copy link
Owner

porizou commented May 15, 2024

Hello @fxt-7, thank you for bringing this issue
The "miss map in nav2" error usually occurs when the map file is either not specified correctly or missing in the Nav2 configuration.

The path to the map file is specified in the following launch file.

tugbot_navigation2/launch/navigation2.launch.py

    map_dir = LaunchConfiguration(
        'map',
        default=os.path.join(
            get_package_share_directory('tugbot_navigation2'),
            'map',
            'map.yaml'))

Create a map directory under tugbot_navigation2 and place the .pgm and .yaml files of the map created with slam-toolbox in the map directory. Then, if you build again, I believe nav2 should be able to read the map.

colcon build --symlink-install --packages-select tugbot_navigation2

@fxt-7
Copy link
Author

fxt-7 commented May 17, 2024

Hi @porizou

Thanks for your quick response, I can run the tugbot_gazebo and tugbot_slam packages successfully, but tugbot_nav2 still goes wrong.
I have moved the map.pgm and map.yaml which saved by slam_toolbox into the /tugbot_nav2/map directory, but when I launch the tugbot_nav2, the navigation status is always inactive, and also can't set the nav2 goal or pose estimate, any idea about it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants