How can you track an object using ROS for drone?

asked 2019-10-05 13:28:14 -0500

Anonymous gravatar image

I would like to track an object in the camera frame of drone to control its movement. Currently, I have an image processing node and a drone controller file. In the image processing node, I have calculated the center of the ball such that its coordinates will always be recognized/tracked in the camera frame and printed out of the camera frame.

How can I publish this coordinates calculated to my drone node so that I could make sure that the object center is always coincident to the camera center frame. In other words, what message/topics should I use to link the two nodes (the publisher and subscriber)?

The files are written in python

edit retag flag offensive close merge delete