Creating a new node and subscribe it to a different node's topic

asked 2018-03-28 10:08:02 -0600

tolga-uni-lu gravatar image

A general question here! I would like to create a node in may catkin_ws and write a custom node in python for reading key point data from openpose node. I went over the tutorials, but they use a prebuilt beginners tutorial. A new node is not created from scratch. Could you suggest me a useful documentation/video link for achieving such goal? Thanks,

edit retag flag offensive close merge delete

Comments

1

Which goal? Creating a node from scratch? Does Writing a Simple Publisher and Subscriber (Python) cover what you're looking for?

gvdhoorn gravatar image gvdhoorn  ( 2018-03-28 10:30:52 -0600 )edit

Yes sir I did complete the tutorial. My goal is to be able to read the data of another node's topics publication. I do not believe this covers my need. But of course, you would know better. If you think it does, probably I am missing a point.

tolga-uni-lu gravatar image tolga-uni-lu  ( 2018-03-28 13:38:24 -0600 )edit

The first part of the tutorial shows you how to publish (ie: write) data yourself. The second part of the tutorial shows how to subscribe (ie: read) data that other nodes published.

I don't know whether I know better, but the second part seems to align with your description: "read data of ..

gvdhoorn gravatar image gvdhoorn  ( 2018-03-28 13:40:14 -0600 )edit

.. another node". No?

gvdhoorn gravatar image gvdhoorn  ( 2018-03-28 13:40:26 -0600 )edit

Yes I just want to create a brand new node to subscribe a specific topic and publish some info according to readings.

tolga-uni-lu gravatar image tolga-uni-lu  ( 2018-04-03 02:30:47 -0600 )edit

The topic I want to subscribe is written in cpp where I want to use python. I do not get where the topic/message names are so that in my subscriber I can specify its name.

tolga-uni-lu gravatar image tolga-uni-lu  ( 2018-04-03 03:17:29 -0600 )edit