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

You are free to use whatever mix of source and debian installs you like, as long as you are meeting dependencies and sourcing the packages as appropriate. The caveat being that apt may try to install the debian versions of dependencies that you've already installed through your source build. To my knowledge, the only consequence is using a bit more disk space. You can "overlay" your source build of ROS2 to give it priority, so that your system knows to use the source version of, say, rclcpp instead of the one that was installed through apt.

In your case, deciding whether to use apt (debian) or source installation, you should ask yourself whether you will want to change the packages. If yes, then go with source so you can rebuild when you add modifications. If no, then install the debians directly - this will be faster and lighter weight.

If you do end up installing from source, it is generally advised to create a new workspace for the packages you want to work with that can "overlay" your core ROS2 installation. That way, your install and build directories are isolated and it is faster to rebuild if you happen to break something. You can have multiple over/underlays too, so it can even be worth having separate workspaces for "large" packages that can take a long time to build (e.g. MoveIt2, Nav2).