image_common
image_common copied to clipboard
ROS2 branch leading to errors (dashing)
Hi! I'm trying to use the image_common package (refer to). When using dashing environment, the packages were successfully built for dashing branch, but when using ROS2 branch I got the following errors:
Full output:
Starting >>> camera_calibration_parsers
Starting >>> image_transport
--- stderr: camera_calibration_parsers
<env>/src/image_common/camera_calibration_parsers/src/parse_ini.cpp: In function ‘bool camera_calibration_parsers::writeCalibrationIni(const string&, const string&, const CameraInfo&)’:
<env>/src/image_common/camera_calibration_parsers/src/parse_ini.cpp:312:12: error: ‘class rcpputils::fs::path’ has no member named ‘empty’
if (!dir.empty() && !rcpputils::fs::exists(dir) &&
^~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse_ini.cpp:313:21: error: ‘create_directories’ is not a member of ‘rcpputils::fs’
!rcpputils::fs::create_directories(dir))
^~~~~~~~~~~~~~~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse_yml.cpp: In function ‘bool camera_calibration_parsers::writeCalibrationYml(const string&, const string&, const CameraInfo&)’:
<env>/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:171:12: error: ‘class rcpputils::fs::path’ has no member named ‘empty’
if (!dir.empty() && !rcpputils::fs::exists(dir) &&
^~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:172:21: error: ‘create_directories’ is not a member of ‘rcpputils::fs’
!rcpputils::fs::create_directories(dir))
^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/camera_calibration_parsers.dir/src/parse_ini.cpp.o] Error 1
make[2]: ** Esperando que outros processos terminem.
make[2]: *** [CMakeFiles/camera_calibration_parsers.dir/src/parse_yml.cpp.o] Error 1
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp: In function ‘bool camera_calibration_parsers::writeCalibration(const string&, const string&, const CameraInfo&)’:
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:54:9: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
if (p.extension().string() == ".ini") {
^~~~~~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:56:16: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
} else if (p.extension().string() == ".yml" || p.extension().string() == ".yaml") {
^~~~~~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:56:52: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
} else if (p.extension().string() == ".yml" || p.extension().string() == ".yaml") {
^~~~~~~~~
In file included from /opt/ros/dashing/include/rclcpp/client.hpp:39:0,
from /opt/ros/dashing/include/rclcpp/callback_group.hpp:23,
from /opt/ros/dashing/include/rclcpp/any_executable.hpp:20,
from /opt/ros/dashing/include/rclcpp/memory_strategy.hpp:24,
from /opt/ros/dashing/include/rclcpp/memory_strategies.hpp:18,
from /opt/ros/dashing/include/rclcpp/executor.hpp:33,
from /opt/ros/dashing/include/rclcpp/executors/multi_threaded_executor.hpp:24,
from /opt/ros/dashing/include/rclcpp/executors.hpp:21,
from /opt/ros/dashing/include/rclcpp/rclcpp.hpp:144,
from <env>/src/image_common/camera_calibration_parsers/src/parse.cpp:42:
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:62:9: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
p.extension().string().c_str());
^
/opt/ros/dashing/include/rcutils/logging_macros.h:72:64: note: in definition of macro ‘RCUTILS_LOG_COND_NAMED’
rcutils_log(&__rcutils_logging_location, severity, name, __VA_ARGS__); \
^~~~~~~~~~~
/opt/ros/dashing/include/rclcpp/logging.hpp:494:5: note: in expansion of macro ‘RCUTILS_LOG_ERROR_NAMED’
RCUTILS_LOG_ERROR_NAMED( \
^~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/dashing/include/rclcpp/logging.hpp:497:9: note: in expansion of macro ‘RCLCPP_ALL_BUT_FIRST_ARGS’
RCLCPP_ALL_BUT_FIRST_ARGS(__VA_ARGS__,"")); \
^~~~~~~~~~~~~~~~~~~~~~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:59:5: note: in expansion of macro ‘RCLCPP_ERROR’
RCLCPP_ERROR(
^~~~~~~~~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp: In function ‘bool camera_calibration_parsers::readCalibration(const string&, std::__cxx11::string&, camera_calibration_parsers::CameraInfo&)’:
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:73:9: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
if (p.extension().string() == ".ini") {
^~~~~~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:75:16: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
} else if (p.extension().string() == ".yml" || p.extension().string() == ".yaml") {
^~~~~~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:75:52: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
} else if (p.extension().string() == ".yml" || p.extension().string() == ".yaml") {
^~~~~~~~~
In file included from /opt/ros/dashing/include/rclcpp/client.hpp:39:0,
from /opt/ros/dashing/include/rclcpp/callback_group.hpp:23,
from /opt/ros/dashing/include/rclcpp/any_executable.hpp:20,
from /opt/ros/dashing/include/rclcpp/memory_strategy.hpp:24,
from /opt/ros/dashing/include/rclcpp/memory_strategies.hpp:18,
from /opt/ros/dashing/include/rclcpp/executor.hpp:33,
from /opt/ros/dashing/include/rclcpp/executors/multi_threaded_executor.hpp:24,
from /opt/ros/dashing/include/rclcpp/executors.hpp:21,
from /opt/ros/dashing/include/rclcpp/rclcpp.hpp:144,
from <env>/src/image_common/camera_calibration_parsers/src/parse.cpp:42:
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:81:9: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
p.extension().string().c_str());
^
/opt/ros/dashing/include/rcutils/logging_macros.h:72:64: note: in definition of macro ‘RCUTILS_LOG_COND_NAMED’
rcutils_log(&__rcutils_logging_location, severity, name, __VA_ARGS__); \
^~~~~~~~~~~
/opt/ros/dashing/include/rclcpp/logging.hpp:494:5: note: in expansion of macro ‘RCUTILS_LOG_ERROR_NAMED’
RCUTILS_LOG_ERROR_NAMED( \
^~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/dashing/include/rclcpp/logging.hpp:497:9: note: in expansion of macro ‘RCLCPP_ALL_BUT_FIRST_ARGS’
RCLCPP_ALL_BUT_FIRST_ARGS(__VA_ARGS__,"")); \
^~~~~~~~~~~~~~~~~~~~~~~~~
<env>/src/image_common/camera_calibration_parsers/src/parse.cpp:78:5: note: in expansion of macro ‘RCLCPP_ERROR’
RCLCPP_ERROR(
^~~~~~~~~~~~
make[2]: *** [CMakeFiles/camera_calibration_parsers.dir/src/parse.cpp.o] Error 1
make[1]: *** [CMakeFiles/camera_calibration_parsers.dir/all] Error 2
make[1]: ** Esperando que outros processos terminem.
make: *** [all] Error 2
---
Failed <<< camera_calibration_parsers [4.65s, exited with code 2]
Aborted <<< image_transport [10.5s]
Thanks in advance.