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

Revision history [back]

click to hide/show revision 1
initial version

Thanks @gvdhoorn, your comment gave me good insights.

In my specific case, I defined the same nodelet source file as a library multiple times on my CMakeLists.txt file:

set (LIB_SOURCES .... # some cpp files src/PositionNodelet.cpp )

add_library(PositionNodelet src/PositionNodelet.cpp)

target_link_libraries(PositionNodelet ${catkin_LIBRARIES})

Then, I've removed "src/PositionNodelet.cpp" from the "set (LIB_SOURCES ...)" command and now it works fine.