ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

[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

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

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

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: I assume the same setup/commands will work for building your packages.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 249 times

Last updated: Aug 30 '19