start-jsk / jsk_apc

Other
36 stars 35 forks source link

CMakeError: another target with the same name already exists. #37

Closed wkentaro closed 9 years ago

wkentaro commented 9 years ago

srvファイルを追加し、package.xmlとCMakeLists.txtを変更したところ、ビルド中に下のようなanother target with the same name already exists. というエラーが出ました。 エラーが出る前後の変更を調べると、CMakeLists.txtの find_packages()message_generation を追加すると起こります。(しかしこれがないと追加したsrvファイルからmsgなどが生成されません)

エラーの出るCMakeLists.txt: https://github.com/wkentaro/2014-semi/blob/wkentaro/jsk_2014_picking_challenge/CMakeLists.txt

$ catkin_make
Base path: /home/wken/catkin_ws/semi
Source space: /home/wken/catkin_ws/semi/src
Build space: /home/wken/catkin_ws/semi/build
Devel space: /home/wken/catkin_ws/semi/devel
Install space: /home/wken/catkin_ws/semi/install
####
#### Running command: "make cmake_check_build_system" in "/home/wken/catkin_ws/semi/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/wken/catkin_ws/semi/devel
-- Using CMAKE_PREFIX_PATH: /home/wken/catkin_ws/semi/devel;/opt/ros/hydro
-- This workspace overlays: /home/wken/catkin_ws/semi/devel;/opt/ros/hydro
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/wken/catkin_ws/semi/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.89
-- BUILD_SHARED_LIBS is on
WARNING: Package "ompl" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
WARNING: package "hrpsys_ros_bridge" should not depend on metapackage "pr2_controllers" but on its packages instead
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 53 packages in topological order:
-- ~~  - baxter_common (metapackage)
-- ~~  - baxter_description
-- ~~  - baxter_maintenance_msgs
-- ~~  - baxter_sdk (metapackage)
-- ~~  - baxter_simulator (metapackage)
-- ~~  - controller_manager_msgs
-- ~~  - gazebo_ros_pkgs (metapackage)
-- ~~  - hardware_interface
-- ~~  - jsk_2014_picking_challenge
-- ~~  - controller_interface
-- ~~  - forward_command_controller
-- ~~  - position_controllers
-- ~~  - realtime_tools
-- ~~  - controller_manager
-- ~~  - force_torque_sensor_controller
-- ~~  - ros_control (metapackage)
-- ~~  - ros_controllers (metapackage)
-- ~~  - baxter_core_msgs
-- ~~  - baxter_sim_io
-- ~~  - imu_sensor_controller
-- ~~  - joint_state_controller
-- ~~  - control_toolbox
-- ~~  - controller_manager_tests
-- ~~  - baxter_interface
-- ~~  - baxter_examples
-- ~~  - baxter_tools
-- ~~  - gazebo_msgs
-- ~~  - jsk_baxter_startup
-- ~~  - transmission_interface
-- ~~  - joint_limits_interface
-- ~~  - effort_controllers
-- ~~  - baxter_sim_controllers
-- ~~  - gazebo_plugins
-- ~~  - gazebo_ros
-- ~~  - gazebo_ros_control
-- ~~  - baxter_sim_kinematics
-- ~~  - pr2_base_trajectory_action
-- ~~  - velocity_controllers
-- ~~  - baxter_gazebo
-- ~~  - vision_visp (metapackage)
-- ~~  - visp_bridge
-- ~~  - visp_camera_calibration
-- ~~  - visp_hand2eye_calibration
-- ~~  - visp_tracker
-- ~~  - visp_auto_tracker
-- ~~  - jsk_baxter_web
-- ~~  - jsk_pepper_startup
-- ~~  - jsk_baxter_desktop
-- ~~  - baxtereus
-- ~~  - jsk_pr2_startup
-- ~~  - baxter_sim_hardware
-- ~~  - xacro
-- ~~  - joint_trajectory_controller
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'baxter_common'
-- ==> add_subdirectory(baxter_common/baxter_common)
-- +++ processing catkin package: 'baxter_description'
-- ==> add_subdirectory(baxter_common/baxter_description)
-- +++ processing catkin package: 'baxter_maintenance_msgs'
-- ==> add_subdirectory(baxter_common/baxter_maintenance_msgs)
[roseus.camke] Loading... PROJECT_NAME=baxter_maintenance_msgs USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- baxter_maintenance_msgs: 7 messages, 0 services
-- +++ processing catkin metapackage: 'baxter_sdk'
-- ==> add_subdirectory(baxter/baxter_sdk)
-- +++ processing catkin metapackage: 'baxter_simulator'
-- ==> add_subdirectory(baxter_simulator/baxter_simulator)
-- +++ processing catkin package: 'controller_manager_msgs'
-- ==> add_subdirectory(ros_control/controller_manager_msgs)
[roseus.camke] Loading... PROJECT_NAME=controller_manager_msgs USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- controller_manager_msgs: 3 messages, 6 services
-- +++ processing catkin metapackage: 'gazebo_ros_pkgs'
-- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_ros_pkgs)
-- +++ processing catkin package: 'hardware_interface'
-- ==> add_subdirectory(ros_control/hardware_interface)
-- +++ processing catkin package: 'jsk_2014_picking_challenge'
-- ==> add_subdirectory(2014-semi/jsk_2014_picking_challenge)
[roseus.camke] Loading... PROJECT_NAME=jsk_2014_picking_challenge USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- jsk_2014_picking_challenge: 0 messages, 1 services
-- +++ processing catkin package: 'controller_interface'
-- ==> add_subdirectory(ros_control/controller_interface)
-- +++ processing catkin package: 'forward_command_controller'
-- ==> add_subdirectory(ros_controllers/forward_command_controller)
-- +++ processing catkin package: 'position_controllers'
-- ==> add_subdirectory(ros_controllers/position_controllers)
-- +++ processing catkin package: 'realtime_tools'
-- ==> add_subdirectory(realtime_tools)
-- +++ processing catkin package: 'controller_manager'
-- ==> add_subdirectory(ros_control/controller_manager)
-- +++ processing catkin package: 'force_torque_sensor_controller'
-- ==> add_subdirectory(ros_controllers/force_torque_sensor_controller)
-- +++ processing catkin metapackage: 'ros_control'
-- ==> add_subdirectory(ros_control/ros_control)
-- +++ processing catkin metapackage: 'ros_controllers'
-- ==> add_subdirectory(ros_controllers/ros_controllers)
-- +++ processing catkin package: 'baxter_core_msgs'
-- ==> add_subdirectory(baxter_common/baxter_core_msgs)
[roseus.camke] Loading... PROJECT_NAME=baxter_core_msgs USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- baxter_core_msgs: 26 messages, 4 services
CMake Error at /home/wken/catkin_ws/semi/build/baxter_common/baxter_core_msgs/cmake/baxter_core_msgs-genmsg.cmake:210 (add_custom_target):
  add_custom_target cannot create target
  "baxter_core_msgs_generate_messages_cpp" because another target with the
  same name already exists.  The existing target is a custom target created
  in source directory
  "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include)
  baxter_common/baxter_core_msgs/CMakeLists.txt:47 (generate_messages)

