The algorithm continuously monitors the location of the object and determines the control of the robot in such a way that the tracked object is in front of it.
block diagram of the tracking algorithm
Image Processing
cv_bridge package will convert the image from cv:Mat to sensor_msgs::msg::Image and vice versa.
Robot Control
The robot is controlled by determining the distance between the center of the object and the center of the camera image.
In order to maintain smooth movement, a proportional controller with a saturator was created to protect the system against oscillations. Control commands are sent in the form of a Twist message to the topic /cmd_vel, enabling the robot to move accordingly.
geometry_msgs/Twist.msg
This is a great option for us to use to send motion commands to our radio_control node because it