Why do we need to Install a node Executable
Hello,
I am newbie in ROS and CMake (catkin) thing. I have a cmake, in which a node is added as executable:
add_executable(${PROJECT_NAME}_node src/implementation.cpp src/NodeName2_node.cpp)
So, I can run this node from launch file of other projects.
Later in Cmake, he also installed that executable by following statements:
install(TARGETS ${PROJECT_NAME}_node ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
I did not understand why he needed to install those executable. Can someone please explain this.