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 (#4870)

Signed-off-by: Silvio Traversaro <silvio@traversaro.it>
  • Loading branch information
traversaro authored Jan 21, 2025
1 parent a33e8d2 commit ad756f7
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 ad756f7

Please sign in to comment.