Fixing the name of the topic image
This commit is contained in:
parent
5f512dcc14
commit
0d5a3ae9c0
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue