You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ROS2 Navigation2 simulate cannot initial pose and Rviz2 will force close #901
@mkhansen-intel as I checked, if set initial pose by press "2D pose estimate", the terminal also popup message
[INFO] [rviz2]: Setting goal: Frame:map, Position(-1.98198, -0.456825, 0), Orientation(0, 0, -0.0207147, 0.999785) = Angle: -0.0414324
[INFO] [rviz2]: Setting goal: Frame:map, Position(-2.00427, -0.449416, 0), Orientation(0, 0, 0.048309, 0.998832) = Angle: 0.0966557
the robot module or TF not set to pose of you want, and than if you press "Navigation2 Goal", the Rviz2 will hang and cannot do anything. if wait a moment, Rviz2 will popup force quit message.
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 installed ROS from apt on Ubuntu then you will need to source setup.bash files in '/opt/ros/dashing/install'
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.
As I checked, all source already set to test environment, but Rviz2 still crashed or frozen.
and the Rviz2 terminal display error message
"[ERROR] [rviz2]: "map" passed to lookupTransform argument target_frame does not exist. "
@mlherd, thanks for your information, we'll try your suggestion. BTW, did you ever get nav2 run in Gazebo and rviz2 successfully?
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.
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.
@crdelsey @mlherd
Carl, as I remember, currently ROS2 Navigation2 Dashing release used dashing-devel branch, not master right? so which different of master and dashing-devel?
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
"[lifecycle_manager-1] [ERROR] [lifecycle_manager]: Failed to change state for node: map_server
[lifecycle_manager-1] [ERROR] [lifecycle_manager]: Failed to bring up node: map_server, aborting bringup
[world_model-4] [INFO] [global_costmap.global_costmap_rclcpp_node]: [signalFailure] Drop message: frame 'base_scan' at time 32.201 for reason(0)"
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.
You can use sudo apt-get install ros-dashing-geometry* instead.
Error messages: RVIZ:
I get see the same error messages. However, the robot should still navigate. I don't know what causes these error messages yet.
Navigation:
[world_model-4] [INFO] [global_costmap.global_costmap_rclcpp_node]: [signalFailure] Drop message: frame 'base_scan' at time 32.201 for reason(0) should not cause a problem.
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
[lifecycle_manager-1] [ERROR] [lifecycle_manager]: Failed to bring up node: map_server, aborting bringup
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?
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.
Activity
mkhansenbot commentedon Jul 1, 2019
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.
rafaelhuang-intel commentedon Jul 2, 2019
@mkhansen-intel as I checked, if set initial pose by press "2D pose estimate", the terminal also popup message
[INFO] [rviz2]: Setting goal: Frame:map, Position(-1.98198, -0.456825, 0), Orientation(0, 0, -0.0207147, 0.999785) = Angle: -0.0414324
[INFO] [rviz2]: Setting goal: Frame:map, Position(-2.00427, -0.449416, 0), Orientation(0, 0, 0.048309, 0.998832) = Angle: 0.0966557
the robot module or TF not set to pose of you want, and than if you press "Navigation2 Goal", the Rviz2 will hang and cannot do anything. if wait a moment, Rviz2 will popup force quit message.
testkit commentedon Jul 3, 2019
Similar issue was found in rviz2 for real chassis (#905), but this rviz2 issue might be the curlprit ros2/rviz#417.
mlherd commentedon Jul 8, 2019
@rafaelhuang-intel
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 installed ROS from apt on Ubuntu then you will need to source setup.bash files in '/opt/ros/dashing/install'
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.
testkit commentedon Jul 9, 2019
@mlherd, thanks for your information, we'll try your suggestion. BTW, did you ever get nav2 run in Gazebo and rviz2 successfully?
rafaelhuang-intel commentedon Jul 9, 2019
@mlherd
As I checked, all source already set to test environment, but Rviz2 still crashed or frozen.
and the Rviz2 terminal display error message
"[ERROR] [rviz2]: "map" passed to lookupTransform argument target_frame does not exist. "
mlherd commentedon Jul 9, 2019
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
rafaelhuang-intel commentedon Jul 9, 2019
@mlherd
we tried to apply rviz patch (https://github.com/Martin-Idel/rviz/tree/bugfix/map_display) from #908, but issue still exist.
mlherd commentedon Jul 9, 2019
@rafaelhuang-intel
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.
mlherd commentedon Jul 9, 2019
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.
rafaelhuang-intel commentedon Jul 9, 2019
@mlherd
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"
) used Crystal version.
I hope to know which version of ros2 core, dependence, Navigation2 you used? all Dashing? or mixed of Dashing and Crystal?
mlherd commentedon Jul 9, 2019
@rafaelhuang-intel
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 commentedon Jul 9, 2019
@crdelsey @mlherd
Carl, as I remember, currently ROS2 Navigation2 Dashing release used dashing-devel branch, not master right? so which different of master and dashing-devel?
mlherd commentedon Jul 10, 2019
@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.
rafaelhuang-intel commentedon Jul 10, 2019
@mlherd
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
"[lifecycle_manager-1] [ERROR] [lifecycle_manager]: Failed to change state for node: map_server
[lifecycle_manager-1] [ERROR] [lifecycle_manager]: Failed to bring up node: map_server, aborting bringup
[world_model-4] [INFO] [global_costmap.global_costmap_rclcpp_node]: [signalFailure] Drop message: frame 'base_scan' at time 32.201 for reason(0)"
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.
mlherd commentedon Jul 10, 2019
@rafaelhuang-intel
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.
You can use
sudo apt-get install ros-dashing-geometry*instead.Error messages:
RVIZ:
I get see the same error messages. However, the robot should still navigate. I don't know what causes these error messages yet.
Navigation:
[world_model-4] [INFO] [global_costmap.global_costmap_rclcpp_node]: [signalFailure] Drop message: frame 'base_scan' at time 32.201 for reason(0) should not cause a problem.
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
[lifecycle_manager-1] [ERROR] [lifecycle_manager]: Failed to bring up node: map_server, aborting bringup
rafaelhuang-intel commentedon Jul 11, 2019
@mlherd
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?
rafaelhuang-intel commentedon Jul 11, 2019
@mlherd
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.
error_message_log.txt
mlherd commentedon Jul 11, 2019
@rafaelhuang-intel
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
rafaelhuang-intel commentedon Jul 11, 2019
@mlherd
sure, I will open 2 new issue to trick these 2 issues and close this one.
Add configs for humble and iron (ros-navigation#901)