nix-ros-overlay/examples/turtlebot3-gazebo.nix
Michal Sojka 4e05a1caca 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.
2023-04-08 14:01:19 -04:00

26 lines
525 B
Nix
Executable file

# Run:
# roslaunch turtlebot3_gazebo turtlebot3_world.launch
# roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
{ pkgs ? import ../. {} }:
with pkgs;
with rosPackages.noetic;
with pythonPackages;
mkShell {
buildInputs = [
glibcLocales
(buildEnv { paths = [
rosbash
turtlebot3-description
turtlebot3-teleop
turtlebot3-gazebo
gazebo-plugins
xacro
]; })
];
ROS_HOSTNAME = "localhost";
ROS_MASTER_URI = "http://localhost:11311";
TURTLEBOT3_MODEL = "burger";
}