Skip to content

Commit

Permalink
Explicit convert from std::filesystem::path to std::string for Window…
Browse files Browse the repository at this point in the history
…s compatibility (ros-navigation#4870)

Signed-off-by: Silvio Traversaro <[email protected]>
Signed-off-by: RBT22 <[email protected]>
  • Loading branch information
traversaro authored and RBT22 committed Jan 22, 2025
1 parent 19ccd85 commit 1102dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_waypoint_follower/plugins/photo_at_waypoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 successfully at waypoint %i", curr_waypoint_index);
Expand Down

0 comments on commit 1102dd1

Please sign in to comment.