Ask Your Question
0

Problem with subscriber

asked 2018-08-15 06:41:00 -0500

ameni gravatar image

updated 2018-08-15 08:21:28 -0500

HI, I'm using a roboteq magsensor, and I want to read data from. so I'm going to use Roboteq Linux API to interface one the sensor form a C++ ROS node through CANbus . The problem is I didn't come to know how to work: it's only one node that's gonna read from the sensor , how to use topic in this situation ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-08-15 07:06:07 -0500

Airuno2L gravatar image

A node that reads sensor data is usually just a publisher, not a subscriber.

This node will use the Roboteq Linux API to read the sensor data, then it will publish that sensor data to the ROS network in a topic.

Then if you want to use that sensor data for something, you would write a separate node that subscribes to that topic.

edit flag offensive delete link more

Comments

Okey, a publisher node will read sensor data using Roboteq Linux API,

My problem is: I didn't come to know how to implement the API, especially when i don't know how the node will read data , because i don't know how to use the "topic" in this situation

ameni gravatar image ameni  ( 2018-08-15 07:14:54 -0500 )edit

Have you went through the beginner tutorials already? If not, I would suggest going through them before going any farther.

Airuno2L gravatar image Airuno2L  ( 2018-08-15 12:27:42 -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

1 follower

Stats

Asked: 2018-08-15 06:41:00 -0500

Seen: 45 times

Last updated: Aug 15 '18