CMake Error at /home/wken/catkin_ws/semi/build/baxter_common/baxter_core_msgs/cmake/baxter_core_msgs-genmsg.cmake:413 (add_custom_target):
  add_custom_target cannot create target
  "baxter_core_msgs_generate_messages_eus" because another target with the
  same name already exists.  The existing target is a custom target created
  in source directory
  "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include)
  baxter_common/baxter_core_msgs/CMakeLists.txt:47 (generate_messages)

CMake Error at /home/wken/catkin_ws/semi/build/baxter_common/baxter_core_msgs/cmake/baxter_core_msgs-genmsg.cmake:616 (add_custom_target):
  add_custom_target cannot create target
  "baxter_core_msgs_generate_messages_lisp" because another target with the
  same name already exists.  The existing target is a custom target created
  in source directory
  "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include)
  baxter_common/baxter_core_msgs/CMakeLists.txt:47 (generate_messages)

CMake Error at /home/wken/catkin_ws/semi/build/baxter_common/baxter_core_msgs/cmake/baxter_core_msgs-genmsg.cmake:819 (add_custom_target):
  add_custom_target cannot create target
  "baxter_core_msgs_generate_messages_py" because another target with the
  same name already exists.  The existing target is a custom target created
  in source directory
  "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include)
  baxter_common/baxter_core_msgs/CMakeLists.txt:47 (generate_messages)

-- +++ processing catkin package: 'baxter_sim_io'
-- ==> add_subdirectory(baxter_simulator/baxter_sim_io)
-- +++ processing catkin package: 'imu_sensor_controller'
-- ==> add_subdirectory(ros_controllers/imu_sensor_controller)
-- +++ processing catkin package: 'joint_state_controller'
-- ==> add_subdirectory(ros_controllers/joint_state_controller)
-- +++ processing catkin package: 'control_toolbox'
-- ==> add_subdirectory(control_toolbox)
[roseus.camke] Loading... PROJECT_NAME=control_toolbox USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- control_toolbox: 0 messages, 1 services
-- +++ processing catkin package: 'controller_manager_tests'
-- ==> add_subdirectory(ros_control/controller_manager_tests)
[roseus.camke] Loading... PROJECT_NAME=controller_manager_tests USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'baxter_interface'
-- ==> add_subdirectory(baxter_interface)
[roseus.camke] Loading... PROJECT_NAME=baxter_interface USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
CMake Error at /opt/ros/hydro/share/dynamic_reconfigure/cmake/dynamic_reconfigure-macros.cmake:57 (add_custom_target):
  add_custom_target cannot create target "baxter_interface_gencfg" because
  another target with the same name already exists.  The existing target is a
  custom target created in source directory
  "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  baxter_interface/CMakeLists.txt:19 (generate_dynamic_reconfigure_options)

