Giter VIP home page Giter VIP logo

Comments (4)

rikba avatar rikba commented on July 30, 2024

Hi @sz73

I just tried installing the package on a clean Ubuntu 18.04 and could not reproduce this error. Can you try the following:

  1. Install yaml-cpp
    sudo apt install libyaml-cpp-dev -y
  2. Make sure to source your workspace before launch the planner.
    source ~/catkin_ws/devel/setup.bash

from polygon_coverage_planning.

sz73 avatar sz73 commented on July 30, 2024

Hi @rikba
thank you so much for your help!
sudo apt install libyaml-cpp-dev -y upgrageded nothing for me. Anyway, after more reinstalling there are now less errors, while one from earlier remains.

(base) simon@simon-ThinkPad-T480:~/catkin_ws/src$ catkin build
----------------------------------------------------------
Profile:                     default
Extending:        [explicit] /opt/ros/melodic
Workspace:                   /home/simon/catkin_ws
----------------------------------------------------------
Build Space:        [exists] /home/simon/catkin_ws/build
Devel Space:        [exists] /home/simon/catkin_ws/devel
Install Space:      [unused] /home/simon/catkin_ws/install
Log Space:          [exists] /home/simon/catkin_ws/logs
Source Space:       [exists] /home/simon/catkin_ws/src
DESTDIR:            [unused] None
----------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
----------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
----------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
----------------------------------------------------------
Workspace configuration appears valid.
----------------------------------------------------------
[build] Found '12' packages in 0.0 seconds.                                                                                                
[build] Package table is up to date.                                                                                                       
Starting  >>> catkin_simple                                                                                                                
Starting  >>> mav_msgs                                                                                                                     
Finished  <<< catkin_simple                                     [ 0.2 seconds ]                                                            
Starting  >>> cgal_catkin                                                                                                                  
Starting  >>> mav_2d_coverage_planning_benchmark                                                                                           
Starting  >>> polygon_coverage_solvers                                                                                                     
Finished  <<< mav_msgs                                          [ 0.4 seconds ]                                                            
Starting  >>> mav_planning_msgs                                                                                                            
Finished  <<< cgal_catkin                                       [ 1.0 seconds ]                                                            
Finished  <<< mav_2d_coverage_planning_benchmark                [ 0.1 seconds ]                                                            
Finished  <<< polygon_coverage_solvers                          [ 0.2 seconds ]                                                            
Starting  >>> polygon_coverage_geometry                                                                                                    
Finished  <<< mav_planning_msgs                                 [ 0.5 seconds ]                                                            
Finished  <<< polygon_coverage_geometry                         [ 0.2 seconds ]                                                            
Starting  >>> polygon_coverage_msgs                                                                                                        
Starting  >>> polygon_coverage_planners                                                                                                    
Finished  <<< polygon_coverage_msgs                             [ 0.3 seconds ]                                                            
Starting  >>> rviz_polygon_tool                                                                                                            
Finished  <<< polygon_coverage_planners                         [ 0.2 seconds ]                                                            
Starting  >>> polygon_coverage_ros                                                                                                         
Finished  <<< rviz_polygon_tool                                 [ 0.5 seconds ]                                                            
___________________________________________________________________________________________________________________________________________
Errors     << polygon_coverage_ros:cmake /home/simon/catkin_ws/logs/polygon_coverage_ros/build.cmake.002.log                               
CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
  CMakeLists.txt:26 (pkg_check_modules)


cd /home/simon/catkin_ws/build/polygon_coverage_ros; catkin build --get-env polygon_coverage_ros | catkin env -si  /usr/bin/cmake /home/simon/catkin_ws/src/polygon_coverage_planning/polygon_coverage_ros --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/simon/catkin_ws/devel/.private/polygon_coverage_ros -DCMAKE_INSTALL_PREFIX=/home/simon/catkin_ws/install; cd -
...........................................................................................................................................
Failed     << polygon_coverage_ros:cmake                        [ Exited with code 1 ]                                                     
Failed    <<< polygon_coverage_ros                              [ 1.1 seconds ]                                                            
[build] Summary: 10 of 11 packages succeeded.                                                                                              
[build]   Ignored:   1 packages were skipped or are blacklisted.                                                                           
[build]   Warnings:  None.                                                                                                                 
[build]   Abandoned: None.                                                                                                                 
[build]   Failed:    1 packages failed.                                                                                                    
[build] Runtime: 2.9 seconds total. 

Launching the node still gives this error
ERROR: cannot launch node of type [polygon_coverage_ros/coverage_planner]: can't locate node [coverage_planner] in package [polygon_coverage_ros]
I will try it also on a fresh install of ubuntu.
Do you have a general idea of what I might be making wrong?

Thanks for your time! I appreciate :)

- Simon

from polygon_coverage_planning.

rikba avatar rikba commented on July 30, 2024

It seems like your installation is missing a package. Namely the CMakeLists is failing at line 26:

pkg_check_modules(YamlCpp REQUIRED yaml-cpp>=0.5)

Can you double check your libyaml installation?

user@host:~$ dpkg -l | grep libyaml-cpp
ii  libyaml-cpp-dev                                             0.5.2-4ubuntu1                                              amd64        YAML parser and emitter for C++ - development files
ii  libyaml-cpp0.5v5:amd64                                      0.5.2-4ubuntu1                                              amd64        YAML parser and emitter for C++

from polygon_coverage_planning.

rikba avatar rikba commented on July 30, 2024

I further reduced the number of dependencies and fixed issues with mono in #19 . I hope this issues is resolved.

from polygon_coverage_planning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.