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

Service Call in ROSJava?

asked 2011-06-14 23:28:01 -0500

Mr_Miyagi gravatar image

updated 2011-06-15 08:00:33 -0500

kwc gravatar image

hi everybody!

I'm trying to call a Service in ROSJava. The Service itself is running on ROS/Cpp. What i'm looking for, is the command "rosservice call /EnableFreeSpaceOrientation true" in Java. http://www.ros.org/wiki/rosjava The "Calling a Service" part seems to be the solution?

Have i missed something? Maybe i'm to stupid to see it or find it! :D

Hope for help! Thanks!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2011-06-15 04:35:16 -0500

kwc gravatar image

Are you using the new, pure-Java rosjava or the old JNI-based rosjava?

FYI: we've just moved the JNI docs here:

http://www.ros.org/wiki/rosjava_jni

As for the new rosjava, it's still in an alpha state and service calls are not easy-to-use right now.

edit flag offensive delete link more
0

answered 2011-06-15 20:16:24 -0500

Mr_Miyagi gravatar image

Hey! First thanks for reply!

I'm using the new ROSJava, which was released in may!

Damn, then i have to solve it with a publisher or if there is an other idea? I'm trying to start a ROS Service with an android device.

edit flag offensive delete link more

Comments

Your best off using only pubsub for now. I'm working on getting rosjava into beta at which point it will be essentially feature complete (i.e. support services properly).
damonkohler gravatar image damonkohler  ( 2011-06-16 00:21:06 -0500 )edit
FYI: please use the 'comment' feature instead of creating new answers to reply to posts, thanks
kwc gravatar image kwc  ( 2011-06-16 04:05:34 -0500 )edit
Okay, than I'll use an simple pubsub to enable the Service! Thanks! Hope that the beta release will note take a long time, but sure it won't be easy! - Okay, next time i'll use the comment function! Sorry for that!
Mr_Miyagi gravatar image Mr_Miyagi  ( 2011-06-16 20:52:31 -0500 )edit
0

answered 2017-11-15 06:14:56 -0500

jubeira gravatar image

I know this question is old, but here's an example about how to use a rosjava service (in this case, a custom one; if you use services that are already in Maven you don't need to build the services): https://github.com/jubeira/rosjava_sr... .

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-06-14 23:28:01 -0500

Seen: 1,370 times

Last updated: Nov 15 '17