-- +++ processing catkin package: 'baxter_examples'
-- ==> add_subdirectory(baxter_examples)
[roseus.camke] Loading... PROJECT_NAME=baxter_examples USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'baxter_tools'
-- ==> add_subdirectory(baxter_tools)
[roseus.camke] Loading... PROJECT_NAME=baxter_tools USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'gazebo_msgs'
-- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_msgs)
[roseus.camke] Loading... PROJECT_NAME=gazebo_msgs USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- gazebo_msgs: 9 messages, 20 services
-- +++ processing catkin package: 'jsk_baxter_startup'
-- ==> add_subdirectory(jsk_robot/jsk_baxter_robot/jsk_baxter_startup)
-- +++ processing catkin package: 'transmission_interface'
-- ==> add_subdirectory(ros_control/transmission_interface)
-- +++ processing catkin package: 'joint_limits_interface'
-- ==> add_subdirectory(ros_control/joint_limits_interface)
-- +++ processing catkin package: 'effort_controllers'
-- ==> add_subdirectory(ros_controllers/effort_controllers)
[roseus.camke] Loading... PROJECT_NAME=effort_controllers USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'baxter_sim_controllers'
-- ==> add_subdirectory(baxter_simulator/baxter_sim_controllers)
[roseus.camke] Loading... PROJECT_NAME=baxter_sim_controllers USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'gazebo_plugins'
-- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_plugins)
[roseus.camke] Loading... PROJECT_NAME=gazebo_plugins USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- checking for module 'openni-dev'
--   package 'openni-dev' not found
-- checking for module 'openni-dev'
--   package 'openni-dev' not found
-- checking for module 'openni-dev'
--   package 'openni-dev' not found
-- looking for PCL_COMMON
-- looking for PCL_KDTREE
-- looking for PCL_OCTREE
-- looking for PCL_SEARCH
-- looking for PCL_IO
-- looking for PCL_SAMPLE_CONSENSUS
-- looking for PCL_FILTERS
-- looking for PCL_GEOMETRY
-- looking for PCL_VISUALIZATION
-- looking for PCL_OUTOFCORE
-- looking for PCL_FEATURES
-- looking for PCL_SEGMENTATION
-- looking for PCL_PEOPLE
-- looking for PCL_REGISTRATION
-- looking for PCL_RECOGNITION
-- looking for PCL_KEYPOINTS
-- looking for PCL_SURFACE
-- looking for PCL_TRACKING
-- looking for PCL_APPS
-- +++ processing catkin package: 'gazebo_ros'
-- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_ros)
[roseus.camke] Loading... PROJECT_NAME=gazebo_ros USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'gazebo_ros_control'
-- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_ros_control)
[roseus.camke] Loading... PROJECT_NAME=gazebo_ros_control USE_ROSBILD=
[rospack] Error: package/stack 'gazebo_ros_control' depends on non-existent package 'ros_controllers' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update'
[roseus.cmake] find rospack dpends fails for gazebo_ros_control
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'baxter_sim_kinematics'
-- ==> add_subdirectory(baxter_simulator/baxter_sim_kinematics)
[roseus.camke] Loading... PROJECT_NAME=baxter_sim_kinematics USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- Eigen found (include: /usr/include/eigen3)
-- +++ processing catkin package: 'pr2_base_trajectory_action'
-- ==> add_subdirectory(jsk_robot/pr2_base_trajectory_action)
[roseus.camke] Loading... PROJECT_NAME=pr2_base_trajectory_action USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'velocity_controllers'
-- ==> add_subdirectory(ros_controllers/velocity_controllers)
-- +++ processing catkin package: 'baxter_gazebo'
-- ==> add_subdirectory(baxter_simulator/baxter_gazebo)
[roseus.camke] Loading... PROJECT_NAME=baxter_gazebo USE_ROSBILD=
[rospack] Error: package/stack 'gazebo_ros_control' depends on non-existent package 'ros_controllers' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update'
[roseus.cmake] find rospack dpends fails for baxter_gazebo
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin metapackage: 'vision_visp'
-- ==> add_subdirectory(vision_visp/vision_visp)
-- +++ processing catkin package: 'visp_bridge'
-- ==> add_subdirectory(vision_visp/visp_bridge)
-- +++ processing catkin package: 'visp_camera_calibration'
-- ==> add_subdirectory(vision_visp/visp_camera_calibration)
[roseus.camke] Loading... PROJECT_NAME=visp_camera_calibration USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- visp_camera_calibration: 4 messages, 1 services
-- +++ processing catkin package: 'visp_hand2eye_calibration'
-- ==> add_subdirectory(vision_visp/visp_hand2eye_calibration)
[roseus.camke] Loading... PROJECT_NAME=visp_hand2eye_calibration USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- visp_hand2eye_calibration: 1 messages, 3 services
-- +++ processing catkin package: 'visp_tracker'
-- ==> add_subdirectory(vision_visp/visp_tracker)
[roseus.camke] Loading... PROJECT_NAME=visp_tracker USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- visp_tracker: 6 messages, 1 services
-- +++ processing catkin package: 'visp_auto_tracker'
-- ==> add_subdirectory(vision_visp/visp_auto_tracker)
-- +++ processing catkin package: 'jsk_baxter_web'
-- ==> add_subdirectory(jsk_robot/jsk_baxter_robot/jsk_baxter_web)
[roseus.camke] Loading... PROJECT_NAME=jsk_baxter_web USE_ROSBILD=
[rospack] Error: package/stack 'jsk_baxter_web' depends on non-existent package 'rwt_ros' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update'
[roseus.cmake] find rospack dpends fails for jsk_baxter_web
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'jsk_pepper_startup'
-- ==> add_subdirectory(jsk_robot/jsk_pepper_robot/jsk_pepper_startup)
[roseus.camke] Loading... PROJECT_NAME=jsk_pepper_startup USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'jsk_baxter_desktop'
-- ==> add_subdirectory(jsk_robot/jsk_baxter_robot/jsk_baxter_desktop)
[roseus.camke] Loading... PROJECT_NAME=jsk_baxter_desktop USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- +++ processing catkin package: 'baxtereus'
-- ==> add_subdirectory(jsk_robot/jsk_baxter_robot/baxtereus)
[roseus.camke] Loading... PROJECT_NAME=baxtereus USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
baxter_urdf: /home/wken/catkin_ws/semi/src/baxter_common/baxter_description/urdf
urdf_to_collada: /opt/ros/hydro/lib/collada_urdf/urdf_to_collada
collada2eus: /opt/ros/hydro/lib/euscollada/collada2eus
-- +++ processing catkin package: 'jsk_pr2_startup'
-- ==> add_subdirectory(jsk_robot/jsk_pr2_startup)
-- +++ processing catkin package: 'baxter_sim_hardware'
-- ==> add_subdirectory(baxter_simulator/baxter_sim_hardware)
-- Eigen found (include: /usr/include/eigen3)
-- +++ processing catkin package: 'xacro'
-- ==> add_subdirectory(xacro)
-- +++ processing catkin package: 'joint_trajectory_controller'
-- ==> add_subdirectory(ros_controllers/joint_trajectory_controller)
[roseus.camke] Loading... PROJECT_NAME=joint_trajectory_controller USE_ROSBILD=
-- Using these message generators: gencpp;geneus;genlisp;genpy
-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] エラー 1
Invoking "make cmake_check_build_system" failed
k-okada commented 9 years ago

