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

Using roscpp in external software

asked 2014-09-10 07:21:01 -0500

Myzhar gravatar image

I would like to link to roscpp in an external software such to communicate with the ROS system running on my robot.

The scope is to use my Qt5 GUI to control and configure the robot on different systems (Windows, Linux, Android...).

Is there a guide or examples about this process?

Thank you Walter

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-09-12 09:03:54 -0500

Dirk Thomas gravatar image

updated 2014-09-12 09:04:38 -0500

You might also want to look into rqt and write a plugin for it to implement your specific UI.

One of the advantages is that your tool can then be used together with other plugins in a unified interface.

edit flag offensive delete link more

Comments

Hi Dirk, I knew about rqt, is it yet based on Qt4.8?

However I do not think that I can use rqt on different platforms... what I'm searching for is a way to "subscribe" and to "publish" in a "not rosnode", nominally to insert a "node" inside a pre-existing application.

Myzhar gravatar image Myzhar  ( 2014-09-12 09:43:50 -0500 )edit

rqt supports PyQt as well as PySide. For the second one only Qt 4.x support is available.

Dirk Thomas gravatar image Dirk Thomas  ( 2014-09-17 07:12:22 -0500 )edit

The C++ client library of ROS is structured in a way that it allows it to be used easily within any other code. Just use the API as described in the normal tutorials.

Dirk Thomas gravatar image Dirk Thomas  ( 2014-09-17 07:12:38 -0500 )edit
0

answered 2014-09-10 13:04:51 -0500

bvbdort gravatar image

Check rosbridge_suite which provide WebSocket to interact with ROS using JSON messages. You can send JSON message from your GUI.

edit flag offensive delete link more

Comments

Isn't there a way to use "simple" C/C++ calls?

Myzhar gravatar image Myzhar  ( 2014-09-11 03:19:18 -0500 )edit

you can try jansson or jsoncpp libraries check example here

bvbdort gravatar image bvbdort  ( 2014-09-11 03:35:09 -0500 )edit

Question Tools

Stats

Asked: 2014-09-10 07:21:01 -0500

Seen: 326 times

Last updated: Sep 12 '14