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

Revision history [back]

You will need to be compiling for the correct architecture. The easiest way to do that is to just compile on Windows. If you are, I believe you should be able to direct cmake to install your binaries when you run colcon build. Add the following to your CMakeLists.txt to install the build binary.

target_include_directories(node_name PUBLIC
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
    $<INSTALL_INTERFACE:include>
)
install(TARGETS
    node_name
    DESTINATION lib/${PROJECT_NAME}
)

After running colcon build, you should now have an install directory in your workspace that contains the binary executable. You can zip that up and share it across machines.