-
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
ROS2 Navigation2 simulate cannot initial pose and Rviz2 will force close #901
Comments
Looking at the picture, it doesn't look like you pressed 2D pose estimate, it looks like you pushed "Navigation2 Goal". Is that what happened? Even if that's true, I do think this is a bug. We need to be able to handle this case gracefully. |
@mkhansen-intel as I checked, if set initial pose by press "2D pose estimate", the terminal also popup message |
Similar issue was found in rviz2 for real chassis (#905), but this rviz2 issue might be the curlprit ros2/rviz#417. |
The error message "failed to load plug ..." usually means that you didn't source the environment setup files (setup.bash files) or the paths to the setup.bash files are wrong. In other words, it happens if the environment is not setup correctly before run Gazebo. I was able to generate the same error messages when I didn't source any setup.bash files (you can see them below) before I run Gazebo. I sourced them before launching any other launch files. When I do that, Gazebo, Rviz, Turtlebot and Navigation launches but Navigation2Gaol command will get Rviz crashed or frozen. Solution: If you are using ~/.bashrc file to source them, it should look like this. In your case the paths will look different since you installed the packages in different directories.
If sourcing doesn't help, you can try to individually build the packages from source. You can find an example and the instructions here. I will keep investigating this issue. |
@mlherd, thanks for your information, we'll try your suggestion. BTW, did you ever get nav2 run in Gazebo and rviz2 successfully? |
As I checked, all source already set to test environment, but Rviz2 still crashed or frozen. |
Yes, I did. You can see it working in the videos at the link below. I actually recorded more videos using TB3 Burger in Gazibo and Rviz today. I will upload them tomorrow when I get a chance. I haven't tested the navigation stack with a real tb3 yet, but I am working on it. https://github.com/mlherd/navigation2/tree/new-tutorials/doc/tb3_tutorial |
we tried to apply rviz patch (https://github.com/Martin-Idel/rviz/tree/bugfix/map_display) from #908, but issue still exist. |
OK. At least it seems like the Gazebo plugin error massages are gone now. I have seen this Rviz error messages before, but I don't remember how I fixed it. I will try to regenerate the same error message and let you know the possible solution. The "drop message frame base scan ..." message is something we have been observing. It should not cause a crash. |
I think the problem they were having is different than yours since they were trying to use a different robot than tb3 using their own map. |
I saw your tutorial (https://github.com/mlherd/navigation2/tree/new-tutorials/doc/tb3_tutorial), but I have a question that I see more dependencies (rosdep install --from-paths src --ignore-src --rosdistro crystal -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers" |
It is all Dashing. It was a mistake in the tutorial. I just fixed it. Sorry for the confusion. I am using the master branch for ros2 and Navigation2. |
@rafaelhuang-intel You should use the dashing-devel branch when you are using the ROS 2 dashing release. You should use our master branch when using the ROS 2 master branch. However, right now it doesn't matter. We only have a couple of bug fixes on master, and I don't think they would fix this problem. |
@rafaelhuang-intel I just submitted a PR for this issue. It should prevent Rviz crashing after setting a goal pose. I will keep working on the issue. |
After follow your tutorial (https://github.com/mlherd/navigation2/tree/new-tutorials/doc/tb3_tutorial) to build new test environment, I am using the master branch for ros2 and Navigation2, it's workable, but still have few time will meet this issue, if I reboot system and try again, issue disappear. Rviz terminal still popup error message "[ERROR] [rviz2]: Lookup would require extrapolation into the future. Requested time 584.80900 but the latest data is at time 584.76600, when looking up transform from frame [base_scan] to frame [map]" in testing. Navigation terminal will popup error message BTW, I'm not find "ros-dashing-geometry2" package, checked github(https://github.com/ros/geometry2), not ROS2 version, I only installed "ros-dashing-geometry-msgs" & "ros-dashing-geometry-msgs-dbgsym" . So I hope to know which problem will meet it if no this package. |
I am glad to hear that the tutorial was helpful to you. Don't worry about ros-dashing-geomerty2. It doesn't exist in ROS2 Dashing. I changed it in the tutorial as well. Error messages: Navigation: I don't see the other two messages. Are you sure the path to turtlebot3_world.yaml is correct? If there is no map map_server will not work. [lifecycle_manager-1] [ERROR] [lifecycle_manager]: Failed to change state for node: map_server |
I'm sure the path to turtlebot3_world.yaml is correct, because I meet this error message while in navigate. I also meet other problem that if set goal from A to B, navigate will auto stop and robot not arrive expect point, but I can set goal again and robot workable except hit the post or wall, this issue meet rate ~30% ~ 40%, so do you meet same problem? |
Attached log, you can see above error messages. BTW, if robot hit the post in navigate, have few rate navigate will not auto cancel, in this case Rviz2 will crash. |
Since the initial issue (RVIZ crashes when setting initial pose) is solved, I will close this one. Can you open new issues for the other problems. Issue 1- "I also meet other problem that if set goal from A to B, navigate will auto stop and robot not arrive expect point, but I can set goal again and robot workable except hit the post or wall, this issue meet rate ~30% ~ 40%, so do you meet same problem?" Issue 2- "I meet this error message while in navigate" and the log file. I will be happy to work together with you on these issues. Melih |
sure, I will open 2 new issue to trick these 2 issues and close this one. |
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
robot can set pose to expect position.
Actual behavior
robot can not set pose to expect position and Rviz2 will crash.
Additional information
Feature request
Feature description
Implementation considerations
The text was updated successfully, but these errors were encountered: