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

ros2 unable to find ~/map.yaml when attempting to simulate navigation on host pc #1035

Open
5 of 24 tasks
AbduEhab opened this issue Nov 15, 2024 · 4 comments
Open
5 of 24 tasks
Assignees

Comments

@AbduEhab
Copy link

ISSUE TEMPLATE ver. 0.4.0

  1. Which TurtleBot3 platform do you use?

    • Burger
    • Waffle
    • Waffle Pi
  2. Which ROS is working with TurtleBot3?

    • ROS 1 Kinetic Kame
    • ROS 1 Melodic Morenia
    • ROS 1 Noetic Ninjemys
    • ROS 2 Dashing Diademata
    • ROS 2 Eloquent Elusor
    • ROS 2 Foxy Fitzroy
    • ROS 2 Humble
  3. Which SBC(Single Board Computer) is working on TurtleBot3?

    • Intel Joule 570x
    • Raspberry Pi 3B+
    • Raspberry Pi 4
    • Pc Gazebo sim
  4. Which OS you installed on SBC?

    • Raspbian distributed by ROBOTIS
    • Ubuntu MATE (16.04/18.04/20.04)
    • Ubuntu preinstalled server (18.04/20.04)
    • Pc Gazebo sim
  5. Which OS you installed on Remote PC?

    • Ubuntu 16.04 LTS (Xenial Xerus)
    • Ubuntu 18.04 LTS (Bionic Beaver)
    • Ubuntu 20.04 LTS (Focal Fossa)
    • Windows 10
    • MAC OS X (Specify version)
    • Ubuntu 22.04 LTS
  6. Specify the software and firmware version(Can be found from Bringup messages)

    • Software version: [x.x.x]
    • Firmware version: [x.x.x]
  7. Specify the commands or instructions to reproduce the issue.

    • cd ~/turtlebot3_ws/ && source install/local_setup.bash && export TURTLEBOT3_MODEL=waffle_pi && ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py
    • cd ~/turtlebot3_ws/ && source install/local_setup.bash && export TURTLEBOT3_MODEL=waffle_pi && ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=True map:=$HOME/map.yaml
  8. Copy and Paste the error messages on terminal.

    image

  9. Please describe the issue in detail.

    • I can't load the map.yaml that I generated in the SLAM section of the turtlebot3 docs.
    • I made sure that I actually had the files.

image

All the issues and solutions I found were in relation to either ROS1 or the navigation on the PI from a remote PC. But there was nothing that I could find for local sims.

Here is a screenshot of the issue:
image

@AbduEhab
Copy link
Author

AbduEhab commented Nov 15, 2024

Just to clarify, I am not connected to any turtlebots. I just want to simulate something on my local machine.

@yun-goon yun-goon self-assigned this Nov 18, 2024
@yun-goon
Copy link

Hello @AbduEhab

The tf issue is something we’re aware of and actively working to improve. However, that error shouldn’t prevent the navigation2 launch from functioning correctly.

Looking at your RViz image, it seems the issue is similar to what happens when the map file isn’t actually located in the $HOME directory. Here's a solution to try:

First, launch without specifying a map:
Run the following command:

ros2 launch turtlebot3_manipulation_navigation2 navigation2.launch.py

If you don’t specify a map, the package should load a default map stored internally.

Next, confirm if your map file exists in $HOME:
Check if your map file is actually present in the $HOME directory. If it’s missing, you can follow the instructions in the TurtleBot3 e-manual to generate one:
TurtleBot3 Simulation Manual.

If the problem remains even after generating the map and placing it in $HOME, please let me know so we can investigate further.

Thanks!

@AbduEhab
Copy link
Author

AbduEhab commented Nov 18, 2024

Hello,

When I tried to launch using your command. I was given the same error.
image

I have also made sure that the maps are in the $HOME dir
image
image

If it is missing the default map, how can I fix that?

@yun-goon
Copy link

Hello,

I’m sorry to hear that the issue couldn’t be resolved.
Normally, it should work without issues, but this could happen if the files were improperly installed or if there are dependency issues.

Could you try the following steps to address this?

Refer to the TurtleBot3 manual and attempt a clean reinstallation.

Run the following commands to resolve dependency issues automatically:

cd ~/(your_workspace_folder)
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src -r -y

Additionally, you can try installing all navigation-related packages using this command:

sudo apt install ros-humble-nav*
After following these steps, check if the issue persists.

Lastly, I have a quick question: Are you running this on a virtual machine?

I’ll keep investigating the root cause of this issue. Let me know if you find anything new or if there’s additional information that might help resolve 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