SBPL-Cruz / perception

PERCH 2.0 : Fast and Accurate GPU-based Perception via Search for Object Pose Estimation
https://sbpl-cruz.github.io/perception/
BSD 3-Clause "New" or "Revised" License
16 stars 5 forks source link

Failed building object_recognition_node #132

Open mohammad-h-b opened 3 years ago

mohammad-h-b commented 3 years ago

Hi, When running catkin build object_recognition_node I get the following error message:

[build] Found '30' packages in 0.0 seconds.                                    
[build] Given package 'object_recognition_node' is not in the workspace
aditya2592 commented 3 years ago

Hi, did you mount folders containing the repo to the Docker when starting it? Its described in the wiki here.

mohammad-h-b commented 3 years ago

Yes, exactly I followed the instructions.

aditya2592 commented 3 years ago

Can you try doing catkin build and paste the output here?

mohammad-h-b commented 3 years ago

Sure. Shoud I run catkin build here?

22

aditya2592 commented 3 years ago

You should do cd ros_python3_ws to go to the workspace and then do catkin build or catkin build object_recognition_node

mohammad-h-b commented 3 years ago

Here is the output:

root@mohammad:/ros_python3_ws# catkin build
--------------------------------------------------------------------------------
Profile:                     default
Extending:                   None
Workspace:                   /ros_python3_ws
--------------------------------------------------------------------------------
Build Space:        [exists] /ros_python3_ws/build
Devel Space:        [exists] /ros_python3_ws/devel
Install Space:      [unused] /ros_python3_ws/install
Log Space:         [missing] /ros_python3_ws/logs
Source Space:       [exists] /ros_python3_ws/src
DESTDIR:            [unused] None
--------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------------------------------
Additional CMake Args:       -DPYTHON_EXECUTABLE=/miniconda/envs/py36/bin/python -DPYTHON_INCLUDE_DIR=/miniconda/envs/py36/include -DPYTHON_LIBRARY=/miniconda/envs/py36/lib/libpython3.6m.so
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
--------------------------------------------------------------------------------
NOTE: Forcing CMake to run for each package.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
WARNING: Your workspace is not extending any other result space, but it is set
to use a `linked` devel space layout. This requires the `catkin` CMake package
in your source space in order to be built.
--------------------------------------------------------------------------------

[build] Found '30' packages in 0.0 seconds.                                    
[build] Updating package table.                                                
Starting  >>> catkin_tools_prebuild                                            
_______________________________________________________________________________
Errors     << catkin_tools_prebuild:cmake /ros_python3_ws/logs/catkin_tools_prebuild/build.cmake.000.log
CMake Error at /ros_python3_ws/build/catkin_tools_prebuild/CMakeLists.txt:12 (message):
  The catkin CMake module was not found, but it is required to build a linked
  workspace.  To resolve this, please do one of the following, and try
  building again.

   1. Source the setup.sh file from an existing catkin workspace:
      source SETUP_FILE

   2. Extend another catkin workspace's result (install or devel) space:
      catkin config --extend RESULT_SPACE

   3. Set `catkin_DIR` to the directory containing `catkin-config.cmake`:
      catkin config --cmake-args -Dcatkin_DIR=CATKIN_CMAKE_CONFIG_PATH

   4. Add the catkin source package to your workspace's source space:
      cd SOURCE_SPACE && git clone https://github.com/ros/catkin.git

