You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install the packages in my Ubuntu 16 ROS Kinetic laptop and find this error when I run catkin_make: error: invalid conversion from ‘octomap::AbstractOcTree*’ to ‘boost::shared_ptr<octomap::OcTree>::element_type* {aka octomap::OcTree*}’ [-fpermissive]
Here's the longer output: Scanning dependencies of target ball_detector_node [ 94%] Building CXX object ROBOTIS-OP3-Demo/ball_detector/CMakeFiles/ball_detector_node.dir/src/ball_detector.cpp.o In file included from /usr/include/boost/shared_ptr.hpp:17:0, from /usr/include/boost/format/alt_sstream.hpp:21, from /usr/include/boost/format/internals.hpp:23, from /usr/include/boost/format.hpp:38, from /usr/include/boost/math/policies/error_handling.hpp:31, from /usr/include/boost/math/special_functions/round.hpp:14, from /opt/ros/kinetic/include/ros/time.h:58, from /opt/ros/kinetic/include/ros/ros.h:38, from /home/turtlebot/op3_ws/src/humanoid_navigation/humanoid_localization/include/humanoid_localization/MapModel.h:28, from /home/turtlebot/op3_ws/src/humanoid_navigation/humanoid_localization/src/MapModel.cpp:24: /usr/include/boost/smart_ptr/shared_ptr.hpp: In instantiation of ‘boost::shared_ptr<T>::shared_ptr(Y*) [with Y = octomap::AbstractOcTree; T = octomap::OcTree]’: /usr/include/boost/smart_ptr/shared_ptr.hpp:620:9: required from ‘void boost::shared_ptr<T>::reset(Y*) [with Y = octomap::AbstractOcTree; T = octomap::OcTree]’ /home/turtlebot/op3_ws/src/humanoid_navigation/humanoid_localization/src/MapModel.cpp:275:53: required from here /usr/include/boost/smart_ptr/shared_ptr.hpp:347:47: error: invalid conversion from ‘octomap::AbstractOcTree*’ to ‘boost::shared_ptr<octomap::OcTree>::element_type* {aka octomap::OcTree*}’ [-fpermissive] explicit shared_ptr( Y * p ): px( p ), pn() // Y must be complete ^ humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/build.make:62: recipe for target 'humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/src/MapModel.cpp.o' failed make[2]: *** [humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/src/MapModel.cpp.o] Error 1 CMakeFiles/Makefile2:9971: recipe for target 'humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/all' failed make[1]: *** [humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 94%] Building CXX object ROBOTIS-OP3-Demo/ball_detector/CMakeFiles/ball_detector_node.dir/src/ball_detector_node.cpp.o [ 95%] Linking CXX executable /home/turtlebot/op3_ws/devel/lib/ball_detector/ball_detector_node [ 95%] Built target ball_detector_node Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j2 -l2" failed
Can anyone point me to what I could have done wrong?
The text was updated successfully, but these errors were encountered:
I'm trying to install the packages in my Ubuntu 16 ROS Kinetic laptop and find this error when I run catkin_make:
error: invalid conversion from ‘octomap::AbstractOcTree*’ to ‘boost::shared_ptr<octomap::OcTree>::element_type* {aka octomap::OcTree*}’ [-fpermissive]
Here's the longer output:
Scanning dependencies of target ball_detector_node [ 94%] Building CXX object ROBOTIS-OP3-Demo/ball_detector/CMakeFiles/ball_detector_node.dir/src/ball_detector.cpp.o In file included from /usr/include/boost/shared_ptr.hpp:17:0, from /usr/include/boost/format/alt_sstream.hpp:21, from /usr/include/boost/format/internals.hpp:23, from /usr/include/boost/format.hpp:38, from /usr/include/boost/math/policies/error_handling.hpp:31, from /usr/include/boost/math/special_functions/round.hpp:14, from /opt/ros/kinetic/include/ros/time.h:58, from /opt/ros/kinetic/include/ros/ros.h:38, from /home/turtlebot/op3_ws/src/humanoid_navigation/humanoid_localization/include/humanoid_localization/MapModel.h:28, from /home/turtlebot/op3_ws/src/humanoid_navigation/humanoid_localization/src/MapModel.cpp:24: /usr/include/boost/smart_ptr/shared_ptr.hpp: In instantiation of ‘boost::shared_ptr<T>::shared_ptr(Y*) [with Y = octomap::AbstractOcTree; T = octomap::OcTree]’: /usr/include/boost/smart_ptr/shared_ptr.hpp:620:9: required from ‘void boost::shared_ptr<T>::reset(Y*) [with Y = octomap::AbstractOcTree; T = octomap::OcTree]’ /home/turtlebot/op3_ws/src/humanoid_navigation/humanoid_localization/src/MapModel.cpp:275:53: required from here /usr/include/boost/smart_ptr/shared_ptr.hpp:347:47: error: invalid conversion from ‘octomap::AbstractOcTree*’ to ‘boost::shared_ptr<octomap::OcTree>::element_type* {aka octomap::OcTree*}’ [-fpermissive] explicit shared_ptr( Y * p ): px( p ), pn() // Y must be complete ^ humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/build.make:62: recipe for target 'humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/src/MapModel.cpp.o' failed make[2]: *** [humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/src/MapModel.cpp.o] Error 1 CMakeFiles/Makefile2:9971: recipe for target 'humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/all' failed make[1]: *** [humanoid_navigation/humanoid_localization/CMakeFiles/mapmodel.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 94%] Building CXX object ROBOTIS-OP3-Demo/ball_detector/CMakeFiles/ball_detector_node.dir/src/ball_detector_node.cpp.o [ 95%] Linking CXX executable /home/turtlebot/op3_ws/devel/lib/ball_detector/ball_detector_node [ 95%] Built target ball_detector_node Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j2 -l2" failed
Can anyone point me to what I could have done wrong?
The text was updated successfully, but these errors were encountered: