|
|
@ -37,9 +37,9 @@ class Traite_image { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Traite_image() : n("~"),it(n) { |
|
|
Traite_image() : n("~"),it(n) { |
|
|
pub_img = it.advertise("/image_out", 1); |
|
|
pub_img = it.advertise("/papillon/image_out", 1); |
|
|
pub_thres = it.advertise("/thres_out", 1); |
|
|
pub_thres = it.advertise("/papillon/thres_out", 1); |
|
|
pub_cmd = n.advertise<papillon::BoundingBox>("/bbox", 1); |
|
|
pub_cmd = n.advertise<papillon::BoundingBox>("/papillon/bbox", 1); |
|
|
sub = it.subscribe("/bebop/image_raw", 1, [this](const sensor_msgs::ImageConstPtr& img) -> void { this->on_image(img);},ros::VoidPtr(),image_transport::TransportHints("compressed")); |
|
|
sub = it.subscribe("/bebop/image_raw", 1, [this](const sensor_msgs::ImageConstPtr& img) -> void { this->on_image(img);},ros::VoidPtr(),image_transport::TransportHints("compressed")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|