cd /ros_python3_ws/build/catkin_tools_prebuild; catkin build --get-env catkin_tools_prebuild | catkin env -si  /usr/local/bin/cmake /ros_python3_ws/build/catkin_tools_prebuild --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/ros_python3_ws/devel/.private/catkin_tools_prebuild -DCMAKE_INSTALL_PREFIX=/ros_python3_ws/install -DPYTHON_EXECUTABLE=/miniconda/envs/py36/bin/python -DPYTHON_INCLUDE_DIR=/miniconda/envs/py36/include -DPYTHON_LIBRARY=/miniconda/envs/py36/lib/libpython3.6m.so; cd -
...............................................................................
Failed     << catkin_tools_prebuild:cmake          [ Exited with code 1 ]      
Failed    <<< catkin_tools_prebuild                [ 0.3 seconds ]             
Abandoned <<< actionlib_msgs                       [ Unrelated job failed ]    
Abandoned <<< actionlib                            [ Unrelated job failed ]    
Abandoned <<< diagnostic_msgs                      [ Unrelated job failed ]    
Abandoned <<< geometry_msgs                        [ Unrelated job failed ]    
Abandoned <<< nav_msgs                             [ Unrelated job failed ]    
Abandoned <<< opencv_tests                         [ Unrelated job failed ]    
Abandoned <<< sbpl_perch                           [ Unrelated job failed ]    
Abandoned <<< sbpl_utils                           [ Unrelated job failed ]    
Abandoned <<< sensor_msgs                          [ Unrelated job failed ]    
Abandoned <<< cv_bridge                            [ Unrelated job failed ]    
Abandoned <<< image_geometry                       [ Unrelated job failed ]    
Abandoned <<< shape_msgs                           [ Unrelated job failed ]    
Abandoned <<< stereo_msgs                          [ Unrelated job failed ]    
Abandoned <<< tf2_msgs                             [ Unrelated job failed ]    
Abandoned <<< tf2                                  [ Unrelated job failed ]    
Abandoned <<< tf2_bullet                           [ Unrelated job failed ]    
Abandoned <<< tf2_eigen                            [ Unrelated job failed ]    
Abandoned <<< tf2_py                               [ Unrelated job failed ]    
Abandoned <<< tf2_ros                              [ Unrelated job failed ]    
Abandoned <<< tf2_geometry_msgs                    [ Unrelated job failed ]    
Abandoned <<< tf2_kdl                              [ Unrelated job failed ]    
Abandoned <<< test_tf2                             [ Unrelated job failed ]    
Abandoned <<< tf2_sensor_msgs                      [ Unrelated job failed ]    
Abandoned <<< tf2_tools                            [ Unrelated job failed ]    
Abandoned <<< trajectory_msgs                      [ Unrelated job failed ]    
Abandoned <<< visualization_msgs                   [ Unrelated job failed ]    
[build] Summary: 0 of 27 packages succeeded.                                   
[build]   Ignored:   4 packages were skipped or are blacklisted.               
[build]   Warnings:  None.                                                     
[build]   Abandoned: 26 packages were abandoned.                               
[build]   Failed:    1 packages failed.                                        
[build] Runtime: 0.4 seconds total.  
aditya2592 commented 3 years ago

Can you try doing :

source /opt/ros/kinetic/setup.bash
catkin init
catkin build object_recognition_node
mohammad-h-b commented 3 years ago

Here is the output:

root@mohammad:/ros_python3_ws# source /opt/ros/kinetic/setup.bash
root@mohammad:/ros_python3_ws# catkin init
Catkin workspace `/ros_python3_ws` is already initialized. No action taken.
--------------------------------------------------------------------------------
Profile:                     default
Extending:             [env] /opt/ros/kinetic
Workspace:                   /ros_python3_ws
--------------------------------------------------------------------------------
Build Space:       [missing] /ros_python3_ws/build
Devel Space:       [missing] /ros_python3_ws/devel
Install Space:      [unused] /ros_python3_ws/install
Log Space:         [missing] /ros_python3_ws/logs
Source Space:       [exists] /ros_python3_ws/src
DESTDIR:            [unused] None
--------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------------------------------
Additional CMake Args:       -DPYTHON_EXECUTABLE=/miniconda/envs/py36/bin/python -DPYTHON_INCLUDE_DIR=/miniconda/envs/py36/include -DPYTHON_LIBRARY=/miniconda/envs/py36/lib/libpython3.6m.so
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.
--------------------------------------------------------------------------------
root@mohammad:/ros_python3_ws# catkin build object_recognition_node
--------------------------------------------------------------------------------
Profile:                     default
Extending:             [env] /opt/ros/kinetic
Workspace:                   /ros_python3_ws
--------------------------------------------------------------------------------
Build Space:        [exists] /ros_python3_ws/build
Devel Space:        [exists] /ros_python3_ws/devel
Install Space:      [unused] /ros_python3_ws/install
Log Space:         [missing] /ros_python3_ws/logs
Source Space:       [exists] /ros_python3_ws/src
DESTDIR:            [unused] None
--------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------------------------------
Additional CMake Args:       -DPYTHON_EXECUTABLE=/miniconda/envs/py36/bin/python -DPYTHON_INCLUDE_DIR=/miniconda/envs/py36/include -DPYTHON_LIBRARY=/miniconda/envs/py36/lib/libpython3.6m.so
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.

