Unable to run colcon build fails with an error in camera_calibration_parsers

asked 2020-04-17 12:03:05 -0600

niknak gravatar image

I am not able to run 6th step mentioned on this page:

http://gazebosim.org/tutorials?tut=ro...

I am trying to install ros2 dashing on Ubuntu bionic. I am now on Gazebo 9.

I am attaching the error stack here. Any help would be greatly appreciated.

/home/user/ws/src/ros-perception/image_common/camera_calibration_parsers/src/parse_ini.cpp: In function ‘bool camera_calibration_parsers::writeCalibrationIni(const string&, const string&, const CameraInfo&)’: /home/user/ws/src/ros-perception/image_common/camera_calibration_parsers/src/parse_ini.cpp:307:12: error: ‘class rcpputils::fs::path’ has no member named ‘empty’ if (!dir.empty() && !rcpputils::fs::exists(dir) && ^~~~~ /home/user/ws/src/ros-perception/image_common/camera_calibration_parsers/src/parse_ini.cpp:308:21: error: ‘create_directories’ is not a member of ‘rcpputils::fs’ !rcpputils::fs::create_directories(dir)) ^~~~~~~~~~~~~~~~~~ /home/user/ws/src/ros-perception/image_common/camera_calibration_parsers/src/parse_yml.cpp: In function ‘bool camera_calibration_parsers::writeCalibrationYml(const string&, const string&, const CameraInfo&)’: /home/user/ws/src/ros-perception/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) && ^~~~~ /home/user/ws/src/ros-perception/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]: Waiting for unfinished jobs.... make[2]: [CMakeFiles/camera_calibration_parsers.dir/src/parse_yml.cpp.o] Error 1 /home/user/ws/src/ros-perception/image_common/camera_calibration_parsers/src/parse.cpp: In function ‘bool camera_calibration_parsers::writeCalibration(const string&, const string&, const CameraInfo&)’: /home/user/ws/src/ros-perception/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") { ^~~~~~~~~ /home/user/ws/src/ros-perception/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") { ^~~~~~~~~ /home/user/ws/src/ros-perception/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 /home/user/ros2_dashing/ros2-linux/include/rclcpp/client.hpp:39:0, from /home/user/ros2_dashing/ros2-linux/include/rclcpp/callback_group.hpp:23, from /home/user/ros2_dashing/ros2-linux/include/rclcpp/any_executable.hpp:20, from /home/user/ros2_dashing/ros2-linux/include/rclcpp/memory_strategy.hpp:24, from /home/user/ros2_dashing/ros2-linux/include/rclcpp/memory_strategies.hpp:18, from /home/user/ros2_dashing/ros2-linux/include/rclcpp/executor.hpp:33, from /home/user/ros2_dashing/ros2-linux/include/rclcpp/executors/multi_threaded_executor.hpp:24, from /home/user/ros2_dashing/ros2-linux/include/rclcpp/executors.hpp:21, from /home/user/ros2_dashing/ros2-linux/include/rclcpp/rclcpp.hpp:144, from /home/user/ws/src/ros-perception/image_common/camera_calibration_parsers/src/parse.cpp:42: /home/user/ws/src/ros-perception/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()); ^ /home/user/ros2_dashing/ros2-linux/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__); \ ^~~~~~~~~~~ /home/user/ros2_dashing/ros2-linux/include/rclcpp/logging.hpp:494 ... (more)

edit retag flag offensive close merge delete

Comments

Hello. I'm having a very similar error with Gazebo11 and ROS2 even though the installation worked just 2 days ago. Did you find a solution to the problem?

Santiago Perez gravatar imageSantiago Perez ( 2021-08-27 10:22:59 -0600 )edit