Ask Your Question

Sending Goal from rosjava action client to roscpp action server

asked 2012-02-24 06:20:16 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi, While sending goal from an action roscpp client to roscpp action server, I use actionlib::SimpleActionClient<msg::abcaction> client("action_server_name",true); and then client.sendGoal(goal) sends goal to the "action_server_name". This works fine. Now I have a "action_server_name" running, I want to send the goal through a rosjava action client node. How is it done? If anyone has already done it? Action server in roscpp and action client rosjava communication and sending receiving goal, please share it with me. Thanks in advance. regards, safdar

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-02-25 05:29:07 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

There is an actionlib implementation for rosjava in rosjava_core: and there are some examples buried in there, but it isn't documented on the wiki yet.

There is a ticket here for creating the documentation; you can comment or vote on it if you feel so inclined.

edit flag offensive delete link more


Hi, thanks , but this I have already done this. Actually the problem is that the java action client does not connect with action serve using its name. It only connects if the action server is listening on /goal action topic. I want to connect with different action CPP serves from one java program.

safzam gravatar image safzam  ( 2012-02-26 21:17:03 -0500 )edit

Looking at the java ActionClient source, that looks like a bug. Note that nodeName is written but never read in

ahendrix gravatar image ahendrix  ( 2012-02-26 22:58:48 -0500 )edit
ahendrix gravatar image ahendrix  ( 2012-02-26 23:03:59 -0500 )edit

2017: there is code on github from ernestmc and a fork by CentralLabFacilities

Will Chamberlain gravatar image Will Chamberlain  ( 2017-11-22 01:05:56 -0500 )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


Asked: 2012-02-24 06:20:16 -0500

Seen: 561 times

Last updated: Feb 25 '12