Ask Your Question
0

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++ : http://wiki.ros.org/actionlib_tutoria...

Does anyone know how to do it in Python?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

Comments

2

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 imageMehdi. ( 2014-06-06 03:15:20 -0600 )edit
1

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: http://docs.ros.org/hydro/api/actionlib/html/index.html .

ahendrix gravatar imageahendrix ( 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 imageMehdi. ( 2014-06-09 20:17:46 -0600 )edit
1

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 imageahendrix ( 2014-06-09 20:36:38 -0600 )edit

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: 2014-06-05 23:42:55 -0600

Seen: 1,526 times

Last updated: Jun 06 '14