Skip to content

Commit

Permalink
use a regular image publisher instead of image_transport for the debu…
Browse files Browse the repository at this point in the history
…g fiducial image
  • Loading branch information
lucasw committed May 31, 2024
1 parent 7b3ae52 commit f5b8009
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aruco_detect/src/aruco_detect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <visualization_msgs/Marker.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/image_encodings.h>
#include <dynamic_reconfigure/server.h>
#include <std_srvs/SetBool.h>
Expand Down Expand Up @@ -113,7 +114,7 @@ class FiducialsNode {
ros::NodeHandle nh;
ros::NodeHandle pnh;

image_transport::Publisher image_pub;
ros::Publisher image_pub;

// log spam prevention
int prev_detected_count;
Expand Down Expand Up @@ -663,7 +664,7 @@ FiducialsNode::FiducialsNode() : nh(), pnh("~"), it(nh)
}
}

image_pub = it.advertise("fiducial_images", 1);
image_pub = nh.advertise<sensor_msgs::Image>("fiducial_images", 1);

vertices_pub = nh.advertise<fiducial_msgs::FiducialArray>("fiducial_vertices", 1);

Expand Down

0 comments on commit f5b8009

Please sign in to comment.