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

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
0

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: https://rosjava.googlecode.com/hg/actionlib_java/ and there are some examples buried in there, https://rosjava.googlecode.com/hg/actionlib_java/src/tutorials/java/org/ros/actionlib/example/ 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

Comments

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 https://rosjava.googlecode.com/hg/actionlib_java/src/main/java/org/ros/actionlib/client/ActionClient.java

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

Question Tools

Stats

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

Seen: 683 times

Last updated: Feb 25 '12