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

Robot continues moving when pressing "cancel" button during navigation (happens only sometimes) #911

Closed
AndreasAZiegler opened this issue Jul 8, 2019 · 6 comments
Assignees
Labels
1 - High High Priority

Comments

@AndreasAZiegler
Copy link

Bug report

Required Info:

  • Operating System:
    • Ubuntu 18.10
  • Installation type:
    • binaries
  • Version or commit hash:
  • DDS implementation:
    • Fast-RTPS and RTI Connext

Steps to reproduce issue

Expected behavior

Robot stops moving.

Actual behavior

Sometimes robots keep moving and starts toddling around after colliding with an obstacle

@orduno orduno self-assigned this Jul 8, 2019
@orduno orduno added this to Incoming Issues in Navigation 2 Kanban via automation Jul 8, 2019
@orduno orduno added this to the E Turtle Release milestone Jul 8, 2019
@orduno orduno added the 1 - High High Priority label Jul 8, 2019
@orduno orduno moved this from Incoming Issues to High Priority Issues in Navigation 2 Kanban Jul 8, 2019
@crdelsey
Copy link
Contributor

crdelsey commented Jul 8, 2019

@AndreasAZiegler Can you include the console output? This sounds like something in the nav stack has crashed, preventing us from sending the final 0 velocity command.

@orduno
Copy link
Contributor

orduno commented Jul 8, 2019

I followed the steps above and reproduced the behavior. The console output is:

[bt_navigator-8] [INFO] [bt_navigator]: Begin navigating from current location to (1.58, -0.65)
[dwb_controller-5] [INFO] [dwb_controller]: Received a goal, begin following path
[dwb_controller-5] [INFO] [dwb_controller]: Preempting the goal. Passing the new path to the planner.
[dwb_controller-5] [INFO] [dwb_controller]: Preempting the goal. Passing the new path to the planner.
[bt_navigator-8] [INFO] [bt_navigator]: Navigation canceled
[dwb_controller-5] [INFO] [dwb_controller]: Goal was canceled. Cancelling and stopping.
[bt_navigator-8] [INFO] [bt_navigator]: Begin navigating from current location to (1.65, -0.52)
[dwb_controller-5] [INFO] [dwb_controller]: Received a goal, begin following path
[dwb_controller-5] [INFO] [dwb_controller]: Preempting the goal. Passing the new path to the planner.
[dwb_controller-5] [INFO] [dwb_controller]: Preempting the goal. Passing the new path to the planner.
[bt_navigator-8] [INFO] [bt_navigator]: Navigation canceled
[dwb_controller-5] [INFO] [dwb_controller]: Goal was canceled. Cancelling and stopping.
[dwb_controller-5] terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
[dwb_controller-5]   what():  goal_handle attempted invalid transition from state EXECUTING with event CANCELED, at /home/caorduno/ros2_ws/src/ros2/rcl/rcl_action/src/rcl_action/goal_handle.c:94
[ERROR] [dwb_controller-5]: process has died [pid 9720, exit code -6, cmd '/home/caorduno/overlay_ws/install/dwb_controller/lib/dwb_controller/dwb_controller __params:=/tmp/tmpqmlbsh4q'].

@AndreasAZiegler is this similar to your console output?

@AndreasAZiegler
Copy link
Author

@orduno Yes, my console output is similar.

[bt_navigator-8] [INFO] [bt_navigator]: Begin navigating from current location to (2.09, -1.49)
[dwb_controller-5] [INFO] [dwb_controller]: Received a goal, begin following path
[dwb_controller-5] [INFO] [dwb_controller]: Preempting the goal. Passing the new path to the planner.
[dwb_controller-5] [INFO] [dwb_controller]: Preempting the goal. Passing the new path to the planner.
[dwb_controller-5] [INFO] [dwb_controller]: Preempting the goal. Passing the new path to the planner.
[dwb_controller-5] [INFO] [dwb_controller]: Preempting the goal. Passing the new path to the planner.
[bt_navigator-8] [INFO] [bt_navigator]: Navigation canceled
[dwb_controller-5] [INFO] [dwb_controller]: Goal was canceled. Cancelling and stopping.
[dwb_controller-5] terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
[dwb_controller-5]   what():  goal_handle attempted invalid transition from state EXECUTING with event CANCELED, at /tmp/binarydeb/ros-dashing-rcl-action-0.7.5/src/rcl_action/goal_handle.c:94
[ERROR] [dwb_controller-5]: process has died [pid 8479, exit code -6, cmd '/home/andreasziegler/ros/ros2_turtlebot3_ws/install/dwb_controller/lib/dwb_controller/dwb_controller __params:=/tmp/tmpqs_jcrgi'].

@orduno
Copy link
Contributor

orduno commented Jul 9, 2019

@AndreasAZiegler I've addressed the bug on #918, could you please try it and let me know if that fixes the issue on your side?

@AndreasAZiegler
Copy link
Author

@orduno I tried it a couple of times and it seems to work. Thanks.

@orduno
Copy link
Contributor

orduno commented Jul 11, 2019

Closing the issue as #918 was merged.

@orduno orduno closed this as completed Jul 11, 2019
Navigation 2 Kanban automation moved this from High Priority Issues to Done Jul 11, 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

3 participants