Fixing the name of the topic image

This commit is contained in:
Nathan BEAUD 2024-04-02 16:32:56 +02:00
parent 5f512dcc14
commit 0d5a3ae9c0
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class RedBallChaser {
public:
RedBallChaser() {
cmd_vel_pub = nh.advertise<geometry_msgs::Twist>("/cmd_vel", 1);
image_sub = nh.subscribe("/camera/image_raw", 1, &RedBallChaser::imageCallback, this);
image_sub = nh.subscribe("/camera/image", 1, &RedBallChaser::imageCallback, this);
cv::namedWindow("Red Ball Detection", cv::WINDOW_NORMAL);
}