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

Callback Based SimpleActionClient with Python

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

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
2

answered 2014-06-06 01:57:06 -0500

ahendrix gravatar image

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

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 image Mehdi.  ( 2014-06-06 03:15:20 -0500 )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 image ahendrix  ( 2014-06-06 11:18:34 -0500 )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 -0500 )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 image ahendrix  ( 2014-06-09 20:36:38 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 1,805 times

Last updated: Jun 06 '14