src の下に baxter_core_msgs というディレクトリが2つないかな? なければ,rm build/CatkinCache.txt; catkin_make としてみて,それでもダメなら rm build devel; catkin_make すればいいとおもうけど,それは本当の最後の最後の手ですね.

On Sun, Nov 16, 2014 at 3:40 PM, Kentaro Wada notifications@github.com wrote:

srvファイルを追加し、package.xmlとCMakeLists.txtを変更したところ、 another target with the same name already exists. というエラーが出てcatkin_make ができません。解決方法がわかれば教えてください。

$ catkin_make Base path: /home/wken/catkin_ws/semi Source space: /home/wken/catkin_ws/semi/src Build space: /home/wken/catkin_ws/semi/build Devel space: /home/wken/catkin_ws/semi/devel Install space: /home/wken/catkin_ws/semi/install######## Running command: "make cmake_check_build_system" in "/home/wken/catkin_ws/semi/build"#### -- Using CATKIN_DEVEL_PREFIX: /home/wken/catkin_ws/semi/devel -- Using CMAKE_PREFIX_PATH: /home/wken/catkin_ws/semi/devel;/opt/ros/hydro -- This workspace overlays: /home/wken/catkin_ws/semi/devel;/opt/ros/hydro -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Python version: 2.7 -- Using Debian Python package layout -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/wken/catkin_ws/semi/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- catkin 0.5.89 -- BUILD_SHARED_LIBS is on WARNING: Package "ompl" does not follow the version conventions. It should not contain leading zeros (unless the number is 0). WARNING: package "hrpsys_ros_bridge" should not depend on metapackage "pr2_controllers" but on its packages instead -- ~~~~~~~~~~~~~ -- ~~ traversing 53 packages in topological order: -- ~~ - baxter_common (metapackage) -- ~~ - baxter_description -- ~~ - baxter_maintenance_msgs -- ~~ - baxter_sdk (metapackage) -- ~~ - baxter_simulator (metapackage) -- ~~ - controller_manager_msgs -- ~~ - gazebo_ros_pkgs (metapackage) -- ~~ - hardware_interface -- ~~ - jsk_2014_picking_challenge -- ~~ - controller_interface -- ~~ - forward_command_controller -- ~~ - position_controllers -- ~~ - realtime_tools -- ~~ - controller_manager -- ~~ - force_torque_sensor_controller -- ~~ - ros_control (metapackage) -- ~~ - ros_controllers (metapackage) -- ~~ - baxter_core_msgs -- ~~ - baxter_sim_io -- ~~ - imu_sensor_controller -- ~~ - joint_state_controller -- ~~ - control_toolbox -- ~~ - controller_manager_tests -- ~~ - baxter_interface -- ~~ - baxter_examples -- ~~ - baxter_tools -- ~~ - gazebo_msgs -- ~~ - jsk_baxter_startup -- ~~ - transmission_interface -- ~~ - joint_limits_interface -- ~~ - effort_controllers -- ~~ - baxter_sim_controllers -- ~~ - gazebo_plugins -- ~~ - gazebo_ros -- ~~ - gazebo_ros_control -- ~~ - baxter_sim_kinematics -- ~~ - pr2_base_trajectory_action -- ~~ - velocity_controllers -- ~~ - baxter_gazebo -- ~~ - vision_visp (metapackage) -- ~~ - visp_bridge -- ~~ - visp_camera_calibration -- ~~ - visp_hand2eye_calibration -- ~~ - visp_tracker -- ~~ - visp_auto_tracker -- ~~ - jsk_baxter_web -- ~~ - jsk_pepper_startup -- ~~ - jsk_baxter_desktop -- ~~ - baxtereus -- ~~ - jsk_pr2_startup -- ~~ - baxter_sim_hardware -- ~~ - xacro -- ~~ - joint_trajectory_controller -- ~~~~~~~~~~~~~ -- +++ processing catkin metapackage: 'baxter_common' -- ==> add_subdirectory(baxter_common/baxter_common) -- +++ processing catkin package: 'baxter_description' -- ==> add_subdirectory(baxter_common/baxter_description) -- +++ processing catkin package: 'baxter_maintenance_msgs' -- ==> add_subdirectory(baxter_common/baxter_maintenance_msgs) [roseus.camke] Loading... PROJECT_NAME=baxter_maintenance_msgs USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- baxter_maintenance_msgs: 7 messages, 0 services -- +++ processing catkin metapackage: 'baxter_sdk' -- ==> add_subdirectory(baxter/baxter_sdk) -- +++ processing catkin metapackage: 'baxter_simulator' -- ==> add_subdirectory(baxter_simulator/baxter_simulator) -- +++ processing catkin package: 'controller_manager_msgs' -- ==> add_subdirectory(ros_control/controller_manager_msgs) [roseus.camke] Loading... PROJECT_NAME=controller_manager_msgs USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- controller_manager_msgs: 3 messages, 6 services -- +++ processing catkin metapackage: 'gazebo_ros_pkgs' -- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_ros_pkgs) -- +++ processing catkin package: 'hardware_interface' -- ==> add_subdirectory(ros_control/hardware_interface) -- +++ processing catkin package: 'jsk_2014_picking_challenge' -- ==> add_subdirectory(2014-semi/jsk_2014_picking_challenge) [roseus.camke] Loading... PROJECT_NAME=jsk_2014_picking_challenge USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- jsk_2014_picking_challenge: 0 messages, 1 services -- +++ processing catkin package: 'controller_interface' -- ==> add_subdirectory(ros_control/controller_interface) -- +++ processing catkin package: 'forward_command_controller' -- ==> add_subdirectory(ros_controllers/forward_command_controller) -- +++ processing catkin package: 'position_controllers' -- ==> add_subdirectory(ros_controllers/position_controllers) -- +++ processing catkin package: 'realtime_tools' -- ==> add_subdirectory(realtime_tools) -- +++ processing catkin package: 'controller_manager' -- ==> add_subdirectory(ros_control/controller_manager) -- +++ processing catkin package: 'force_torque_sensor_controller' -- ==> add_subdirectory(ros_controllers/force_torque_sensor_controller) -- +++ processing catkin metapackage: 'ros_control' -- ==> add_subdirectory(ros_control/ros_control) -- +++ processing catkin metapackage: 'ros_controllers' -- ==> add_subdirectory(ros_controllers/ros_controllers) -- +++ processing catkin package: 'baxter_core_msgs' -- ==> add_subdirectory(baxter_common/baxter_core_msgs) [roseus.camke] Loading... PROJECT_NAME=baxter_core_msgs USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- baxter_core_msgs: 26 messages, 4 services CMake Error at /home/wken/catkin_ws/semi/build/baxter_common/baxter_core_msgs/cmake/baxter_core_msgs-genmsg.cmake:210 (add_custom_target): add_custom_target cannot create target "baxter_core_msgs_generate_messages_cpp" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include) baxter_common/baxter_core_msgs/CMakeLists.txt:47 (generate_messages)

