nix-ros-overlay/examples/ros2-basic.nix
Michal Sojka 21a6dbee67 Update ros2-basic example to include ros-core and colcon
Previously, ros-core was not included presumably due to its dependency
on ros2doctor, which depended on ifcfg package unavailable in nixpkgs.
Since ros2cli version 0.17.0 (2022-01-25) ifcfg is no longer necessary
as it was replaced by psutils [1]. This means that we can use ros-core
without problems instead of manually specifying its dependencies such
ros-environment, ros2topic, etc.

In addition to ros-core, colcon is a basic tool for ROS 2. Include it
in the example too.

[1]: cc5d6b1f9b
2023-06-18 22:58:40 -04:00

17 lines
250 B
Nix
Executable file

# Environment containing basic ROS2 tools
{ pkgs ? import ../. {} }:
with pkgs;
with rosPackages.humble;
mkShell {
nativeBuildInputs = [
(buildEnv {
paths = [
ros-core
colcon
geometry-msgs
];
})
];
}