Catkin_make error: Workspace contains non-catkin packages in it
I first followed the tutorials of moveit and everything was fine. I could run the demo.launch for pr2. Then I replaced src folder with my own and tried to compile it. After solved some problems like can't find urdfdomConfig.cmake, now I don't know how to solve this problem.
Here is my result for catkin_make:
Base path: //home/ruinianxu/ws_moveit
Source space: //home/ruinianxu/ws_moveit/src
Build space: //home/ruinianxu/ws_moveit/build
Devel space: //home/ruinianxu/ws_moveit/devel
Install space: //home/ruinianxu/ws_moveit/install
####
#### Running command: "make cmake_check_build_system" in "//home/ruinianxu/ws_moveit/build"
####
-- Using CATKIN_DEVEL_PREFIX: //home/ruinianxu/ws_moveit/devel
-- Using CMAKE_PREFIX_PATH: /home/ruinianxu/ws_moveit/devel;/opt/ros/indigo
-- This workspace overlays: /home/ruinianxu/ws_moveit/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ruinianxu/ws_moveit/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.19
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 75 packages in topological order:
-- ~~ - genmsg
-- ~~ - gencpp
-- ~~ - genlisp
-- ~~ - genpy
-- ~~ - cmake_modules
-- ~~ - cpp_common
-- ~~ - message_generation
-- ~~ - message_runtime
-- ~~ - mk
-- ~~ - moveit_planners (metapackage)
-- ~~ - moveit_plugins (metapackage)
-- ~~ - moveit_pr2 (metapackage)
-- ~~ - moveit_resources
-- ~~ - moveit_ros (metapackage)
-- ~~ - ompl (plain cmake)
-- ~~ - pr2_moveit_config
-- ~~ - ros (metapackage)
-- ~~ - ros_comm (metapackage)
-- ~~ - rosbash
-- ~~ - rosboost_cfg
-- ~~ - rosbuild
-- ~~ - rosclean
-- ~~ - roscpp_traits
-- ~~ - roscreate
-- ~~ - rosgraph
-- ~~ - roslang
-- ~~ - rosmake
-- ~~ - rosmaster
-- ~~ - rosmsg
-- ~~ - rospack
-- ~~ - roslib
-- ~~ - rosparam
-- ~~ - rospy
-- ~~ - rosservice
-- ~~ - rostime
-- ~~ - roscpp_serialization
-- ~~ - roslaunch
-- ~~ - rosunit
-- ~~ - rosconsole
-- ~~ - roslz4
-- ~~ - rosbag_storage
-- ~~ - rostest
-- ~~ - std_msgs
-- ~~ - rosgraph_msgs
-- ~~ - std_srvs
-- ~~ - moveit_msgs
-- ~~ - xmlrpcpp
-- ~~ - roscpp
-- ~~ - rosout
-- ~~ - message_filters
-- ~~ - rosnode
-- ~~ - rostopic
-- ~~ - roswtf
-- ~~ - topic_tools
-- ~~ - rosbag
-- ~~ - srdfdom
-- ~~ - moveit_core
-- ~~ - moveit_controller_manager_example
-- ~~ - moveit_fake_controller_manager
-- ~~ - moveit_ros_perception
-- ~~ - moveit_ros_planning
-- ~~ - moveit_ros_move_group
-- ~~ - moveit_ros_manipulation
-- ~~ - moveit_ros_robot_interaction
-- ~~ - moveit_simple_controller_manager
-- ~~ - pr2_moveit_plugins
-- ~~ - pr2_moveit_tests
-- ~~ - moveit_ros_warehouse
-- ~~ - moveit_ros_benchmarks
-- ~~ - moveit_ros_planning_interface
-- ~~ - moveit_commander
-- ~~ - moveit_ros_visualization
-- ~~ - moveit_ros_benchmarks_gui
-- ~~ - moveit_setup_assistant
-- ~~ - pr2_moveit_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMake Error at src/catkin/cmake/catkin_workspace.cmake:95 (message):
This workspace contains non-catkin packages in it, and catkin cannot build
a non-homogeneous workspace without isolation. Try the
'catkin_make_isolated' command instead.
Call Stack (most recent call first):
CMakeLists.txt:63 (catkin_workspace)
-- Configuring incomplete, errors occurred!
See also "/home/ruinianxu/ws_moveit/build/CMakeFiles/CMakeOutput.log".
See also "/home/ruinianxu/ws_moveit/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
I checked some similar problems but still don't know how to solve it. I found that someone said I can move the noncatkin packages out and build a second workspace for it to install it. But I don't know what package is noncatkin package. I also want to know whether there is difference if I change to use catkin_make_isolated? I compiled successfully by catkin_make_isolated but when I tried to launch demo.launch for pr2, my rviz always stopped to work suddenly.
Please use the preformatted text button when inserting code (101010 button)
Hi,
At least now I found that is due to you add package like ompl in your workspace and try to catkin_make the whole workspace. You can find tutorial about how to install source ompl library with moveit. Actually they use catkin build that I just know is similar to catkin_make isolated.
Although that sounds like a separate issue, please at least provide the system output of it if you think it's related to what you're originally asking.