py_trees_ros icon indicating copy to clipboard operation
py_trees_ros copied to clipboard

Implement Behaviors to Interact with ROS Services

Open amalnanavati opened this issue 1 year ago • 1 comments

This PR implements service clients as behaviors. Following the paradigm for action clients, it implements two behaviors: FromBlackboard, which reads the request from the blackboard, and FromConstant, which always has the same request. Additionally, it has the option to write the service response to the blackboard, by passing in a blackboard key (key_response) to write to.

This has been tested on a number of test cases (see test_service_client.py). The code has not been through any formatter since I wasn't sure which is used for this repository.

I believe this fulfills Issue #103 .

amalnanavati avatar Jul 28 '23 01:07 amalnanavati

BTW, this is ready for review :)

amalnanavati avatar Sep 05 '23 15:09 amalnanavati