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

actions: c++ server, python client (smach)

asked 2014-11-07 04:02:37 -0600

arennuit gravatar image

Hello,

Can I implement an action server in C++ and call it from a client in python (i.e. from a Smach script)? As far as I understand the ROS architecture, so long as they share the same .action file, this should work, no?

Thanks.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-11-09 02:24:00 -0600

gvdhoorn gravatar image

Yes. If both client libraries have support for actions and have access to the same action definition, it should work.

Python and C++ are both well used and supported.

edit flag offensive delete link more

Comments

Ok, this is all as expected then! Thanks!

arennuit gravatar image arennuit  ( 2014-11-09 12:07:46 -0600 )edit

Hi; What about vice versa? As I have not completely understood it, would you please give me more details and example?

Fi gravatar image Fi  ( 2015-08-17 00:00:14 -0600 )edit

Vice versa will work as nicely. There is nothing special to do, just to implement a action server in a language and the client in another language. So long as the cores are ROS compatible, it will work (because the messages use the same ROS protocol).

arennuit gravatar image arennuit  ( 2015-08-17 00:43:52 -0600 )edit

would you please send me an example?

Fi gravatar image Fi  ( 2015-08-17 16:01:19 -0600 )edit

There is a reference tutorial here which already explains it all.

arennuit gravatar image arennuit  ( 2015-08-18 02:46:56 -0600 )edit
0

answered 2015-08-16 11:01:40 -0600

Fi gravatar image

Hi; What about vice versa? As I have not completely understood it, would you please give me more details and example?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-11-07 04:02:37 -0600

Seen: 1,151 times

Last updated: Aug 16 '15