Skip to content

Commit

Permalink
stupid me
Browse files Browse the repository at this point in the history
  • Loading branch information
jyjblrd committed Apr 13, 2024
1 parent d4cfcad commit d0db317
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/orb_slam3_ros/src/ros_mono.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class OrbSlam3Mono : public OrbSlam3Wrapper {
this->declare_parameter("reliableImageTransport", true);
bool reliableImageTransport = this->get_parameter("reliableImageTransport").as_bool();

this->declare_parameter("compressedImage", false);
this->declare_parameter("compressedImage", true);
bool compressedImage = this->get_parameter("compressedImage").as_bool();

image_subscriber_thread = std::thread([this, imageTopic, reliableImageTransport, compressedImage]() {
Expand All @@ -39,6 +39,7 @@ class OrbSlam3Mono : public OrbSlam3Wrapper {
reliableImageTransport ? RELIABLE_QOS : BEST_EFFORT_QOS,
std::bind(&OrbSlam3Mono::grab_image, this, std::placeholders::_1));
}
rclcpp::spin(sub_node);
});

run();
Expand Down

0 comments on commit d0db317

Please sign in to comment.