ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Cmake Error while building moveit_tutorials package in catkin ws

asked 2022-06-15 04:36:43 -0600

Aman_jdl gravatar image

updated 2022-06-19 07:48:31 -0600

Mike Scheutzow gravatar image

I clone the package moveit_tutorials from github and now trying to build the catkin workspace using command catkin build. I'm using ROS Melodic But getting following error:

adminspin@adminspin:~/catkin_ws$ catkin build
---------------------------------------------------------------
Profile:                     default

Extending:          [cached] /opt/ros/melodic
Workspace:                   /home/adminspin*/catkin_ws
---------------------------------------------------------------
Build Space:        [exists] /home/adminspin*/catkin_ws/build

Devel Space:        [exists] /home/adminspin*/catkin_ws/devel

Install Space:      [unused] /home/adminspin*/catkin_ws/install

Log Space:          [exists] /home/adminspin*/catkin_ws/logs

Source Space:       [exists] /home/adminspin*/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
---------------------------------------------------------------
Buildlisted Packages:        None

Skiplisted Packages:         None
---------------------------------------------------------------
Workspace configuration appears valid.
---------------------------------------------------------------
[build] Found 3 packages in 0.0 seconds.                                       

[build] Updating package table.                                                

Starting  >>> beginner_tutorials                                               

Starting  >>> panda_moveit_config                                              

Finished  <<< panda_moveit_config                [ 0.1 seconds ]               

Starting  >>> moveit_tutorials                                                 

Finished  <<< beginner_tutorials                 [ 0.1 seconds ]               
_______________________________________________________________________________
Errors     << moveit_tutorials:cmake /home/adminspin*/catkin_ws/logs/moveit_tutorials/build.cmake.000.log
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "rviz_visual_tools"
  with any of the following names:

    rviz_visual_toolsConfig.cmake
    rviz_visual_tools-config.cmake

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


cd /home/adminspin*/catkin_ws/build/moveit_tutorials; catkin build --get-env moveit_tutorials | catkin env -si  /usr/bin/cmake '/home/adminspin*/catkin_ws/src/moveit_tutorials' --no-warn-unused-cli '-DCATKIN_DEVEL_PREFIX=/home/adminspin*/catkin_ws/devel/.private/moveit_tutorials' '-DCMAKE_INSTALL_PREFIX=/home/adminspin*/catkin_ws/install'; cd -

...............................................................................
Failed     << moveit_tutorials:cmake             [ Exited with code 1 ]        
Failed    <<< moveit_tutorials                   [ 2.3 seconds ]               
[build] Summary: 2 of 3 packages succeeded.                                    
[build]   Ignored:   None.                                                     
[build]   Warnings:  None.                                                     
[build]   Abandoned: None.                                                     
[build]   Failed:    1 packages failed.                                        
[build] Runtime: 2.5 seconds total.                                            
[build] Note: Workspace packages have changed, please re-source setup files to use them.
edit retag flag offensive close merge delete

Comments

In the future, please use the 101010 button to format your terminal output. It makes it much easier to read.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-06-19 07:51:23 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-17 19:53:54 -0600

qilin_gundamenjoyer gravatar image

Try sudo apt-get install ros-melodic-rviz-visual-tools. And then check if it's there with either rospack list-names or rospack find rviz_visual_tools. You can also build it from source by cloning it from the official git.
Alternatively, in your CMakeLists.txt file, under #find_packages or ##System dependencies are found with CMake's conventions, add & save find_package(rviz_visual_tools REQUIRED). Then check with the same rospack commands.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-06-15 04:36:43 -0600

Seen: 1,123 times

Last updated: Jun 19 '22