CMake Error at /home/wken/catkin_ws/semi/build/baxter_common/baxter_core_msgs/cmake/baxter_core_msgs-genmsg.cmake:413 (add_custom_target): add_custom_target cannot create target "baxter_core_msgs_generate_messages_eus" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include) baxter_common/baxter_core_msgs/CMakeLists.txt:47 (generate_messages)

CMake Error at /home/wken/catkin_ws/semi/build/baxter_common/baxter_core_msgs/cmake/baxter_core_msgs-genmsg.cmake:616 (add_custom_target): add_custom_target cannot create target "baxter_core_msgs_generate_messages_lisp" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include) baxter_common/baxter_core_msgs/CMakeLists.txt:47 (generate_messages)

CMake Error at /home/wken/catkin_ws/semi/build/baxter_common/baxter_core_msgs/cmake/baxter_core_msgs-genmsg.cmake:819 (add_custom_target): add_custom_target cannot create target "baxter_core_msgs_generate_messages_py" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include) baxter_common/baxter_core_msgs/CMakeLists.txt:47 (generate_messages)

-- +++ processing catkin package: 'baxter_sim_io' -- ==> add_subdirectory(baxter_simulator/baxter_sim_io) -- +++ processing catkin package: 'imu_sensor_controller' -- ==> add_subdirectory(ros_controllers/imu_sensor_controller) -- +++ processing catkin package: 'joint_state_controller' -- ==> add_subdirectory(ros_controllers/joint_state_controller) -- +++ processing catkin package: 'control_toolbox' -- ==> add_subdirectory(control_toolbox) [roseus.camke] Loading... PROJECT_NAME=control_toolbox USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- control_toolbox: 0 messages, 1 services -- +++ processing catkin package: 'controller_manager_tests' -- ==> add_subdirectory(ros_control/controller_manager_tests) [roseus.camke] Loading... PROJECT_NAME=controller_manager_tests USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'baxter_interface' -- ==> add_subdirectory(baxter_interface) [roseus.camke] Loading... PROJECT_NAME=baxter_interface USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy CMake Error at /opt/ros/hydro/share/dynamic_reconfigure/cmake/dynamic_reconfigure-macros.cmake:57 (add_custom_target): add_custom_target cannot create target "baxter_interface_gencfg" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/wken/catkin_ws/semi/src/2014-semi/jsk_2014_picking_challenge". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): baxter_interface/CMakeLists.txt:19 (generate_dynamic_reconfigure_options)

