Ask Your Question
0

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?

Cheers,

Markus

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 353 times

Last updated: Feb 13 '12