1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-13 13:40:32 +03:00
ROS overlay for the Nix package manager
Find a file
2019-08-30 00:44:11 -04:00
build-env buildEnv: automatically run setup hooks of packages in environment 2019-05-12 19:35:48 -04:00
build-ros-package Make catkin propagate cmake. 2019-05-12 19:37:25 -04:00
catkin-pkg pythonPackages.catkin-pkg: 0.4.12 -> 0.4.13 2019-08-30 00:25:23 -04:00
catkin-setup-hook catkin-setup-hook: fix env hook loading when packages don't have any 2019-04-07 20:53:35 -04:00
empy Basic ROS deps. 2019-03-11 22:15:02 -04:00
examples Cleanup example more. 2019-05-12 20:27:24 -04:00
kinetic regenerate ros-kinetic, Fri Aug 30 00:15:52 2019 2019-08-30 00:15:52 -04:00
lunar regenerate ros-lunar, Fri Aug 30 00:11:06 2019 2019-08-30 00:11:06 -04:00
melodic regenerate ros-melodic, Fri Aug 30 00:06:27 2019 2019-08-30 00:06:28 -04:00
openni2 openni2: use stable URL and add meta 2019-08-30 00:33:05 -04:00
rosdep rosdep: 0.15.1 -> 0.15.2 2019-08-03 13:48:40 -04:00
rosdistro rosdistro: 0.7.2 -> 0.7.4 2019-04-26 17:20:54 -04:00
rosinstall pythonPackages.rosinstall: add maintainer 2019-08-30 00:38:19 -04:00
rosinstall-generator pythonPackages.rosinstall-generator: 0.1.16 -> 0.1.17 2019-08-30 00:38:40 -04:00
rospkg pythonPackages.rospkg: fix unquoted URL 2019-08-30 00:43:08 -04:00
vcstools pythonPackages.vcstools: 0.1.40 -> 0.1.42 2019-08-30 00:44:11 -04:00
wstool More fixes for packages and basic buildEnv 2019-04-06 01:48:14 -04:00
.gitignore Fix rviz. 2019-04-06 16:26:04 -04:00
base.nix More fixes for packages and basic buildEnv 2019-04-06 01:48:14 -04:00
default.nix Allow more arguments to default.nix 2019-04-27 01:28:37 -04:00
distro-overlay.nix Remove merged microstrain-3dmgx2-imu patch. 2019-08-04 11:46:44 -04:00
distros.nix Don't use Python 3 for melodic, it causes too many problems. 2019-05-19 02:36:22 -04:00
gazebo-ros-setup-hook.sh Fix Gazebo plugin loading. 2019-05-12 19:09:30 -04:00
mk-overlay.nix Cleanup overlays. 2019-04-16 15:02:56 -04:00
overlay.nix Cleanup overlays. 2019-04-16 15:02:56 -04:00
README.md Fix README. 2019-05-31 01:47:54 -04:00
release.nix Remove uncessary attrs from release. 2019-04-06 12:41:20 -04:00

ROS overlay for the Nix package manager

Easily install the Robot Operating System (ROS) on any Linux distribution

Want to use ROS, but don't want to run Ubuntu? This project uses the power of Nix make to it possible to develop and run ROS packages in the same way on any Linux machine.

Nix is a distro agnostic package manager that uses a purely functional programming language to reliably and reproducibly build software. These qualities have the potential to make it one of the easiest ways to run ROS on any machine, no matter the operating system.

This overlay is still experimental, so you may encounter some issues. Feel free to file a bug.

Setup

  1. Install Nix: https://nixos.org/nix/download.html
  2. (Optional) configure Nix to use my ROS binary cache
  3. Try one of the examples

Examples

Turtlebot 3 simulation in Gazebo:

nix-shell \
  -I nixpkgs=https://github.com/lopsided98/nixpkgs/archive/nix-ros.tar.gz \
  -I nix-ros-overlay=https://github.com/lopsided98/nix-ros-overlay/archive/master.tar.gz \
  --option extra-substituters 'https://hydra.benwolsieffer.com/' \
  --option trusted-public-keys 'nix-cache.benwolsieffer.com-1:fv34TjwD6LKli0BqclR4wRjj21WUry4eaXuaStzvpeI= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=' '<nix-ros-overlay/examples/turtlebot3-gazebo.nix>'
export TURTLEBOT3_MODEL=burger
# If not on NixOS, nixGL (https://github.com/guibou/nixGL) is needed for OpenGL support
roslaunch turtlebot3_gazebo turtlebot3_world.launch
# Spawn a new nix-shell in a new terminal and then:
roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch

Current status

What works:

  1. More than 1700 packages successfully built for ROS Kinetic
  2. Fully functional ROS development environment using nix-shell
  3. Automated generation of Nix package definitions using standard ROS tools (superflore)

What still needs to be done:

  1. Automatically update packages on a regular basis
  2. Upstream changes to nixpkgs and ROS tools
  3. Test on more Linux distributions
  4. aarch64 binary cache
  5. macOS support

Configure Binary Cache

Prebuilt ROS packages are hosted on my Hydra build server. Nix can be configured to download packages from this server, which eliminates the need to build the packages from source.

Warning: Adding this binary cache requires you to trust that my build server will not tamper with the prebuilt packages. Also, note that this server also builds packages for all my NixOS systems, so it is possible that some non-ROS related packages will be downloaded from it as well.

To use this binary cache, set the following options in nix.conf:

substituters = https://cache.nixos.org/ https://hydra.benwolsieffer.com/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-cache.benwolsieffer.com-1:fv34TjwD6LKli0BqclR4wRjj21WUry4eaXuaStzvpeI=