-- +++ processing catkin package: 'baxter_examples' -- ==> add_subdirectory(baxter_examples) [roseus.camke] Loading... PROJECT_NAME=baxter_examples USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'baxter_tools' -- ==> add_subdirectory(baxter_tools) [roseus.camke] Loading... PROJECT_NAME=baxter_tools USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'gazebo_msgs' -- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_msgs) [roseus.camke] Loading... PROJECT_NAME=gazebo_msgs USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- gazebo_msgs: 9 messages, 20 services -- +++ processing catkin package: 'jsk_baxter_startup' -- ==> add_subdirectory(jsk_robot/jsk_baxter_robot/jsk_baxter_startup) -- +++ processing catkin package: 'transmission_interface' -- ==> add_subdirectory(ros_control/transmission_interface) -- +++ processing catkin package: 'joint_limits_interface' -- ==> add_subdirectory(ros_control/joint_limits_interface) -- +++ processing catkin package: 'effort_controllers' -- ==> add_subdirectory(ros_controllers/effort_controllers) [roseus.camke] Loading... PROJECT_NAME=effort_controllers USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'baxter_sim_controllers' -- ==> add_subdirectory(baxter_simulator/baxter_sim_controllers) [roseus.camke] Loading... PROJECT_NAME=baxter_sim_controllers USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'gazebo_plugins' -- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_plugins) [roseus.camke] Loading... PROJECT_NAME=gazebo_plugins USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- checking for module 'openni-dev' -- package 'openni-dev' not found -- checking for module 'openni-dev' -- package 'openni-dev' not found -- checking for module 'openni-dev' -- package 'openni-dev' not found -- looking for PCL_COMMON -- looking for PCL_KDTREE -- looking for PCL_OCTREE -- looking for PCL_SEARCH -- looking for PCL_IO -- looking for PCL_SAMPLE_CONSENSUS -- looking for PCL_FILTERS -- looking for PCL_GEOMETRY -- looking for PCL_VISUALIZATION -- looking for PCL_OUTOFCORE -- looking for PCL_FEATURES -- looking for PCL_SEGMENTATION -- looking for PCL_PEOPLE -- looking for PCL_REGISTRATION -- looking for PCL_RECOGNITION -- looking for PCL_KEYPOINTS -- looking for PCL_SURFACE -- looking for PCL_TRACKING -- looking for PCL_APPS -- +++ processing catkin package: 'gazebo_ros' -- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_ros) [roseus.camke] Loading... PROJECT_NAME=gazebo_ros USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'gazebo_ros_control' -- ==> add_subdirectory(gazebo_ros_pkgs/gazebo_ros_control) [roseus.camke] Loading... PROJECT_NAME=gazebo_ros_control USE_ROSBILD= [rospack] Error: package/stack 'gazebo_ros_control' depends on non-existent package 'ros_controllers' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update' [roseus.cmake] find rospack dpends fails for gazebo_ros_control -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'baxter_sim_kinematics' -- ==> add_subdirectory(baxter_simulator/baxter_sim_kinematics) [roseus.camke] Loading... PROJECT_NAME=baxter_sim_kinematics USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- Eigen found (include: /usr/include/eigen3) -- +++ processing catkin package: 'pr2_base_trajectory_action' -- ==> add_subdirectory(jsk_robot/pr2_base_trajectory_action) [roseus.camke] Loading... PROJECT_NAME=pr2_base_trajectory_action USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'velocity_controllers' -- ==> add_subdirectory(ros_controllers/velocity_controllers) -- +++ processing catkin package: 'baxter_gazebo' -- ==> add_subdirectory(baxter_simulator/baxter_gazebo) [roseus.camke] Loading... PROJECT_NAME=baxter_gazebo USE_ROSBILD= [rospack] Error: package/stack 'gazebo_ros_control' depends on non-existent package 'ros_controllers' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update' [roseus.cmake] find rospack dpends fails for baxter_gazebo -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin metapackage: 'vision_visp' -- ==> add_subdirectory(vision_visp/vision_visp) -- +++ processing catkin package: 'visp_bridge' -- ==> add_subdirectory(vision_visp/visp_bridge) -- +++ processing catkin package: 'visp_camera_calibration' -- ==> add_subdirectory(vision_visp/visp_camera_calibration) [roseus.camke] Loading... PROJECT_NAME=visp_camera_calibration USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- visp_camera_calibration: 4 messages, 1 services -- +++ processing catkin package: 'visp_hand2eye_calibration' -- ==> add_subdirectory(vision_visp/visp_hand2eye_calibration) [roseus.camke] Loading... PROJECT_NAME=visp_hand2eye_calibration USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- visp_hand2eye_calibration: 1 messages, 3 services -- +++ processing catkin package: 'visp_tracker' -- ==> add_subdirectory(vision_visp/visp_tracker) [roseus.camke] Loading... PROJECT_NAME=visp_tracker USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- visp_tracker: 6 messages, 1 services -- +++ processing catkin package: 'visp_auto_tracker' -- ==> add_subdirectory(vision_visp/visp_auto_tracker) -- +++ processing catkin package: 'jsk_baxter_web' -- ==> add_subdirectory(jsk_robot/jsk_baxter_robot/jsk_baxter_web) [roseus.camke] Loading... PROJECT_NAME=jsk_baxter_web USE_ROSBILD= [rospack] Error: package/stack 'jsk_baxter_web' depends on non-existent package 'rwt_ros' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update' [roseus.cmake] find rospack dpends fails for jsk_baxter_web -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'jsk_pepper_startup' -- ==> add_subdirectory(jsk_robot/jsk_pepper_robot/jsk_pepper_startup) [roseus.camke] Loading... PROJECT_NAME=jsk_pepper_startup USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'jsk_baxter_desktop' -- ==> add_subdirectory(jsk_robot/jsk_baxter_robot/jsk_baxter_desktop) [roseus.camke] Loading... PROJECT_NAME=jsk_baxter_desktop USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- +++ processing catkin package: 'baxtereus' -- ==> add_subdirectory(jsk_robot/jsk_baxter_robot/baxtereus) [roseus.camke] Loading... PROJECT_NAME=baxtereus USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy baxter_urdf: /home/wken/catkin_ws/semi/src/baxter_common/baxter_description/urdf urdf_to_collada: /opt/ros/hydro/lib/collada_urdf/urdf_to_collada collada2eus: /opt/ros/hydro/lib/euscollada/collada2eus -- +++ processing catkin package: 'jsk_pr2_startup' -- ==> add_subdirectory(jsk_robot/jsk_pr2_startup) -- +++ processing catkin package: 'baxter_sim_hardware' -- ==> add_subdirectory(baxter_simulator/baxter_sim_hardware) -- Eigen found (include: /usr/include/eigen3) -- +++ processing catkin package: 'xacro' -- ==> add_subdirectory(xacro) -- +++ processing catkin package: 'joint_trajectory_controller' -- ==> add_subdirectory(ros_controllers/joint_trajectory_controller) [roseus.camke] Loading... PROJECT_NAME=joint_trajectory_controller USE_ROSBILD= -- Using these message generators: gencpp;geneus;genlisp;genpy -- Configuring incomplete, errors occurred! make: *\ [cmake_check_build_system] エラー 1 Invoking "make cmake_check_build_system" failed