NOTE: Forcing CMake to run for each package.
--------------------------------------------------------------------------------
[build] Found '30' packages in 0.0 seconds.                                    
[build] Given package 'object_recognition_node' is not in the workspace
mohammad-h-b commented 3 years ago

And here is the output of catkin build:

root@mohammad:/ros_python3_ws# catkin build
--------------------------------------------------------------------------------
Profile:                     default
Extending:          [cached] /opt/ros/kinetic
Workspace:                   /ros_python3_ws
--------------------------------------------------------------------------------
Build Space:        [exists] /ros_python3_ws/build
Devel Space:        [exists] /ros_python3_ws/devel
Install Space:      [unused] /ros_python3_ws/install
Log Space:          [exists] /ros_python3_ws/logs
Source Space:       [exists] /ros_python3_ws/src
DESTDIR:            [unused] None
--------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------------------------------
Additional CMake Args:       -DPYTHON_EXECUTABLE=/miniconda/envs/py36/bin/python -DPYTHON_INCLUDE_DIR=/miniconda/envs/py36/include -DPYTHON_LIBRARY=/miniconda/envs/py36/lib/libpython3.6m.so
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 '30' packages in 0.0 seconds.                                    
[build] Package table is up to date.                                           
Starting  >>> actionlib_msgs                                                   
Starting  >>> diagnostic_msgs                                                  
Starting  >>> geometry_msgs                                                    
Starting  >>> sbpl_perch                                                       
Finished  <<< sbpl_perch                        [ 0.1 seconds ]                
Starting  >>> sbpl_utils                                                       
Finished  <<< actionlib_msgs                    [ 0.1 seconds ]                
Starting  >>> actionlib                                                        
Finished  <<< geometry_msgs                     [ 0.3 seconds ]                
Starting  >>> nav_msgs                                                         
Starting  >>> sensor_msgs                                                      
Starting  >>> shape_msgs                                                       
Starting  >>> tf2_msgs                                                         
Starting  >>> trajectory_msgs                                                  
Starting  >>> visualization_msgs                                               
Finished  <<< diagnostic_msgs                   [ 0.2 seconds ]                
Finished  <<< sbpl_utils                        [ 0.1 seconds ]                
Finished  <<< actionlib                         [ 0.4 seconds ]                
Finished  <<< sensor_msgs                       [ 0.5 seconds ]                
Starting  >>> cv_bridge                                                        
Starting  >>> image_geometry                                                   
Starting  >>> stereo_msgs                                                      
Finished  <<< nav_msgs                          [ 0.4 seconds ]                
Finished  <<< tf2_msgs                          [ 0.3 seconds ]                
Starting  >>> tf2                                                              
Finished  <<< trajectory_msgs                   [ 0.2 seconds ]                
Finished  <<< shape_msgs                        [ 0.2 seconds ]                
Finished  <<< visualization_msgs                [ 0.2 seconds ]                
Finished  <<< cv_bridge                         [ 0.1 seconds ]                
Starting  >>> opencv_tests                                                     
Finished  <<< stereo_msgs                       [ 0.1 seconds ]                
Finished  <<< image_geometry                    [ 0.1 seconds ]                
Finished  <<< tf2                               [ 0.1 seconds ]                
Starting  >>> tf2_bullet                                                       
Starting  >>> tf2_eigen                                                        
Starting  >>> tf2_py                                                           
Finished  <<< opencv_tests                      [ 0.1 seconds ]                
Finished  <<< tf2_eigen                         [ 0.1 seconds ]                
Finished  <<< tf2_bullet                        [ 0.1 seconds ]                
Finished  <<< tf2_py                            [ 0.1 seconds ]                
Starting  >>> tf2_ros                                                          
Finished  <<< tf2_ros                           [ 0.1 seconds ]                
Starting  >>> tf2_geometry_msgs                                                
Starting  >>> tf2_kdl                                                          
Starting  >>> tf2_sensor_msgs                                                  
Starting  >>> tf2_tools                                                        
Finished  <<< tf2_tools                         [ 0.1 seconds ]                
Finished  <<< tf2_kdl                           [ 0.1 seconds ]                
Finished  <<< tf2_sensor_msgs                   [ 0.1 seconds ]                
Finished  <<< tf2_geometry_msgs                 [ 0.1 seconds ]                
Starting  >>> test_tf2                                                         
Finished  <<< test_tf2                          [ 0.1 seconds ]                
[build] Summary: All 26 packages succeeded!                                    
[build]   Ignored:   4 packages were skipped or are blacklisted.               
[build]   Warnings:  None.                                                     
[build]   Abandoned: None.                                                     
[build]   Failed:    None.                                                     
[build] Runtime: 2.1 seconds total.       
saikishor commented 3 years ago

