Skip to content

Commit

Permalink
Added transport options to apriltags_ros
Browse files Browse the repository at this point in the history
  • Loading branch information
amalnanavati committed Oct 26, 2021
1 parent 71164af commit c5563da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions apriltag_ros/config/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ tag_debug: 0 # default: 0
max_hamming_dist: 2 # default: 2 (Tunable parameter with 2 being a good choice - values >=3 consume large amounts of memory. Choose the largest value possible.)
# Other parameters
publish_tf: true # default: false
transport_hint: "raw" # default: raw, see http://wiki.ros.org/image_transport#Known_Transport_Packages for options
6 changes: 5 additions & 1 deletion apriltag_ros/src/continuous_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ void ContinuousDetector::onInit ()
it_ = std::shared_ptr<image_transport::ImageTransport>(
new image_transport::ImageTransport(nh));

std::string transport_hint;
pnh.param<std::string>("transport_hint", transport_hint, "raw");

camera_image_subscriber_ =
it_->subscribeCamera("image_rect", 1,
&ContinuousDetector::imageCallback, this);
&ContinuousDetector::imageCallback, this,
image_transport::TransportHints(transport_hint));
tag_detections_publisher_ =
nh.advertise<AprilTagDetectionArray>("tag_detections", 1);
if (draw_tag_detections_image_)
Expand Down

0 comments on commit c5563da

Please sign in to comment.