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

Rosjava: How to generate new services

asked 2012-02-13 04:49:36 -0500

Markus Eich gravatar image

Dear all,

I am using rosjava to set up a service. For testing I have set up a package with roscreate-pkg. (GetCylinders.srv) The service was generated and the package was build with rosmake. All cpp files are generated.

#no request
string name
float32 likelihood

I have already set the dependency in the rosjava service (i.e. reasoner_msgs). Here is the manifest file I use for the service.

<depend package="rosjava" />
<depend package="std_msgs" />
<depend package="reasoner_msgs" />

How do I proceed further? How can I tell rosjava to generate the corresponding java service? Is there a step by step manual somewhere?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-02-13 22:46:09 -0500

Markus Eich gravatar image

Stupid me. I forgot to call rosmake again after setting the dependency. Now I included the generated java file. with #import org.ros.service.reasoner_msgs.*;

edit flag offensive delete link more

Question Tools


Asked: 2012-02-13 04:49:36 -0500

Seen: 395 times

Last updated: Feb 13 '12