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

How to start creating a package to read a signal and publish it in a ROS network

asked 2019-06-13 08:59:35 -0500

Paulo gravatar image


I am new to ROS and programing and I would like some advices to develop a ROS package/node that reads a radio signal, so far I can only access it from its IPs address from a browser like a internet wifi modem, and pusblish it so I could use it in a ROS network.

Any Advices, papers, links, to start this journey ???

Thanks a lot in advance.

edit retag flag offensive close merge delete


I think further clarification is needed here. What "radio signal" are you talking about? Radar? Are you asking about how to write a node that communicates with some sensor and publishes the data in ROS?

ChuiV gravatar image ChuiV  ( 2019-06-13 09:12:02 -0500 )edit

Hi. It's basically a rocket m900, one access point and one client connect via wifi. I would like to monitor it and send the signal strength through a ROS network. Although I'm not familiar with getting the signal data, that is not in any ROS package, and publish it in my ROS network. I can initially access it like a common wifi router and see some statistics. I would like some tips and material to start developing a way to publish this that in my ROS network. Thank you!

Paulo gravatar image Paulo  ( 2019-06-13 09:25:18 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2019-06-13 09:32:48 -0500

Your first task will be to write a c++ or python program that can access the signal strength information you need. If you can monitor it over HTTP can you send a CURL request and receive a text response that contains the signal strength? Your program will then need to parse this text and extract the raw strength reading.

When you have this working you can adapt the simple publisher example to publish the data to a topic.

Hope this gives you enough to get started.

edit flag offensive delete link more


Nice . I'll check that as well. Thank you

Paulo gravatar image Paulo  ( 2019-06-13 10:52:09 -0500 )edit

Hello, it helped me indeed. Thanks. I am able to get my data through a PHP script now.

Is it possible to use it with ROS in a python package?

Thank you a lot

Paulo gravatar image Paulo  ( 2019-06-18 09:53:00 -0500 )edit

Yes it is certainly possible. I recommend us using one of the python CURL libraries such as pycURL That way you will be able to get the data in the same way from a python ROS node. Then is should be fairly straight forward to publish the data over a topic.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-06-18 10:35:03 -0500 )edit

answered 2019-06-13 09:33:41 -0500

ChuiV gravatar image

I'm not super familiar with the ubiquity radios (I've configured a few bullets in the past...) I would ask on the ubiquity forums if an API exists to query the signal strength and other stats about the network that you're interested in. If there is an API, you're going to have to write a custom node to send API requests to the rocket, parse the responses then publish them in ROS.

A simple tutorial for python publishers and subscribers:

edit flag offensive delete link more


Thanks for your reply. That's a good start and I'll take a look :)

Paulo gravatar image Paulo  ( 2019-06-13 10:51:05 -0500 )edit

Question Tools

1 follower


Asked: 2019-06-13 08:59:35 -0500

Seen: 462 times

Last updated: Jun 13 '19