Ask Your Question
0

How can I create a service on rosjava?

asked 2013-01-29 16:43:21 -0600

jorge gravatar image

Hello all,

I'm creating and Android app to remotely operate the turtlebot_panorama app through service calls. I don't know how to make gradle to compile my .srv file.

As a dirty workaround, I copied the .srv file on

rosjava_core/rosjava_bootstrap/src/test/resources/test_ros/srv/

and let gradle compile it together with the whole rosjava_core. This works fine but...

Thank you a lot

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-02-19 10:43:14 -0600

damonkohler gravatar image

You simply need to rebuild the rosjava_messages package. For Eclipse, it depends highly on your setup. You may need to regenerate your project as well.

edit flag offensive delete link more

Comments

Hi, I've succesfully created a service (using your suggestion). I'm trying to use this package on the rosjava_tutorial_services package, but the compiler says that the custom_msg package doesn't exist. Do you have some suggestion on how to build the project in a correct way?

denis gravatar imagedenis ( 2016-01-11 09:26:39 -0600 )edit
1

answered 2013-02-13 16:02:46 -0600

this post is marked as community wiki

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

Please look at the topic #54933.(I'm afraid that my karmas are too few to show a link.)

It can be just as vaild for the custom services. You should rebuild rosjava,especially, rosjava_message.

edit flag offensive delete link more

Comments

Ups... I'm gonna be a bit ridiculous, but.... what do you mean with topic #54933?

jorge gravatar imagejorge ( 2013-02-17 22:54:01 -0600 )edit

Apart from this, I tried in a similar way that with messages and it works.Thanks! Only black point is the ugly way I integrated the generated classes on eclipse (adding the rosjava_core's messages directory to the sources). Did you have a better way?

jorge gravatar imagejorge ( 2013-02-18 01:21:43 -0600 )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

Stats

Asked: 2013-01-29 16:43:21 -0600

Seen: 408 times

Last updated: Feb 13 '13