— Reply to this email directly or view it on GitHub https://github.com/start-jsk/2014-semi/issues/37.

wkentaro commented 9 years ago

baxter_core_msgsは一つしかなく、どちらの方法でcatkin_makeを試しても同じエラーが出ます。 jsk_2014_picking_challengeのmessage_generationを消すとエラーはなくなるというのが、どうも理由がわからず困っています。

k-okada commented 9 years ago

僕の環境だと以下のようなセットアップだけど動くんだけどね.

source /opt/ros/hydro/setup.bash ; rm -fr build devel; catkin_make

かな.

$ cd src/2014-semi/jsk_2014_picking_challenge/
k-okada@kokada-t440s:~/catkin_ws/ws_semi/src/2014-semi/jsk_2014_picking_challenge$ git branch
  add-ik-sample
  master
  rename
  update_readme
* wkentaro
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 45 packages in topological order:
-- ~~  - baxter_common (metapackage)
-- ~~  - baxter_description
-- ~~  - baxter_maintenance_msgs
-- ~~  - baxter_sdk (metapackage)
-- ~~  - baxter_simulator (metapackage)
-- ~~  - controller_manager_msgs
-- ~~  - gazebo_ros_pkgs (metapackage)
-- ~~  - hardware_interface
-- ~~  - joint_limits_interface
-- ~~  - jsk_2014_picking_challenge
-- ~~  - controller_interface
-- ~~  - forward_command_controller
-- ~~  - position_controllers
-- ~~  - realtime_tools
-- ~~  - controller_manager
-- ~~  - force_torque_sensor_controller
-- ~~  - ros_control (metapackage)
-- ~~  - ros_controllers (metapackage)
-- ~~  - baxter_core_msgs
-- ~~  - baxter_sim_io
-- ~~  - imu_sensor_controller
-- ~~  - joint_state_controller
-- ~~  - control_toolbox
-- ~~  - controller_manager_tests
-- ~~  - jsk_pr2_startup
-- ~~  - baxter_interface
-- ~~  - baxter_examples
-- ~~  - baxter_tools
-- ~~  - gazebo_msgs
-- ~~  - jsk_baxter_startup
-- ~~  - transmission_interface
-- ~~  - effort_controllers
-- ~~  - baxter_sim_controllers
-- ~~  - gazebo_plugins
-- ~~  - gazebo_ros
-- ~~  - gazebo_ros_control
-- ~~  - baxter_sim_kinematics
-- ~~  - baxter_sim_hardware
-- ~~  - velocity_controllers
-- ~~  - baxter_gazebo
-- ~~  - jsk_pepper_startup
-- ~~  - jsk_baxter_desktop
-- ~~  - baxtereus
-- ~~  - xacro
-- ~~  - joint_trajectory_controller
aginika commented 9 years ago

