cannot create target when using gazebo_ros and tf2
I am trying to compile from source to test fix. But get error. It has to be in my CMakefile or package file. Can someone advise. Below are the files for rrbot_gazebo. There are no pgm is this dir just launch file and a world file.
# <a href="http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html">http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html</a>
cmake_minimum_required(VERSION 2.8.3)
project(rrbot_gazebo)
# Load catkin and all dependencies required for this package
# TODO: remove all from COMPONENTS that are not catkin packages.
find_package(catkin REQUIRED COMPONENTS gazebo_ros)
# TODO: fill in what other packages will need to use this package
## DEPENDS: system dependencies of this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## INCLUDE_DIRS:
## LIBRARIES: libraries you create in this project that dependent projects also need
catkin_package(
DEPENDS
CATKIN_DEPENDS # TODO
INCLUDE_DIRS # TODO include
LIBRARIES # TODO
)
<package>
<name>rrbot_gazebo</name>
<version>0.1.0</version>
<description>rrbot_gazebo</description>
<maintainer <a href="mailto:email="rnunziata@yahoo.com">Richard">email="rnunziata@yahoo.com">Richard</a> Nunziata</maintainer>
<license>BSD</license>
<author <a href="mailto:email=email="rnunziata@yahoo.com">Richard">email=email="rnunziata@yahoo.com">Richard</a> Nunziata</author>
<buildtool_depend>catkin</buildtool_depend>
<run_depend>rrbot_description</run_depend>
<run_depend>rrbot_control</run_depend>
<run_depend>gazebo_ros</run_depend>
<export>
</export>
</package>
- Generating .msg files for action tf2_msgs/LookupTransform /home/viki/catkin_ws/src/geometry_experimental/tf2_msgs/action/LookupTransform.action
Generating for action LookupTransform
-- tf2_msgs: 9 messages, 1 services
CMake Error at /home/viki/catkin_ws/build/geometry_experimental/tf2_msgs/cmake/tf2_msgs-genmsg.cmake:89 (add_custom_target):
add_custom_target cannot create target "tf2_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/viki/catkin_ws/src/gazebo_ros_demos/rrbot_gazebo". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:288 (include)
geometry_experimental/tf2_msgs/CMakeLists.txt:11 (generate_messages)
CMake Error at /home/viki/catkin_ws/build/geometry_experimental/tf2_msgs/cmake/tf2_msgs-genmsg.cmake:172 (add_custom_target):
add_custom_target cannot create target "tf2_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/viki/catkin_ws/src/gazebo_ros_demos/rrbot_gazebo". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:288 (include)
geometry_experimental/tf2_msgs/CMakeLists.txt:11 (generate_messages)
CMake Error at /home/viki/catkin_ws/build/geometry_experimental/tf2_msgs/cmake/tf2_msgs-genmsg.cmake:255 (add_custom_target):
add_custom_target cannot create target "tf2_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/viki/catkin_ws/src/gazebo_ros_demos/rrbot_gazebo". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:288 (include)
geometry_experimental/tf2_msgs/CMakeLists.txt:11 (generate_messages)
I changed title, hope you don't mind