Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Invalid Conversion when catkin_make #27

Closed
arixrobotics opened this issue Mar 11, 2018 · 1 comment
Closed

Error Invalid Conversion when catkin_make #27

arixrobotics opened this issue Mar 11, 2018 · 1 comment

Comments

@arixrobotics
Copy link

arixrobotics commented Mar 11, 2018

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?

@arixrobotics arixrobotics changed the title Error Error Invalid Conversion when catkin_make Mar 11, 2018
@arixrobotics
Copy link
Author

I think it was just because I did not update my ubuntu. It's working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant