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

[Ros2] Package Binaries

asked 2019-08-29 12:43:32 -0500

zipp39 gravatar image

OS: Windows 10 ROS 2 Dashing I created a package for ROS 2 Dashing and I was wondering how to generate binaries on Windows 10. I'd like to give my peers only a simple file or a few files, rather than a bunch of folders of Source code.

For ROS 1 and Ubuntu I remember we usesd bloom generate to generate .deb files, but I know that Windows 10 is obviously different. Any insight would be much appreciated!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2023-03-16 21:18:24 -0500

Jacob Hartzer gravatar image

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.

edit flag offensive delete link more
0

answered 2019-08-30 09:31:49 -0500

MCornelis gravatar image

I have no experience with using ROS2 on windows but the installation guide tells you how to build ROS2 from source: https://index.ros.org/doc/ros2/Instal... I assume the same setup/commands will work for building your packages.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2019-08-29 12:43:32 -0500

Seen: 376 times

Last updated: Aug 30 '19