Ask Your Question
0

Communicating with ROS application from Xojo

asked 2018-06-22 01:53:40 -0500

Robert_d1968 gravatar image

updated 2018-06-22 02:42:59 -0500

gvdhoorn gravatar image

Hello there,

I'm going to be running ros on a sbc x86 based, with a Ubuntu 16.04 64 bit OS. I will be writing a GUI application in Xojo and I'm going to need to be able to read information from the ros program.

Is there any information out there on making your own subscriber in C or python? Anybody been down this road yet?

I'll still look around on the internet a bit more, but if anybody has a code snip-it or two, that would very useful for me.

Thanks for any help you can provide,

Robert

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-06-22 01:56:49 -0500

gvdhoorn gravatar image

updated 2018-06-22 02:40:00 -0500

Is there any information out there on making your own subscriber in C or python?

C is not supported (or at least not without writing some wrappers yourself), but Python is fully supported. Do the tutorials not cover this?


Edit: unless with "own subscriber" you mean "without using the standard ROS client libraries". That would be something else.


Edit2:

No, I wont be using ROS client libraries for this GUI. I will need to learn how to do this and somewhat quick too.

Writing your own client lib is not going to be trivial. Doable, but not trivial.

You could perhaps take a look at rosbridge_suite. It's a JSON bridge for ROS1. Anything that supports web- or a tcp socket and JSON should be integrable that way.

There are various implementations of client libs for the rosbridge protocol. See roslibpy for one example. None of those need a full ROS installation.

edit flag offensive delete link more

Comments

No, I wont be using ROS client libraries for this GUI. I will need to learn how to do this and somewhat quick too.

Robert_d1968 gravatar image Robert_d1968  ( 2018-06-22 02:02:36 -0500 )edit
1

The client libraries (C++ and Python) do a pretty good job of working as libraries, particularly the python client library. What prevents you from using it within your application?

ahendrix gravatar image ahendrix  ( 2018-06-22 02:38:09 -0500 )edit

Xojo is a Basic language IDE that said, I don't think it would be able to use them in that IDE. But since ROS supports pascal, I may try out PYQT for the GUI, that should mean a lot less hassle for me.

Robert_d1968 gravatar image Robert_d1968  ( 2018-06-22 04:13:55 -0500 )edit

Thanks for the tip with the ROS bridge! Xojo also supports JSON. This should be a breeze with the bridge.

Robert_d1968 gravatar image Robert_d1968  ( 2018-06-22 04:25:04 -0500 )edit

You might want to take a look at the Python lib I linked to.

Also: robotwebtools.org.

gvdhoorn gravatar image gvdhoorn  ( 2018-06-22 04:31:04 -0500 )edit

Thank you, I did look at that library you linked, a lot of great information there! looks like I have a lot of reading to do. :)

Robert_d1968 gravatar image Robert_d1968  ( 2018-06-22 06:50:02 -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

2 followers

Stats

Asked: 2018-06-22 01:53:40 -0500

Seen: 53 times

Last updated: Jun 22 '18