This question is somewhat a follow up question to my previous post: ROS: Publish topic without 3 second latching
Again, as a premise, I'm very inexperienced with ROS, thus this question might be missing some data and or be a little confusing.
Let's say I have a node that publishes to a topic and an external C program that dumps data every x Hz. How can I, from that external program, publish to a rostopic
every time I get data from that program?
That is my base question, I'm not sure how understandble that is so I'll be very specific with what I want to do.
I have a C program that dumps ADSB flight data. For every data dump I convert that data into a mavros/ADSBVehicle
rosmsg
. I was previously trying to publish that message via CLI, which I found out was not the correct way of doing it. Now I have created a ROS node
that would to the publishing of that message. My question is, how can I, from that external program, publish to a rostopic
through that node?
Does that make sense? Thank you.