jhlenes / complete_coverage

ROS implementation of online complete coverage maneuvering for unmanned surface vehicles
MIT License
88 stars 22 forks source link

rosdep install error #12

Closed ryleymcc closed 3 years ago

ryleymcc commented 3 years ago

when i run the command rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y

i get

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
tracking_pid: No definition of [python-setuptools] for OS version [focal]
otter_slam: Cannot locate rosdep definition for [cartographer_rviz]
map_inflating: Cannot locate rosdep definition for [xsens_driver]
nmea_navsat_driver: No definition of [python-serial] for OS version [focal]
sensors: Cannot locate rosdep definition for [xsens_driver]

so im going to try to compile each one from the source for ubuntu 20.04

ryleymcc commented 3 years ago

I can't figure this out. i have otter_slam and tracking_pid. No idea where to find map_inflating and sensors and i won't need navsat. going to try to continue with the install.

ryleymcc commented 3 years ago

after doing a catkin build i get the following.

----------------------------------------------------------
Profile:                     default
Extending:          [cached] /opt/ros/noetic
Workspace:                   /home/ryley/catkin_ws
----------------------------------------------------------
Build Space:        [exists] /home/ryley/catkin_ws/build
Devel Space:        [exists] /home/ryley/catkin_ws/devel
Install Space:      [unused] /home/ryley/catkin_ws/install
Log Space:          [exists] /home/ryley/catkin_ws/logs
Source Space:       [exists] /home/ryley/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 '23' packages in 0.0 seconds.                                                         
[build] Updating package table.                                                                     
Starting  >>> coverage_boustrophedon                                                                
Starting  >>> map_inflating                                                                         
Starting  >>> mobile_robot_simulator                                                                
Starting  >>> nmea_navsat_driver                                                                    
Starting  >>> otter_slam                                                                            
Starting  >>> sensors                                                                               
Starting  >>> turtlebot3_description                                                                
Starting  >>> turtlebot3_msgs                                                                       
Finished  <<< turtlebot3_description                    [ 2.0 seconds ]                             
Starting  >>> turtlebot3_teleop                                                                     
Finished  <<< otter_slam                                [ 2.0 seconds ]                             
Starting  >>> usv_msgs                                                                              
____________________________________________________________________________________________________
Errors     << sensors:cmake /home/ryley/catkin_ws/logs/sensors/build.cmake.000.log                  
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "rplidar_ros" with
  any of the following names:

    rplidar_rosConfig.cmake
    rplidar_ros-config.cmake

  Add the installation prefix of "rplidar_ros" to CMAKE_PREFIX_PATH or set
  "rplidar_ros_DIR" to a directory containing one of the above files.  If
  "rplidar_ros" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:10 (find_package)

cd /home/ryley/catkin_ws/build/sensors; catkin build --get-env sensors | catkin env -si  /usr/bin/cmake /home/ryley/catkin_ws/src/complete_coverage/sensors --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/ryley/catkin_ws/devel/.private/sensors -DCMAKE_INSTALL_PREFIX=/home/ryley/catkin_ws/install; cd -
....................................................................................................
Failed     << sensors:cmake                             [ Exited with code 1 ]                      
Failed    <<< sensors                                   [ 1.9 seconds ]                             
Abandoned <<< turtlebot3_gazebo                         [ Unrelated job failed ]                    
Abandoned <<< coverage_binn                             [ Unrelated job failed ]                    
Abandoned <<< tracking_pid                              [ Unrelated job failed ]                    
Abandoned <<< full_coverage_path_planner                [ Unrelated job failed ]                    
Abandoned <<< turtlebot3                                [ Unrelated job failed ]                    
Abandoned <<< turtlebot3_bringup                        [ Unrelated job failed ]                    
Abandoned <<< turtlebot3_example                        [ Unrelated job failed ]                    
Abandoned <<< turtlebot3_fake                           [ Unrelated job failed ]                    
Abandoned <<< turtlebot3_navigation                     [ Unrelated job failed ]                    
Abandoned <<< turtlebot3_simulations                    [ Unrelated job failed ]                    
Abandoned <<< turtlebot3_slam                           [ Unrelated job failed ]                    
Abandoned <<< guidance                                  [ Unrelated job failed ]                    
Abandoned <<< mr_obs_connector                          [ Unrelated job failed ]                    
____________________________________________________________________________________________________
Errors     << map_inflating:cmake /home/ryley/catkin_ws/logs/map_inflating/build.cmake.000.log      
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "rplidar_ros" with
  any of the following names:

    rplidar_rosConfig.cmake
    rplidar_ros-config.cmake

  Add the installation prefix of "rplidar_ros" to CMAKE_PREFIX_PATH or set
  "rplidar_ros_DIR" to a directory containing one of the above files.  If
  "rplidar_ros" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:10 (find_package)

cd /home/ryley/catkin_ws/build/map_inflating; catkin build --get-env map_inflating | catkin env -si  /usr/bin/cmake /home/ryley/catkin_ws/src/complete_coverage/map_inflating --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/ryley/catkin_ws/devel/.private/map_inflating -DCMAKE_INSTALL_PREFIX=/home/ryley/catkin_ws/install; cd -
....................................................................................................
Failed     << map_inflating:cmake                       [ Exited with code 1 ]                      
Failed    <<< map_inflating                             [ 1.9 seconds ]                             
Finished  <<< nmea_navsat_driver                        [ 2.5 seconds ]                             
Finished  <<< turtlebot3_msgs                           [ 3.5 seconds ]                             
Finished  <<< turtlebot3_teleop                         [ 2.7 seconds ]                             
Finished  <<< usv_msgs                                  [ 4.2 seconds ]                             
Finished  <<< coverage_boustrophedon                    [ 9.9 seconds ]                             
Finished  <<< mobile_robot_simulator                    [ 10.8 seconds ]                            
[build] Summary: 8 of 23 packages succeeded.                                                        
[build]   Ignored:   None.                                                                          
[build]   Warnings:  None.                                                                          
[build]   Abandoned: 13 packages were abandoned.                                                    
[build]   Failed:    2 packages failed.                                                             
[build] Runtime: 11.1 seconds total.                                                                
[build] Note: Workspace packages have changed, please re-source setup files to use them.
ryleymcc commented 3 years ago

This is the final dead end error for me.

`roslaunch guidance sim_guidance.launch ... logging to /home/ryley/.ros/log/07f25f8e-3ae1-11eb-98c9-3788495160ea/roslaunch-ryley-GL65-9SD-96943.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

Resource not found: otter_gazebo ROS path [0]=/opt/ros/noetic/share/ros ROS path [1]=/home/ryley/catkin_ws/src ROS path [2]=/opt/ros/noetic/share The traceback for the exception was written to the log file `

jhlenes commented 3 years ago

Some of the issues you are having seem to be related to the packages not being available for ROS neotic yet. You will have to install them from source like you said (clone the code on github into your ROS workspace and build them yourself). From your error messages you seem to be missing:

python-setuptools
cartographer_rviz
xsens_driver
python-serial
rplidar_ros

The last error you are getting for otter_gazebo is because this repo is depending on jhlenes/usv_simulator for simulation. Install the packages from that repo as well if you are going to simulate. Hopefully things will work when you install that. I have unfortunately never tried to run this on ROS neotic myself, so I don't know if you will run into any other issues.

ryleymcc commented 3 years ago

Thanks for the quick reply. I'll try again this weekend.

jhlenes commented 3 years ago

Updated for Noetic. The readme has updated installation instructions.