@mohammad-h-b It builds now right?

mohammad-h-b commented 3 years ago

@saikishor No, the problem still persists with catkin build object_recognition_node.

saikishor commented 3 years ago

I just checked the package CMakeList and package.XML. it seems to be good. I will try to test it tomorrow or this week and get back to you

mohammad-h-b commented 3 years ago

Thanks. I'm looking forward to hearing from you.

On Tue, Feb 16, 2021 at 4:35 PM Sai Kishor Kothakota < notifications@github.com> wrote:

I just checked the package CMakeList and package.XML. it seems to be good. I will try to test it tomorrow it this week and get back to you

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SBPL-Cruz/perception/issues/132#issuecomment-780132236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKIZOYWMU5VYIRSDYCTRHSDS7LQKJANCNFSM4XPQ3PDA .

saikishor commented 3 years ago

@mohammad-h-b For me it is working. I am using the docker provided in the wiki.

catkin build object_recognition_node
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Profile:                     default
Extending:          [cached] /opt/ros/kinetic
Workspace:                   /ros_python3_ws
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Build Space:        [exists] /ros_python3_ws/build
Devel Space:        [exists] /ros_python3_ws/devel
Install Space:      [unused] /ros_python3_ws/install
Log Space:          [exists] /ros_python3_ws/logs
Source Space:       [exists] /ros_python3_ws/src
DESTDIR:            [unused] None
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Additional CMake Args:       -DPYTHON_EXECUTABLE=/miniconda/envs/py36/bin/python -DPYTHON_INCLUDE_DIR=/miniconda/envs/py36/include -DPYTHON_LIBRARY=/miniconda/envs/py36/lib/libpython3.6m.so
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 '37' packages in 0.0 seconds.                                                                                                                                                               
[build] Package table is up to date.                                                                                                                                                                      
Starting  >>> actionlib_msgs                                                                                                                                                                              
Starting  >>> fast_gicp                                                                                                                                                                                   
Starting  >>> geometry_msgs                                                                                                                                                                               
Starting  >>> sbpl_perch                                                                                                                                                                                  
Finished  <<< fast_gicp                              [ 0.1 seconds ]                                                                                                                                      
Finished  <<< sbpl_perch                             [ 0.1 seconds ]                                                                                                                                      
Starting  >>> sbpl_utils                                                                                                                                                                                  
Finished  <<< actionlib_msgs                         [ 0.1 seconds ]                                                                                                                                      
Starting  >>> actionlib                                                                                                                                                                                   
Finished  <<< sbpl_utils                             [ 0.2 seconds ]                                                                                                                                      
Finished  <<< geometry_msgs                          [ 0.3 seconds ]                                                                                                                                      
Starting  >>> sensor_msgs                                                                                                                                                                                 
Starting  >>> visualization_msgs                                                                                                                                                                          
Finished  <<< actionlib                              [ 0.3 seconds ]                                                                                                                                      
Finished  <<< visualization_msgs                     [ 0.2 seconds ]                                                                                                                                      
Finished  <<< sensor_msgs                            [ 0.3 seconds ]                                                                                                                                      
Starting  >>> cv_bridge                                                                                                                                                                                   
Finished  <<< cv_bridge                              [ 0.1 seconds ]                                                                                                                                      
Starting  >>> cuda_renderer                                                                                                                                                                               
Starting  >>> kinect_sim                                                                                                                                                                                  
Starting  >>> perception_utils                                                                                                                                                                            
Finished  <<< perception_utils                       [ 0.1 seconds ]                                                                                                                                      
Finished  <<< cuda_renderer                          [ 0.1 seconds ]                                                                                                                                      
Finished  <<< kinect_sim                             [ 0.1 seconds ]                                                                                                                                      
Starting  >>> sbpl_perception                                                                                                                                                                             
Finished  <<< sbpl_perception                        [ 0.2 seconds ]                                                                                                                                      
Starting  >>> object_recognition_node                                                                                                                                                                     
Finished  <<< object_recognition_node                [ 0.2 seconds ]                                                                                                                                      
[build] Summary: All 14 packages succeeded!                                                                                                                                                               
[build]   Ignored:   23 packages were skipped or are blacklisted.                                                                                                                                         
[build]   Warnings:  None.                                                                                                                                                                                
[build]   Abandoned: None.                                                                                                                                                                                
[build]   Failed:    None.     

