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

Unable to run nav2 with rviz2 together #32

Closed
evshary opened this issue Oct 14, 2024 · 6 comments
Closed

Unable to run nav2 with rviz2 together #32

evshary opened this issue Oct 14, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@evshary
Copy link

evshary commented Oct 14, 2024

No matter in ROS2 rolling and jazzy, if we try to run nav2 with rviz2 together, rviz2 will crash

export TURTLEBOT3_MODEL=waffle
ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False

However, it will succeed if we run it separately. Note that we need to wait for rviz2 to be stable, and then run the nav2.

ros2 launch nav2_bringup rviz_launch.py
# Wait until we can control rivz2
export TURTLEBOT3_MODEL=waffle
ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False use_rviz:=False
@evshary evshary added the bug Something isn't working label Oct 14, 2024
@evshary
Copy link
Author

evshary commented Oct 14, 2024

We have some failures in the nav2 unit test item nav2_system_tests. Not sure whether it's related to the issue or not.

@imstevenpmwork
Copy link

imstevenpmwork commented Oct 14, 2024

I can confirm a similar behaviour from my side. If I run:

ros2 launch nav2_bringup tb4_simulation_launch.py headless:=True use_rviz:=False

Wait until the nav2 logs stabilise, and then run:

rviz2

And manually add all the items step by step (including setting the initial pose), the demo works. Sometimes even launching all rviz config works

ros2 launch nav2_bringup rviz_launch.py

But trying to launch:

ros2 launch nav2_bringup tb4_simulation_launch.py headless:=False

Fails every time: rviz2 crashes and nav2 shutdowns

@evshary
Copy link
Author

evshary commented Oct 15, 2024

It's related to the issue
ros-navigation/navigation2#4689
I've tried this patch and it works
ros-navigation/navigation2#4717

@evshary
Copy link
Author

evshary commented Oct 17, 2024

The issue can be closed after backporting to Jazzy
ros-navigation/navigation2#4725

@ajtudela
Copy link

Hi, it's now fixed in main and jazzy.

@evshary
Copy link
Author

evshary commented Oct 18, 2024

Hi @ajtudela Thank you so much for the backporting! I believe we can close the issue now.

@evshary evshary closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants