두번째 응용 사례인 Object Following 예제를 시작해 보도록 하겠습니다. 🎆
먼저 실행 모습부터 살펴보겠습니다.
jetson을 구매하셨다면 모두들 가지고 있는 이 녹색 박스를 따라서 조향하는 예제입니다.
$ roscore
# camera image publisher
$ rosrun csi_camera csi_pub.py
# CV Magic, Bind Ball with Pixel Value
$ rosrun donkey_cv find_ball.py
# Blob Point to Twist
$ rosrun donkey_control chase_the_ball.py
# PWM Control node
$ rosrun donkey_control blob_chase.py
# image_view 실행
$ rosrun image_view image_view image:=/blob/image_blob
문제없이 잘 실행 되셨나요?? 전체적인 구조를 살펴보도록 하겠습니다.