ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Trying to build explore_lite in ROS melodic

asked 2023-01-20 00:18:44 -0500

distro gravatar image

updated 2023-01-20 00:19:05 -0500

I'm trying to build the ROS melodic branch of explore_lite. I get this error:

  Errors     << multirobot_map_merge:make /home/philip/catkin_ws/logs/multirobot_map_merge/build.make.000.log
    In file included from /home/philip/catkin_ws/src/m-explore/map_merge/src/combine_grids/merging_pipeline.cpp:46:0:
    /home/philip/catkin_ws/src/m-explore/map_merge/src/combine_grids/estimation_internal.h: In function ‘cv::Ptr<cv::Feature2D> combine_grids::internal::chooseFeatureFinder(combine_grids::FeatureType)’:
    /home/philip/catkin_ws/src/m-explore/map_merge/src/combine_grids/estimation_internal.h:68:14: error: ‘xfeatures2d’ has not been declared
           return xfeatures2d::SURF::create();

What dependency am I missing?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2023-01-20 04:45:39 -0500

aarsh_t gravatar image

updated 2023-01-20 14:41:53 -0500

It seem like the problem with the OpenCV. In this line try to change return xfeatures2d::SURF::create(); to return cv::xfeatures2d::SURF::create(); as the code is not defining using namespace cv;

edit flag offensive delete link more

Comments

@aarsh_t I already have openCV and need it for other projecs I'm working on. I don't want to break those other projects by doing this. Is there a way to make a seperate environment to built an openCV that will only affect this one explore_lite package?

distro gravatar image distro  ( 2023-01-20 10:23:11 -0500 )edit

Sorry I did not read the other answer carefully. I will updated the answer in 2 mins.

aarsh_t gravatar image aarsh_t  ( 2023-01-20 14:40:12 -0500 )edit

@aarsh_t Thanks it worked! I'm now trying to use the explore.launch file. Would you know how to connect to move_base server?: Waiting to connect to move_base server

distro gravatar image distro  ( 2023-01-20 16:04:33 -0500 )edit

Sorry I haven't used the package so I have no idea of how to play with it. May be you can ask to the developer or create a new question.

aarsh_t gravatar image aarsh_t  ( 2023-01-21 03:11:48 -0500 )edit

@aarsh thank you

distro gravatar image distro  ( 2023-01-21 12:07:47 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2023-01-20 00:18:44 -0500

Seen: 68 times

Last updated: Jan 20 '23