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

Compilation failed ElevationMapGroundPlaneRemover #7

Open
jelavice opened this issue Dec 5, 2022 · 3 comments
Open

Compilation failed ElevationMapGroundPlaneRemover #7

jelavice opened this issue Dec 5, 2022 · 3 comments

Comments

@jelavice
Copy link
Collaborator

jelavice commented Dec 5, 2022

Despite installing the grid map from the source, compilation can still fail. E.g. with an error below:
/home/nubertj/workspaces/rsl_workspaces/gravis/panoptic_ws/src/tree_detection/ground_plane_removal/src/ElevationMapGroundPlaneRemover.cpp: In member function ‘virtual void ground_removal::ElevationMapGroundPlaneRemover::setParameters(const ground_removal::GroundPlaneRemoverParam&)’: /home/nubertj/workspaces/rsl_workspaces/gravis/panoptic_ws/src/tree_detection/ground_plane_removal/src/ElevationMapGroundPlaneRemover.cpp:107:16: error: ‘class grid_map::GridMapPclLoader’ has no member named ‘setParameters’; did you mean ‘getParameters’? 107 | pclToGridMap_.setParameters(param_.pclConverter_.get()); | ^~~~~~~~~~~~~

@jelavice
Copy link
Collaborator Author

jelavice commented Dec 5, 2022

Most likely cause is that you're still pulling in the system install of the grid_map_pcl

  1. In this case, clean your entire workspace ( catkin clean).
  2. Rebuild the grid_map_pcl, catkin build grid_map_pcl
  3. source your workspace
  4. build the tree detection

@darissa
Copy link

darissa commented Mar 9, 2023

I faced the same problem as @jelavice with the steps below:

  1. catkin_make (for grid_map)
  2. catkin_make (for tree_detection_ros)

If I changed to catkin build grid_map_pcl, it throws error :

/home/ubuntu18/catkin_treedet/devel/.private/grid_map_ros/lib/libgrid_map_ros.so: undefined reference to `cv::Mat::Mat()'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/ubuntu18/catkin_treedet/devel/.private/grid_map_pcl/lib/grid_map_pcl/grid_map_pcl_loader_node] Error 1
make[1]: *** [CMakeFiles/grid_map_pcl_loader_node.dir/all] Error 2
make: *** [all] Error 2

Btw, I am using Melodic.

Thanks

@darissa
Copy link

darissa commented Mar 14, 2023

Already solved. It is due to opencv version.

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

2 participants