Skip to content

(Un)docking action never finishes #131

Discussion options

You must be logged in to vote

It is definitely possible to have an action dock/undock file that takes advantage of callbacks, but if you're looking for a more simple way, take a look at this script.

If you want to keep the same structure you're working with, try throwing in some print statements to find where it's getting stuck. We used classes and a main function at the end to organize it. This way you can spin the node and then shut it down when you're done - possibly avoiding confusion within itself. Additionally, it may be helpful to break your isDockComplete function into two: goal response callback and get result callback.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Rebecca-iRobot
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forum_ros2 Forum post about general ROS 2 usage
3 participants
Converted from issue

This discussion was converted from issue #130 on August 04, 2022 12:57.