I could do roscd object_recognition_node post sourcing the workspace.

saikishor commented 3 years ago

@aditya2592 do you have any docker for the new version of Ubuntu, CUDA, and ROS Noetic?. Because my host system is Ubuntu 20.04, and I am worried about it's functionality. if you don't have one, I will try to build one on my own.

mohammad-h-b commented 3 years ago

@saikishor Thanks! My host system is Ubuntu 18.04 with ROS melodic; however, I'm using the docker image provided in the wiki as well.

saikishor commented 3 years ago

Hello!! Could you try resetting up your docker?. Because in my case, I have 37 packages instead of 30. Try to redo the steps in a different of path and see

aditya2592 commented 3 years ago

@saikishor I dont have an updated docker with newer versions at the moment. Ideally if the version of Nvidia drivers is compatible with CUDA 10.2 (which is used inside the docker) then it should be fine. I have tested this docker image on Ubuntu 18.04 and still works.

saikishor commented 3 years ago

@saikishor I dont have an updated docker with newer versions at the moment. Ideally if the version of Nvidia drivers is compatible with CUDA 10.2 (which is used inside the docker) then it should be fine. I have tested this docker image on Ubuntu 18.04 and still works.

Ok. That's good to know. Thanks. May be I'm missing CUDA libraries. I'll take a look into it. Thanks

aditya2592 commented 3 years ago

@saikishor What error are you seeing on trying to build? Can you do nvidia-smi from inside the docker and check the output?

aditya2592 commented 3 years ago

@saikishor I was planning to work on the code to make it easier to run on your own dataset. Maybe introduce an ROS service based interface in python that runs segmentation (optional) and then pose estimation. Let me know if you would want to collaborate on it. We can upgrade to Noetic and ubuntu 20.04 as part of this as well.

saikishor commented 3 years ago

@saikishor I was planning to work on the code to make it easier to run on your own dataset. Maybe introduce an ROS service based interface in python that runs segmentation (optional) and then pose estimation. Let me know if you would want to collaborate on it. We can upgrade to Noetic and ubuntu 20.04 as part of this as well.

Hello @aditya2592 sorry for delayed reply. I think it's a great idea. I have other commitments till end of July. I can't have any other commitments in this time, due to the time dedication I have on those.