僕もエラーが出ました。

$ catkin_make --only-pkg-with-deps jsk_2014_picking_challenge --force-cmake 
Base path: /home/inagaki/ros/hydro
Source space: /home/inagaki/ros/hydro/src
Build space: /home/inagaki/ros/hydro/build
Devel space: /home/inagaki/ros/hydro/devel
Install space: /home/inagaki/ros/hydro/install
Whitelisted packages: assimp_devel, baxter_core_msgs, baxter_description, baxter_interface, baxter_maintenance_msgs, baxter_tools, baxtereus, euscollada, euslisp, geneus, jsk_2014_picking_challenge, pr2eus, roseus
####
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 13 packages in topological order:
-- ~~  - euslisp
-- ~~  - geneus
-- ~~  - baxter_description
-- ~~  - baxter_maintenance_msgs
-- ~~  - jsk_2014_picking_challenge
-- ~~  - assimp_devel
-- ~~  - baxter_core_msgs
-- ~~  - baxter_interface
-- ~~  - baxter_tools
-- ~~  - roseus
-- ~~  - euscollada
-- ~~  - baxtereus
-- ~~  - pr2eus
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

以下でも話題になっていますが、package.xml とCMakeLists.txt がおかしいとなるそうです。 http://answers.ros.org/question/66320/generate_messages-fails-with-ros_comm/

まだ原因が分かっていませんが、とりあえずの策として、 baxtereusのrun_dependを外すとcatkin_makeが通ります。

aginika commented 9 years ago

逆に、build_dependとしてbaxtereusを追加してもcatkin_makeは通ります。

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 13 packages in topological order:
-- ~~  - euslisp
-- ~~  - geneus
-- ~~  - baxter_description
-- ~~  - baxter_maintenance_msgs
-- ~~  - assimp_devel
-- ~~  - baxter_core_msgs
-- ~~  - baxter_interface
-- ~~  - baxter_tools
-- ~~  - roseus
-- ~~  - euscollada
-- ~~  - baxtereus
-- ~~  - pr2eus
-- ~~  - jsk_2014_picking_challenge
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
k-okada commented 9 years ago

On Sun, Nov 16, 2014 at 7:23 PM, Yuto Inagaki notifications@github.com wrote:

逆に、build_dependとしてbaxtereusを追加してもcatkin_makeは通ります。

なるほど,これでPRつくっておいて下さい.

aginika commented 9 years ago

とりあえずPRは作りましたが、build_dependになぜbaxtereusがいるのでしょうか・・・

aginika commented 9 years ago

@wkentaro catkin_makeのエラーはまだ同じようにでますか?

wkentaro commented 9 years ago

変更していただいたものを更新した結果、出なくなりました。サービスも使用できました。 修正ありがとうございました。

2014年11月17日月曜日、Yuto Inagakinotifications@github.comさんは書きました:

@wkentaro https://github.com/wkentaro catkin_makeのエラーはまだ同じようにでますか?

— Reply to this email directly or view it on GitHub https://github.com/start-jsk/2014-semi/issues/37#issuecomment-63309315.

和田 健太郎 / Kentaro Wada http://wkentaro.com http://www.wkentaro.com