-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 Getting Started Example doesn't work for ROS Humble #3298
Comments
Just giving some hints on the issue.. On a quick dig I found that, for some reason the sandbox world model is not loaded.. I tried to spawn the robot urdf in the empty world it works fine.. I even tried the turtlebot launch from the official repo and it seems to not work as well.. |
I've reproduced the same (and not only) situations on my local Humble release, installed from the scratch yesterday.
|
Hmm! There was a recent release for humble today, with all the new updates and changing to cyclonedds, does not resolve the problem for me atleast.. 😢 |
@padhupradheep, did you exported
|
Yes and yes... here are the logs.. |
The same happens to me (Gazebo is blank and there is no robot in RViZ) now and then (not rarely though). Stopping both processes and running it again makes it come up correctly (most times). I think there is not enough timeout or leeway with the defaults somewhere... |
Update: I'm running into this issue 100% of the time when trying to run it with the SLAM toolbox... In one terminal I run ros2 launch nav2_bringup slam_launch.py but the second command shows either a blank gazebo or the gazebo world with no robot and RViZ just shows the white map with no robot... I'm constantly getting these error messages in the terminal where tb3_simulation_launch.py was run: I'm new to ROS and Gazebo, so I'm not sure what's going on or how to fix this :( |
From the logs, it is definitely Gazebo (or its related environment) problem.
But it should be:
If you are running the Gazebo first time, it could take for a long time (up to ~2-5 minutes) to start the Gazebo. During this time, Gazebo is downloading the models and could show empty or even blank screen. Once Gazebo has been downloaded all the models and started, you might close it and set environment variable Also, to get more information about the gazebo issues, you might pass the
Does it change something in the output? Also, did you check that
|
I was able to get things to work by simple running Gazebo from the terminal.
Waited for it to boot up, then shut it down. Then running:
Worked for me but still seems odd, it doesn't seem like a solution. |
This is a first time initialization thing for a gazebo, not related to navigation. |
Just an update from my side, it works without an issue after the recent release in humble.. |
@AlexeyMerzlyakov Thank you! I realized I did not set |
If you are running nav2 from source, you can fix the spawn service failure issue by increasing the gazebo model spawn time. To do this, you need to modify the tb3_simulation_launch.py file. Look for the following section:
To set a higher timeout value, add the argument -timeout with the desired value (in seconds). This will give the spawn service more time to complete successfully before timing out. |
I'm following the NAV2 tutorial step by step and can't get past the first example.
https://navigation.ros.org/getting_started/index.html
I have everything installed:
Then I set the key environment variables:
Then after running:
ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False
I rush to rviz, set the 2D pose estimation as quick as I can and end up with this in the terminal:
In RViz I see the white map but it doesn't say shut down in the bottom left corner and theres also nothing in Gazebo.
I should be seeing the map and LiDAR in both RViz and Gazebo.
But this is what it looks like:
The text was updated successfully, but these errors were encountered: