Skip to content

Commit

Permalink
Updated deprecated rcpputils::path (#1014)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Jul 26, 2024
1 parent 0ecbcc1 commit 6ef6cc0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions image_proc/test/rostest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include <gtest/gtest.h>

#include <filesystem>
#include <memory>
#include <string>

Expand Down Expand Up @@ -65,9 +66,9 @@ class ImageProcTest
topic_color = camera_ns + "image_color";
topic_rect_color = camera_ns + "image_rect_color";

const rcpputils::fs::path base{_SRC_RESOURCES_DIR_PATH};
const rcpputils::fs::path raw_image_file = base / "logo.png";
const rcpputils::fs::path cam_info_file = base / "calibration_file.ini";
const std::filesystem::path base{_SRC_RESOURCES_DIR_PATH};
const std::filesystem::path raw_image_file = base / "logo.png";
const std::filesystem::path cam_info_file = base / "calibration_file.ini";

/// @todo Test variety of encodings for raw image (bayer, mono, color)
cv::Mat img = cv::imread(raw_image_file.string(), 0);
Expand Down

0 comments on commit 6ef6cc0

Please sign in to comment.