ros-industrial / industrial_training

ROS-Industrial Training Material
https://industrial-training-master.readthedocs.io
Apache License 2.0
417 stars 234 forks source link

[Demo 1.5] build error ROS melodic #301

Open powerplayer9 opened 4 years ago

powerplayer9 commented 4 years ago

ROS Melodic Ubuntu 18.04.3 LTS On Virtual Machine

Followed steps from Demo 1 from ros industrial training. Built universal_robot from source for ur_msgs package & modified 'ur5.urdf.xacro' as per #279 for 'hw_interface' parameter issue. Changed 'src/ur5_collision_avoidance_moveit_config/launch/planning_context.launch' value for default to 'true'

When following the steps, at Demo 1.5 for command : catkin build --cmake-args -G 'CodeBlocks - Unix Makefiles' --pkg collision_avoidance_pick_and_place

Got the following:


...
Errors     << robot_config:cmake /home/pp9/pick_place/logs/robot_config/build.cmake.022.log
CMake Error: The source directory "/home/pp9/pick_place/build/robot_config/collision_avoidance_pick_and_place" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
cd /home/pp9/pick_place/build/robot_config; catkin build --get-env robot_config | catkin env -si  /usr/bin/cmake /home/pp9/pick_place/src/robot_config --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/pp9/pick_place/devel/.private/robot_config -DCMAKE_INSTALL_PREFIX=/home/pp9/pick_place/install -G 'CodeBlocks - Unix Makefiles' --pkg collision_avoidance_pick_and_place; cd -
...
Errors     << object_manipulation_msgs:cmake /home/pp9/pick_place/logs/object_manipulation_msgs/build.cmake.023.log
CMake Error: The source directory "/home/pp9/pick_place/build/object_manipulation_msgs/collision_avoidance_pick_and_place" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
cd /home/pp9/pick_place/build/object_manipulation_msgs; catkin build --get-env object_manipulation_msgs | catkin env -si  /usr/bin/cmake /home/pp9/pick_place/src/object_manipulation_msgs --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/pp9/pick_place/devel/.private/object_manipulation_msgs -DCMAKE_INSTALL_PREFIX=/home/pp9/pick_place/install -G 'CodeBlocks - Unix Makefiles' --pkg collision_avoidance_pick_and_place; cd -
...............................................................................
Failed     << object_manipulation_msgs:cmake                       [ Exited with code 1 ]
Failed    <<< object_manipulation_msgs                             [ 0.2 seconds ]

Errors     << sensor_config:cmake /home/pp9/pick_place/logs/sensor_config/build.cmake.022.log
CMake Error: The source directory "/home/pp9/pick_place/build/sensor_config/collision_avoidance_pick_and_place" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
cd /home/pp9/pick_place/build/sensor_config; catkin build --get-env sensor_config | catkin env -si  /usr/bin/cmake /home/pp9/pick_place/src/sensor_config --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/pp9/pick_place/devel/.private/sensor_config -DCMAKE_INSTALL_PREFIX=/home/pp9/pick_place/install -G 'CodeBlocks - Unix Makefiles' --pkg collision_avoidance_pick_and_place; cd -
...............................................................................
Failed     << sensor_config:cmake                                  [ Exited with code 1 ]
Failed    <<< sensor_config                                        [ 0.2 seconds ]
[build] Summary: 0 of 20 packages succeeded.                                   
[build]   Ignored:   2 packages were skipped or are blacklisted.               
[build]   Warnings:  None.                                                     
[build]   Abandoned: 17 packages were abandoned.                               
[build]   Failed:    3 packages failed.                                        
[build] Runtime: 0.8 seconds total.
marip8 commented 4 years ago

Sorry for the delay in addressing this issue, but I have a few suggestions:

  1. Try building the workspace without the additional catkin build arguments (i.e. just run catkin build). I don't really think those extra arguments are necessary and we might consider amending the instructions to remove them.
  2. Try comparing your workspace to the solution workspace. The solution workspace builds in CI for Melodic, so that may provide you some insight to this error

Let me know if you continue to run into this issue, and I can take a deeper look