Refactor examples to allow passing pkgs as an argument

This will be useful in the next commit, where we integrate the example
into flake.nix.
This commit is contained in:
Michal Sojka 2023-03-31 15:55:46 +02:00 committed by Ben Wolsieffer
parent af531ba974
commit 4e05a1caca
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,7 @@
# Environment containing basic ROS2 tools
with import ../. {};
{ pkgs ? import ../. {} }:
with pkgs;
with rosPackages.humble;
mkShell {

View file

@ -2,7 +2,8 @@
# roslaunch turtlebot3_gazebo turtlebot3_world.launch
# roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
with import ../. {};
{ pkgs ? import ../. {} }:
with pkgs;
with rosPackages.noetic;
with pythonPackages;