pal-robotics / play_motion

A tool to play pre-recorded motions on a robot using ros_control
8 stars 23 forks source link

Fix behavior when canceling a motion #15

Closed adolfo-rt closed 10 years ago

adolfo-rt commented 10 years ago

This is the current output produced when a motion is canceled (timestamps removed for brevity):

[ WARN] [.]: controller left_arm_controller failed with err 0
[ WARN] [.]: controller head_controller failed with err 0
[ WARN] [.]: controller right_arm_controller failed with err 0
[ WARN] [.]: controller torso_controller failed with err 0
[ INFO] [.]: Motion played successfully.
[ERROR] [.]: You are attempting to call methods on an uninitialized goal handle

Things to look into:

Motion execution was canceled. Motion execution failed. Controller: 'foo' failed with error 0.

po1 commented 10 years ago

This is because the final states of the controller goals are not propagated appropriately. The internal API is doing information withholding. Maybe I can talk some sense into it.

adolfo-rt commented 10 years ago

Maybe I can talk some sense into it.

Be kind