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

Rviz cannnot response when pressing the navigation2 goal button #905

Closed
MengNan-Li opened this issue Jul 2, 2019 · 7 comments
Closed

Rviz cannnot response when pressing the navigation2 goal button #905

MengNan-Li opened this issue Jul 2, 2019 · 7 comments
Assignees
Labels
1 - High High Priority

Comments

@MengNan-Li
Copy link

MengNan-Li commented Jul 2, 2019

Bug report

Required Info:

  • Operating System:
    • Ubuntu18.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • 0.2.0
  • DDS implementation:
    • Fast-RTPS
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

(1) start our robot driver.
(2) ros2 launch nav2_bringup nav2_bringup_launch.py autostart:=True map:=**.yaml use_sim_time:=False map_type:=occupancy
(3) ros2 run rviz2 rviz2 -d $(ros2 pkg prefix nav2_bringup)/share/nav2_bringup/launch/nav2_default_view.rviz
(4) rviz set initial pose successfully
(5) When seting the navigation2 goal, the rviz cannot response and crash.

Expected behavior

Robot move the goal point set in rviz navigation2 goal button, and a pop-up window will appear on your screen with a 'cancel' button if you wish to cancel

Actual behavior

When seting the navigation2 goal, the rviz cannot response and crash.

Additional information


Feature request

Feature description

Implementation considerations

@mlherd
Copy link
Contributor

mlherd commented Jul 2, 2019

Hi MengNan! I have a few questions. What robot do you have? Can you see the map after launching Rviz? Do you see any error messages in any of the terminals after setting the initial pose and the goal position?

@testkit
Copy link

testkit commented Jul 3, 2019

Similar issue was found in rviz2 for simulation (#901), but this rviz2 issue might be the curlprit ros2/rviz#417.

@MengNan-Li
Copy link
Author

MengNan-Li commented Jul 3, 2019

@mlherd We use our own robots(YUNJI Technology). I can see the map and set the initial pose of robot.
image

The log messages of setting the initial pose:
[amcl-3] [WARN] [amcl]: Waiting for map....
[amcl-3] [INFO] [amcl]: initialPoseReceived
[amcl-3] [INFO] [amcl]: Setting pose (1562135076.330833): 0.575 1.877 -1.570
[amcl-3] [INFO] [amcl]: Received a 384 X 384 map @ 0.050 m/pix
[amcl-3]
[amcl-3] [INFO] [amcl]: Setting pose (1562135077.010127): 0.575 1.877 -1.570
[amcl-3] [INFO] [amcl]: createLaserObject

@MengNan-Li
Copy link
Author

When seting the navigation2 goal, the rviz cannot response. And the terminal has no new log information.
image

@mkhansenbot
Copy link
Collaborator

Hi @MengNan-Li - I'm sorry to see you're having issues. We have seen some issues with Rviz2, but let's see if the nav2 system is running correctly in this case.

  1. Is Gazebo still running? can you verify that the simulation hasn't crashed for some reason?
  2. Is there any log output after AMCL initialized, from the lifecycle_manager node?
    -- You should see it 'activating' the rest of the nodes in the system, and eventually see a message that says 'The system is active'. This will tell you that all the nodes were successfully transitioned to the 'active' lifecycle state. If you don't see that, there is a possibility that something failed.
  3. Another thing to check is whether the nodes are running. When you do a 'ros2 node list' what do you get? The bt_navigator node is the one that is providing the action server for the navigation2 button. Make sure that node is running and active. You can get its state by 'ros2 service call /bt_navigator/get_state lifecycle_srvs/GetState'

@mkhansenbot mkhansenbot added the 1 - High High Priority label Jul 3, 2019
@mkhansenbot mkhansenbot added this to Incoming Issues in Navigation 2 Kanban via automation Jul 3, 2019
@MengNan-Li
Copy link
Author

Hi @mkhansen-intel Thinks for your response.

  1. I use our own real robot, not gazebo.
  2. The log information after starting the navigation launch file is as follows:
    image
    The following information is continuously refreshed until acml is initialized.
    image
  3. ros2 node list:
    image
    ros2 service call /bt_navigator/get_state lifecycle_msgs/srv/GetState:
    image

@orduno orduno assigned orduno and mlherd and unassigned orduno Jul 8, 2019
@crdelsey crdelsey added this to the E Turtle Release milestone Jul 8, 2019
@MengNan-Li
Copy link
Author

Think you all. When the issue(#908) is solved, the problem is gone.

Navigation 2 Kanban automation moved this from Incoming Issues to Done Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - High High Priority
Projects
No open projects
Development

No branches or pull requests

6 participants