Ask Your Question

Call service from outside of ROS

asked 2015-07-02 07:31:23 -0500

Borob gravatar image

Hey guys,

I have a programm, that is supposed to work in a ROS environment. This programm has been written in a multi-platform framework and will most likely be run on a mobile OS, but should be OS-independent after all.

It should be able to send messages to a ROS service and receive messages from that service. I wanted to ask how that could be achieved since there is no ROS environment set up on the app itself.

I would need some kind of wrapper that sends stuff that looks like propper messages on ROS. I couln't find anything but maybe there is already a framework or you could point me to do it and where I should start.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-07-02 10:30:52 -0500

Borob gravatar image

updated 2015-07-02 10:31:26 -0500

I found what I was searching for with rosbridge. It allows to send out json messages via UDP proxy to access ROS functionality:

edit flag offensive delete link more

answered 2015-07-02 10:06:06 -0500

dornhege gravatar image

The framework is called ROS. ;) More specifically you only need the appropriate client library, e.g., roscpp running, but not any of the tools like rviz, etc. The client library implements exactly what you need, handling out messages, serializing, etc. For whatever your system supports, you should look for a ROS client library.

If none of what is implemented as part of ROS works for you, you can still implement that yourself on the network directly. There is documentation, but this is probably not necessary for most languages.

edit flag offensive delete link more


The framework I used, or rather the environment, is Unity ;) And the way I see it, there is no C# implementation of ROS' client library.

Borob gravatar image Borob  ( 2015-07-02 10:29:24 -0500 )edit

There is/was . It doesn't seem updated any more, but might still work.

dornhege gravatar image dornhege  ( 2015-07-03 03:32:51 -0500 )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


Asked: 2015-07-02 07:31:23 -0500

Seen: 210 times

Last updated: Jul 02 '15