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

ros branch build failure #78

Closed
shubhamwagh opened this issue Dec 31, 2021 · 0 comments · Fixed by #79
Closed

ros branch build failure #78

shubhamwagh opened this issue Dec 31, 2021 · 0 comments · Fixed by #79
Assignees
Labels
bug Something isn't working

Comments

@shubhamwagh
Copy link

shubhamwagh commented Dec 31, 2021

I am using Ubuntu 20.04, ROS Noetic. Looks like the ros branch has build issues. I get the following error on catkin_make:

/home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc: In member function ‘void openvslam_ros::system::publish_pointcloud(const ros::Time&)’:
/home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc:77:46: error: cannot convert ‘std::vector<openvslam::data::landmark*>’ to ‘std::vector<std::shared_ptr<openvslam::data::landmark> >&’
   77 |     SLAM_.get_map_publisher()->get_landmarks(landmarks, local_landmarks);
      |                                              ^~~~~~~~~
      |                                              |
      |                                              std::vector<openvslam::data::landmark*>
In file included from /home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc:2:
/usr/local/include/openvslam/publish/map_publisher.h:78:78: note:   initializing argument 1 of ‘unsigned int openvslam::publish::map_publisher::get_landmarks(std::vector<std::shared_ptr<openvslam::data::landmark> >&, std::set<std::shared_ptr<openvslam::data::landmark> >&)’
   78 |     unsigned int get_landmarks(std::vector<std::shared_ptr<data::landmark>>& all_landmarks,
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc: In member function ‘void openvslam_ros::system::publish_keyframes(const ros::Time&)’:
/home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc:102:46: error: cannot convert ‘std::vector<openvslam::data::keyframe*>’ to ‘std::vector<std::shared_ptr<openvslam::data::keyframe> >&’
  102 |     SLAM_.get_map_publisher()->get_keyframes(all_keyfrms);
      |                                              ^~~~~~~~~~~
      |                                              |
      |                                              std::vector<openvslam::data::keyframe*>
In file included from /home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc:2:
/usr/local/include/openvslam/publish/map_publisher.h:70:78: note:   initializing argument 1 of ‘unsigned int openvslam::publish::map_publisher::get_keyframes(std::vector<std::shared_ptr<openvslam::data::keyframe> >&)’
   70 |     unsigned int get_keyframes(std::vector<std::shared_ptr<data::keyframe>>& all_keyfrms);
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc: In member function ‘void openvslam_ros::system::publish_pointcloud(const ros::Time&)’:
/home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc:77:46: error: cannot convert ‘std::vector<openvslam::data::landmark*>’ to ‘std::vector<std::shared_ptr<openvslam::data::landmark> >&’
   77 |     SLAM_.get_map_publisher()->get_landmarks(landmarks, local_landmarks);
      |                                              ^~~~~~~~~
      |                                              |
      |                                              std::vector<openvslam::data::landmark*>
In file included from /home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc:2:
/usr/local/include/openvslam/publish/map_publisher.h:78:78: note:   initializing argument 1 of ‘unsigned int openvslam::publish::map_publisher::get_landmarks(std::vector<std::shared_ptr<openvslam::data::landmark> >&, std::set<std::shared_ptr<openvslam::data::landmark> >&)’
   78 |     unsigned int get_landmarks(std::vector<std::shared_ptr<data::landmark>>& all_landmarks,
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc: In member function ‘void openvslam_ros::system::publish_keyframes(const ros::Time&)’:
/home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc:102:46: error: cannot convert ‘std::vector<openvslam::data::keyframe*>’ to ‘std::vector<std::shared_ptr<openvslam::data::keyframe> >&’
  102 |     SLAM_.get_map_publisher()->get_keyframes(all_keyfrms);
      |                                              ^~~~~~~~~~~
      |                                              |
      |                                              std::vector<openvslam::data::keyframe*>
In file included from /home/shubham/catkin_ws/src/openvslam_ros/src/openvslam_ros.cc:2:
/usr/local/include/openvslam/publish/map_publisher.h:70:78: note:   initializing argument 1 of ‘unsigned int openvslam::publish::map_publisher::get_keyframes(std::vector<std::shared_ptr<openvslam::data::keyframe> >&)’
   70 |     unsigned int get_keyframes(std::vector<std::shared_ptr<data::keyframe>>& all_keyfrms);
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
make[2]: *** [openvslam_ros/src/CMakeFiles/run_localization.dir/build.make:76: openvslam_ros/src/CMakeFiles/run_localization.dir/openvslam_ros.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3985: openvslam_ros/src/CMakeFiles/run_localization.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [openvslam_ros/src/CMakeFiles/run_slam.dir/build.make:76: openvslam_ros/src/CMakeFiles/run_slam.dir/openvslam_ros.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4094: openvslam_ros/src/CMakeFiles/run_slam.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j8 -l8" failed
@ymd-stella ymd-stella linked a pull request Dec 31, 2021 that will close this issue
@ymd-stella ymd-stella self-assigned this Dec 31, 2021
@ymd-stella ymd-stella added the bug Something isn't working label Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants