ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Callback Based SimpleActionClient with Python

asked 2014-06-05 23:42:55 -0600

Mehdi. gravatar image

This tutorial shows how to do it with C++ :

Does anyone know how to do it in Python?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-06 01:57:06 -0600

ahendrix gravatar image

updated 2014-06-06 01:57:49 -0600

edit flag offensive delete link more



The goal of using callback based action clients is to avoid using waitForResult and having different callbacks for result and feedback, which is not the case in the link you sent me. The purpose of this is to use only the feedback from the action and not the result. (Continuous face recognition in face_recognition package for example)

Mehdi. gravatar image Mehdi.  ( 2014-06-06 03:15:20 -0600 )edit

If you're not calling an action for the result, you might want to rethink your use of actionlib. You can also look at the Actionlib API documentation: .

ahendrix gravatar image ahendrix  ( 2014-06-06 11:18:34 -0600 )edit

Ok thanks. Would you suggest something for that use case? activating/disabling face recognition for example

Mehdi. gravatar image Mehdi.  ( 2014-06-09 20:17:46 -0600 )edit

activating and deactivating image processing pipelines is tricky. They usually have some temporal state, and a pretty significant startup time. I've seen solutions that only run the pipeline when there is a subscriber. You could also try using capabilities to start and stop the node.

ahendrix gravatar image ahendrix  ( 2014-06-09 20:36:38 -0600 )edit

Question Tools

1 follower


Asked: 2014-06-05 23:42:55 -0600

Seen: 1,802 times

Last updated: Jun 06 '14