Ask Your Question
0

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

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

Paulo gravatar image

Hi,

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

Comments

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 imageChuiV ( 2019-06-13 09:12:02 -0600 )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 imagePaulo ( 2019-06-13 09:25:18 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

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

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

Comments

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

Paulo gravatar imagePaulo ( 2019-06-13 10:52:09 -0600 )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 imagePaulo ( 2019-06-18 09:53:00 -0600 )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 imagePeteBlackerThe3rd ( 2019-06-18 10:35:03 -0600 )edit
0

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

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: https://wiki.ros.org/roslaunch/XML/ro...

edit flag offensive delete link more

Comments

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

Paulo gravatar imagePaulo ( 2019-06-13 10:51:05 -0600 )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

1 follower

Stats

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

Seen: 43 times

Last updated: Jun 13