Gazebo packages conflict with 2 simulators [closed]
Hi all,
I'm installing and compiling Baxter's simulator while I already have other simulators in my workspace, especially a custom robot called rfe. The problem is that both simulations redefine controller_manager_msgs and it creates a conflict (see catkin_make output below).
I created a simulation of this custom robot myself so I may have done something wrong with this (it works well however).
As a temporary workaround I add a CATKIN_IGNORE file into the simulator I want to mute, but I'm wondering what is the clean solution in this case?
Thanks
$ catkin_make
[...]
-- ==> add_subdirectory(baxter_common/baxter_maintenance_msgs)
-- Using these message generators: gencpp;genlisp;genpy
-- baxter_maintenance_msgs: 7 messages, 0 services
-- +++ processing catkin package: 'controller_manager_msgs'
-- ==> add_subdirectory(ros_control/controller_manager_msgs)
-- Using these message generators: gencpp;genlisp;genpy
-- controller_manager_msgs: 3 messages, 6 services
CMake Error at /home/courrier/ros_ws/build/ros_control/controller_manager_msgs/cmake/controller_manager_msgs-genmsg.cmake:83 (add_custom_target):
add_custom_target cannot create target
"controller_manager_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/courrier/ros_ws/src/ros_rfe/rfe_gazebo".
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)
ros_control/controller_manager_msgs/CMakeLists.txt:35 (generate_messages)
CMake Error at /home/courrier/ros_ws/build/ros_control/controller_manager_msgs/cmake/controller_manager_msgs-genmsg.cmake:160 (add_custom_target):
add_custom_target cannot create target
"controller_manager_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/courrier/ros_ws/src/ros_rfe/rfe_gazebo".
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)
ros_control/controller_manager_msgs/CMakeLists.txt:35 (generate_messages)
CMake Error at /home/courrier/ros_ws/build/ros_control/controller_manager_msgs/cmake/controller_manager_msgs-genmsg.cmake:237 (add_custom_target):
add_custom_target cannot create target
"controller_manager_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/courrier/ros_ws/src/ros_rfe/rfe_gazebo".
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)
ros_control/controller_manager_msgs/CMakeLists.txt:35 (generate_messages)
-- +++ processing catkin package: 'baxter_core_msgs'
-- ==> add_subdirectory(baxter_common/baxter_core_msgs)
[...]
EDIT : Deleting build and devel does not change anything, here is my CMakeList for rfe_gazebo:
cmake_minimum_required(VERSION 2.8.3)
project(rfe_gazebo)
find_package(catkin REQUIRED COMPONENTS
imu_sensor_controller
force_torque_sensor_controller
position_controllers
velocity_controllers
effort_controllers
forward_command_controller
joint_state_controller
joint_trajectory_controller
)
catkin_package(
)
include_directories(
${catkin_INCLUDE_DIRS}
)