Skip to content

Commit

Permalink
Update ros-humble-nav2-waypoint-follower.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored May 3, 2024
1 parent 9e4cc87 commit 2827f06
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patch/ros-humble-nav2-waypoint-follower.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
diff --git a/plugins/photo_at_waypoint.cpp b/plugins/photo_at_waypoint.cpp
index 296f8f41de..4e2858f655 100644
--- a/plugins/photo_at_waypoint.cpp
+++ b/plugins/photo_at_waypoint.cpp
@@ -119,7 +119,7 @@ bool PhotoAtWaypoint::processAtWaypoint(
std::lock_guard<std::mutex> guard(global_mutex_);
cv::Mat curr_frame_mat;
deepCopyMsg2Mat(curr_frame_msg_, curr_frame_mat);
- cv::imwrite(full_path_image_path.c_str(), curr_frame_mat);
+ cv::imwrite(full_path_image_path.string().c_str(), curr_frame_mat);
RCLCPP_INFO(
logger_,
"Photo has been taken sucessfully at waypoint %i", curr_waypoint_index);
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a3b46942b..e228086fa 100644
--- a/CMakeLists.txt
Expand Down

0 comments on commit 2827f06

Please sign in to comment.