ADD scenario with tiny-process-library
This commit is contained in:
parent
02ca690545
commit
6be62dbefb
1 changed files with 65 additions and 14 deletions
|
@ -1,22 +1,73 @@
|
||||||
# Automatically generated by: ros2nix --distro jazzy --output-dir repos/nix --output-as-nix-pkg-name --fetch
|
# Automatically generated by: ros2nix --distro jazzy --flake --license Apache-2.0
|
||||||
{ lib, buildRosPackage, fetchgit, ament-cmake, gz-math-vendor, gz-msgs-vendor, gz-sim-vendor, gz-transport-vendor }:
|
|
||||||
|
# Copyright 2025 None
|
||||||
|
# Distributed under the terms of the Apache-2.0 license
|
||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
git,
|
||||||
|
swig,
|
||||||
|
cmake,
|
||||||
|
lib,
|
||||||
|
buildRosPackage,
|
||||||
|
ament-cmake,
|
||||||
|
ament-lint-auto,
|
||||||
|
ament-lint-common,
|
||||||
|
gz-ros2-control,
|
||||||
|
ros-gz-bridge,
|
||||||
|
ros-gz-sim,
|
||||||
|
gym-gz,
|
||||||
|
fetchFromGitLab,
|
||||||
|
fetchgit
|
||||||
|
}: let
|
||||||
|
tiny-process-library = stdenv.mkDerivation rec {
|
||||||
|
pname = "tiny-process-library";
|
||||||
|
version = "2.0.4";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "eidheim";
|
||||||
|
repo = "tiny-process-library";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-ntg0e3Ox5swCoimZG6gwpD2eKKFQx5+vXq77cK+wT1Y=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [cmake git];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A small platform-independent library making it simple to create and stop new processes in C++, as well as writing to stdin and reading from stdout and stderr of a new process";
|
||||||
|
homepage = "https://gitlab.com/eidheim/tiny-process-library";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [];
|
||||||
|
mainProgram = "tiny-process-library";
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
buildRosPackage rec {
|
buildRosPackage rec {
|
||||||
pname = "ros-jazzy-scenario";
|
pname = "ros-jazzy-scenario";
|
||||||
version = "1.5.0";
|
version = "1.4.0";
|
||||||
|
|
||||||
src = fetchgit {
|
src = /home/movefasta/Documents/robossembler/scenario;
|
||||||
url = "rad://z3RBwHLb4j66Q12dwkK1RGQj3ufhi";
|
|
||||||
rev = "cb8227d85455d32fd6df4f931b4ce031c3063007";
|
|
||||||
sha256 = "05110l7l533crkk632mvsz5li5ws3pvh8s2l5j11qsi6qfsx291d";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildType = "ament_cmake";
|
buildType = "ament_cmake";
|
||||||
buildInputs = [ ament-cmake ];
|
checkInputs = [ament-lint-auto ament-lint-common];
|
||||||
propagatedBuildInputs = [ gz-math-vendor gz-msgs-vendor gz-sim-vendor gz-transport-vendor ];
|
propagatedBuildInputs = [ament-cmake swig cmake tiny-process-library gz-ros2-control ros-gz-bridge ros-gz-sim];
|
||||||
nativeBuildInputs = [ament-cmake];
|
nativeBuildInputs = [ament-cmake];
|
||||||
|
|
||||||
meta = {
|
cmakeFlags = [
|
||||||
description = "TODO: Package description";
|
"-DSCENARIO_USE_GAZEBO=ON"
|
||||||
license = with lib.licenses; [ asl20 ];
|
"-DSCENARIO_BUILD_SHARED_LIBRARY=OFF"
|
||||||
|
"-DSCENARIO_USE_SYSTEM_TPL=ON"
|
||||||
|
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
|
||||||
|
"-DSCENARIO_ENABLE_BINDINGS=ON"
|
||||||
|
"-DSCENARIO_BINDINGS_USE_ROS=ON"
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
export GZ_SIM_SYSTEM_PLUGIN_PATH=${gz-ros2-control}/lib:$out/lib:$LD_LIBRARY_PATH
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "ROS 2 Jazzy Scenario package";
|
||||||
|
homepage = "https://gym-gz.pages.dev/";
|
||||||
|
license = licenses.lgpl21Plus;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue