Ask Your Question
0

Is there a topic that is published to when a robot gets stuck?

asked 2019-04-12 19:46:34 -0600

djcicala gravatar image

I'm running ROS Kinetic on a Turtlebot Burger 3. It's using the basic turtlebot packages which can be found on ROBOTIS.

Basically, when my turtlebot gets stuck during navigation, I want it to perform some other task (not necessarily related to navigation). I can perform this task without a problem, but I want it to be triggered each time the robot finds itself as stuck. I figured the best way of doing that would be to see if there was anything regarding a robot "stuck" state that gets published somewhere.

Does such a topic exist within the basic Turtlebot3 Navigation package? Or, is there a way to access that information within ROS?

Thanks for your assistance.

edit retag flag offensive close merge delete

Comments

How about writing an actionlib client for move_base and wait for the state ABORTED?

Humpelstilzchen gravatar imageHumpelstilzchen ( 2019-04-20 05:04:26 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2019-04-18 19:23:49 -0600

ahendrix gravatar image

I don't think the move_base node has a topic that is published by default when it is stuck, but it does execute recovery behaviors when it is stuck: http://wiki.ros.org/move_base . You could probably write a recovery behavior that either publishes to a topic, or just does the thing you're trying to do when your robot gets stuck.

edit flag offensive delete link more
1

answered 2019-04-18 12:18:30 -0600

In short, no there is no topic that reports the robot "getting stuck" because there is no single definition for "getting stuck." You would have to write your own definition for that, depending on your demand.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-04-12 19:46:34 -0600

Seen: 104 times

Last updated: Apr 18 '19