Yaml missing operators when compiling camera_calibration_parsers

asked 2019-12-13 16:59:22 -0600

AsianInvasi0n gravatar image

Trying get ROS Kinetic up and running on a RPi (Raspbian) but this error keeps happening:

[ 86%] Building CXX object image_common/camera_calibration_parsers/CMakeFiles/camera_calibration_parsers.dir/src/parse_yml.cpp.o
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp: In function ‘void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)’:
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:96:16: error: no match for ‘operator>>’ (operand types are ‘const YAML::Node’ and ‘int’)
   node["rows"] >> rows;
                ^
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:96:16: note: candidate is:
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:93:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
 void operator >> (const YAML::Node& node, SimpleMatrix& m)
      ^
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:93:6: note:   no known conversion for argument 2 from ‘int’ to ‘camera_calibration_parsers::SimpleMatrix&’
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:98:16: error: no match for ‘operator>>’ (operand types are ‘const YAML::Node’ and ‘int’)
   node["cols"] >> cols;
                ^
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:98:16: note: candidate is:
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:93:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
 void operator >> (const YAML::Node& node, SimpleMatrix& m)
      ^
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:93:6: note:   no known conversion for argument 2 from ‘int’ to ‘camera_calibration_parsers::SimpleMatrix&’
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:102:13: error: no match for ‘operator>>’ (operand types are ‘const YAML::Node’ and ‘double’)
     data[i] >> m.data[i];
             ^
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:102:13: note: candidate is:
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:93:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
 void operator >> (const YAML::Node& node, SimpleMatrix& m)
      ^

#..............
# It's the same thing for a few hundred lines
#..............

/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:216:17: note: candidate is:
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:93:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
 void operator >> (const YAML::Node& node, SimpleMatrix& m)
      ^
/home/pi/catkin_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:93:6: note:   no known conversion for argument 2 from ‘__gnu_cxx::__alloc_traits<std::allocator<double> >::value_type {aka double}’ to ‘camera_calibration_parsers::SimpleMatrix&’
image_common/camera_calibration_parsers/CMakeFiles/camera_calibration_parsers.dir/build.make:110: recipe for target 'image_common/camera_calibration_parsers/CMakeFiles/camera_calibration_parsers.dir/src/parse_yml.cpp.o' failed
make[2]: *** [image_common/camera_calibration_parsers/CMakeFiles/camera_calibration_parsers.dir/src/parse_yml.cpp.o] Error 1
CMakeFiles/Makefile2:38323: recipe for target 'image_common/camera_calibration_parsers/CMakeFiles/camera_calibration_parsers.dir/all' failed
make[1]: *** [image_common/camera_calibration_parsers/CMakeFiles/camera_calibration_parsers.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1" failed

I've looked at this, but it doesn't look like the solution is applicable to mine (or I'm too ignorant to see how it is).

This didn't work for me either, as I still ... (more)

edit retag flag offensive close merge delete