diff --git a/.gitignore b/.gitignore index f42d19d..ed826f1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ ref *.vscode **/tensorboard_logs/** **/logs/** +result \ No newline at end of file diff --git a/behaviortree-ros2.nix b/behaviortree-ros2.nix new file mode 100644 index 0000000..e84ca22 --- /dev/null +++ b/behaviortree-ros2.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, ament-cmake, behaviortree-cpp, boost, btcpp-ros2-interfaces, fmt, generate-parameter-library, rclcpp, rclcpp-action }: +buildRosPackage rec { + pname = "ros-jazzy-behaviortree-ros2"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "BehaviorTree"; + repo = "BehaviorTree.ROS2"; + rev = "cc31ea7b97947f1aac6e8c37df6cec379c84a7d9"; + sha256 = "0m0n85jab14rfssyjf9sf05rq1rdzs6kqwb467953f26bvcnckkh"; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/behaviortree_ros2/"; + buildInputs = [ ament-cmake ]; + propagatedBuildInputs = [ behaviortree-cpp boost btcpp-ros2-interfaces fmt generate-parameter-library rclcpp rclcpp-action ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "This package provides a ROS2 wrapper, on top of BehaviorTree.CPP."; + license = with lib.licenses; [ mit ]; + }; +} diff --git a/btcpp-ros2-interfaces.nix b/btcpp-ros2-interfaces.nix new file mode 100644 index 0000000..eb25d17 --- /dev/null +++ b/btcpp-ros2-interfaces.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, action-msgs, ament-cmake, rosidl-default-generators, rosidl-default-runtime }: +buildRosPackage rec { + pname = "ros-jazzy-btcpp-ros2-interfaces"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "BehaviorTree"; + repo = "BehaviorTree.ROS2"; + rev = "cc31ea7b97947f1aac6e8c37df6cec379c84a7d9"; + sha256 = "0m0n85jab14rfssyjf9sf05rq1rdzs6kqwb467953f26bvcnckkh"; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/btcpp_ros2_interfaces/"; + buildInputs = [ ament-cmake rosidl-default-generators ]; + propagatedBuildInputs = [ action-msgs rosidl-default-runtime ]; + nativeBuildInputs = [ ament-cmake rosidl-default-generators ]; + + meta = { + description = "ROS2 interfaces, mostly used to demonstrate behaviortree_ros2"; + license = with lib.licenses; [ mit ]; + }; +} diff --git a/btcpp-ros2-samples.nix b/btcpp-ros2-samples.nix new file mode 100644 index 0000000..bc2c4fd --- /dev/null +++ b/btcpp-ros2-samples.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, ament-cmake, behaviortree-ros2, btcpp-ros2-interfaces, std-msgs, std-srvs }: +buildRosPackage rec { + pname = "ros-jazzy-btcpp-ros2-samples"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "BehaviorTree"; + repo = "BehaviorTree.ROS2"; + rev = "cc31ea7b97947f1aac6e8c37df6cec379c84a7d9"; + sha256 = "0m0n85jab14rfssyjf9sf05rq1rdzs6kqwb467953f26bvcnckkh"; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/btcpp_ros2_samples/"; + buildInputs = [ ament-cmake ]; + propagatedBuildInputs = [ behaviortree-ros2 btcpp-ros2-interfaces std-msgs std-srvs ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "Examples related to behaviortree_ros2"; + license = with lib.licenses; [ mit ]; + }; +} diff --git a/dynmsg-demo.nix b/dynmsg-demo.nix new file mode 100644 index 0000000..36275f0 --- /dev/null +++ b/dynmsg-demo.nix @@ -0,0 +1,25 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, ament-cmake, ament-lint-auto, ament-lint-common, dynmsg, dynmsg-msgs, example-interfaces, geometry-msgs, rcl, rcl-action, std-msgs, test-msgs, yaml-cpp-vendor }: +buildRosPackage rec { + pname = "ros-jazzy-dynmsg-demo"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "osrf"; + repo = "dynamic_message_introspection"; + rev = "50277e341f61455c42a6015b5718804a4f8588f6"; + sha256 = "1kayqlmgpzz6lg4sfv6hlm1ak0jhmgqlarbj9wk3206as5iwhbhd"; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/dynmsg_demo/"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-lint-auto ament-lint-common dynmsg-msgs example-interfaces geometry-msgs std-msgs test-msgs ]; + propagatedBuildInputs = [ dynmsg rcl rcl-action yaml-cpp-vendor ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "Demo of dynamic message type loading"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/dynmsg-msgs.nix b/dynmsg-msgs.nix new file mode 100644 index 0000000..1f812da --- /dev/null +++ b/dynmsg-msgs.nix @@ -0,0 +1,25 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, ament-cmake, ament-lint-auto, ament-lint-common, rosidl-default-generators, rosidl-default-runtime }: +buildRosPackage rec { + pname = "ros-jazzy-dynmsg-msgs"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "osrf"; + repo = "dynamic_message_introspection"; + rev = "50277e341f61455c42a6015b5718804a4f8588f6"; + sha256 = "1kayqlmgpzz6lg4sfv6hlm1ak0jhmgqlarbj9wk3206as5iwhbhd"; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/dynmsg_msgs/"; + buildInputs = [ ament-cmake rosidl-default-generators ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ rosidl-default-runtime ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "Test messages for dynamic message type loading"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/dynmsg.nix b/dynmsg.nix new file mode 100644 index 0000000..0a5c0c1 --- /dev/null +++ b/dynmsg.nix @@ -0,0 +1,25 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, ament-cmake, ament-cmake-gtest, ament-lint-auto, ament-lint-common, rcutils, rosidl-runtime-c, rosidl-runtime-cpp, rosidl-typesupport-introspection-c, rosidl-typesupport-introspection-cpp, std-msgs, yaml-cpp-vendor }: +buildRosPackage rec { + pname = "ros-jazzy-dynmsg"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "osrf"; + repo = "dynamic_message_introspection"; + rev = "50277e341f61455c42a6015b5718804a4f8588f6"; + sha256 = "1kayqlmgpzz6lg4sfv6hlm1ak0jhmgqlarbj9wk3206as5iwhbhd"; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/dynmsg/"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-cmake-gtest ament-lint-auto ament-lint-common std-msgs ]; + propagatedBuildInputs = [ rcutils rosidl-runtime-c rosidl-runtime-cpp rosidl-typesupport-introspection-c rosidl-typesupport-introspection-cpp yaml-cpp-vendor ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "Introspection tools for message to/from YAML conversions"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/env-manager-interfaces.nix b/env-manager-interfaces.nix new file mode 100644 index 0000000..6ab2896 --- /dev/null +++ b/env-manager-interfaces.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-lint-auto, ament-lint-common, builtin-interfaces, lifecycle-msgs, rosidl-default-generators, rosidl-default-runtime }: +buildRosPackage rec { + pname = "ros-jazzy-env-manager-interfaces"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/env_manager/env_manager_interfaces/"; + buildInputs = [ ament-cmake rosidl-default-generators ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ builtin-interfaces lifecycle-msgs rosidl-default-runtime ]; + nativeBuildInputs = [ ament-cmake rosidl-default-generators ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/env-manager.nix b/env-manager.nix new file mode 100644 index 0000000..c0fb6e4 --- /dev/null +++ b/env-manager.nix @@ -0,0 +1,21 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-copyright, ament-flake8, ament-pep257, pythonPackages }: +buildRosPackage rec { + pname = "ros-jazzy-env-manager"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_python"; + sourceRoot = "${src.name}/env_manager/env_manager/"; + checkInputs = [ ament-copyright ament-flake8 ament-pep257 pythonPackages.pytest ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..f4bb899 --- /dev/null +++ b/flake.lock @@ -0,0 +1,83 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1726560853, + "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nix-ros-overlay": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1729864786, + "narHash": "sha256-t5SEhqRoK0HYxywgNCnXSUsLdsKKSkIUt1a4D5YHQEo=", + "ref": "refs/heads/moveit-osqp-overrides", + "rev": "72f93c1f458fc978cfb32c417a7ff0c223524668", + "revCount": 1020, + "type": "git", + "url": "file:///home/movefasta/Documents/robossembler/nix-ros-overlay" + }, + "original": { + "type": "git", + "url": "file:///home/movefasta/Documents/robossembler/nix-ros-overlay" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1726243404, + "narHash": "sha256-sjiGsMh+1cWXb53Tecsm4skyFNag33GPbVgCdfj3n9I=", + "owner": "lopsided98", + "repo": "nixpkgs", + "rev": "345c263f2f53a3710abe117f28a5cb86d0ba4059", + "type": "github" + }, + "original": { + "owner": "lopsided98", + "ref": "nix-ros", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nix-ros-overlay": "nix-ros-overlay", + "nixpkgs": [ + "nix-ros-overlay", + "nixpkgs" + ] + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2d5f336 --- /dev/null +++ b/flake.nix @@ -0,0 +1,105 @@ + +{ + inputs = { + nix-ros-overlay.url = "github:lopsided98/nix-ros-overlay/develop"; + nixpkgs.follows = "nix-ros-overlay/nixpkgs"; # IMPORTANT!!! + }; + outputs = { self, nix-ros-overlay, nixpkgs }: + nix-ros-overlay.inputs.flake-utils.lib.eachDefaultSystem (system: + let + applyDistroOverlay = + rosOverlay: rosPackages: + rosPackages + // builtins.mapAttrs ( + rosDistro: rosPkgs: if rosPkgs ? overrideScope then rosPkgs.overrideScope rosOverlay else rosPkgs + ) rosPackages; + rosDistroOverlays = self: super: { + # Apply the overlay to multiple ROS distributions + rosPackages = applyDistroOverlay (import ./overlay.nix) super.rosPackages; + }; + pkgs = import nixpkgs { + inherit system; + overlays = [ + nix-ros-overlay.overlays.default + rosDistroOverlays + ]; + config.permittedInsecurePackages = [ + "freeimage-unstable-2021-11-01" + ]; + }; + + rosDistro = "jazzy"; + + in { + legacyPackages = pkgs.rosPackages; + packages = builtins.intersectAttrs (import ./overlay.nix null null) pkgs.rosPackages.${rosDistro}; + checks = builtins.intersectAttrs (import ./overlay.nix null null) pkgs.rosPackages.${rosDistro}; + devShells.default = pkgs.mkShell { + name = "Example project"; + shellHook = '' + unset QT_QPA_PLATFORM + ''; + packages = [ + pkgs.colcon + # ... other non-ROS packages + (with pkgs.rosPackages.${rosDistro}; buildEnv { + paths = [ + ros-core + behaviortree-ros2 + btcpp-ros2-interfaces + btcpp-ros2-samples + dynmsg + dynmsg-msgs + env-manager + env-manager-interfaces + rbs-arm + rbs-bringup + rbs-bt-executor + rbs-gripper + rbs-gym + rbs-perception + rbs-runtime + rbs-simulation + rbs-skill-interfaces + rbs-skill-servers + # rbs-task-planner + rbs-utils + rbs-utils-interfaces + rbss-movetopose + rbss-objectdetection + rbss-poseestimation + robonomics + robot-builder + rviz2 + # ... other ROS packages + ] ++ [ + ament-cmake-core + python-cmake-module + + gz-cmake-vendor + gz-common-vendor + gz-dartsim-vendor + gz-fuel-tools-vendor + gz-gui-vendor + gz-launch-vendor + gz-math-vendor + gz-msgs-vendor + gz-ogre-next-vendor + gz-physics-vendor + gz-plugin-vendor + gz-rendering-vendor + gz-sensors-vendor + gz-sim-vendor + gz-tools-vendor + gz-transport-vendor + gz-utils-vendor + ]; + }) + ]; + }; + }); + nixConfig = { + extra-substituters = [ "https://ros.cachix.org" ]; + extra-trusted-public-keys = [ "ros.cachix.org-1:dSyZxI8geDCJrwgvCOHDoAfOm5sV1wCPjBkKL+38Rvo=" ]; + }; +} diff --git a/overlay.nix b/overlay.nix new file mode 100644 index 0000000..99c965d --- /dev/null +++ b/overlay.nix @@ -0,0 +1,30 @@ +self: super: +{ + behaviortree-ros2 = super.callPackage ./behaviortree-ros2.nix {}; + btcpp-ros2-interfaces = super.callPackage ./btcpp-ros2-interfaces.nix {}; + btcpp-ros2-samples = super.callPackage ./btcpp-ros2-samples.nix {}; + dynmsg = super.callPackage ./dynmsg.nix {}; + # dynmsg-demo = super.callPackage ./dynmsg-demo.nix {}; + dynmsg-msgs = super.callPackage ./dynmsg-msgs.nix {}; + env-manager = super.callPackage ./env-manager.nix {}; + env-manager-interfaces = super.callPackage ./env-manager-interfaces.nix {}; + rbs-arm = super.callPackage ./rbs-arm.nix {}; + rbs-bringup = super.callPackage ./rbs-bringup.nix {}; + rbs-bt-executor = super.callPackage ./rbs-bt-executor.nix {}; + rbs-gripper = super.callPackage ./rbs-gripper.nix {}; + rbs-gym = super.callPackage ./rbs-gym.nix {}; + rbs-perception = super.callPackage ./rbs-perception.nix {}; + rbs-runtime = super.callPackage ./rbs-runtime.nix {}; + rbs-simulation = super.callPackage ./rbs-simulation.nix {}; + rbs-skill-interfaces = super.callPackage ./rbs-skill-interfaces.nix {}; + rbs-skill-servers = super.callPackage ./rbs-skill-servers.nix {}; + rbs-task-planner = super.callPackage ./rbs-task-planner.nix {}; + rbs-utils = super.callPackage ./rbs-utils.nix {}; + rbs-utils-interfaces = super.callPackage ./rbs-utils-interfaces.nix {}; + rbss-movetopose = super.callPackage ./rbss-movetopose.nix {}; + rbss-objectdetection = super.callPackage ./rbss-objectdetection.nix {}; + rbss-poseestimation = super.callPackage ./rbss-poseestimation.nix {}; + robonomics = super.callPackage ./robonomics.nix {}; + robot-builder = super.callPackage ./robot-builder.nix {}; + test-dynmsg = super.callPackage ./test-dynmsg.nix {}; +} diff --git a/rbs-arm.nix b/rbs-arm.nix new file mode 100644 index 0000000..3572798 --- /dev/null +++ b/rbs-arm.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, ament-cmake, ament-lint-auto, ament-lint-common, joint-trajectory-controller, ros-gz, ros2-control, ros2-controllers }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-arm"; + version = "0.0.0"; + + src = fetchFromGitHub { + owner = "solid-sinusoid"; + repo = "rbs-arm"; + rev = "bc13ea275cffdaa062d225bf3934918a6dbaafb3"; + sha256 = "0f3j8vlshq19qkcxy7fiv9ij3zz70k5lhn4y4184zfr4czdkpmf0"; + }; + + buildType = "ament_cmake"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ joint-trajectory-controller ros-gz ros2-control ros2-controllers ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs-bringup.nix b/rbs-bringup.nix new file mode 100644 index 0000000..90364a6 --- /dev/null +++ b/rbs-bringup.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-lint-auto, ament-lint-common, nav2-common }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-bringup"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbs_bringup/"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ nav2-common ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ "TODO-License-declaration" ]; + }; +} diff --git a/rbs-bt-executor.nix b/rbs-bt-executor.nix new file mode 100644 index 0000000..cdf941f --- /dev/null +++ b/rbs-bt-executor.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-cmake-python, ament-lint-auto, ament-lint-common, behaviortree-cpp, behaviortree-ros2, env-manager-interfaces, rbs-skill-interfaces, rbs-utils, rclpy, moveit-core, moveit-ros-planning, moveit-ros-planning-interface, control-msgs }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-bt-executor"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbs_bt_executor/"; + buildInputs = [ ament-cmake ament-cmake-python ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ behaviortree-cpp behaviortree-ros2 env-manager-interfaces rbs-skill-interfaces rbs-utils rclpy moveit-core moveit-ros-planning moveit-ros-planning-interface control-msgs ]; + nativeBuildInputs = [ ament-cmake ament-cmake-python ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ "TODO-License-declaration" ]; + }; +} diff --git a/rbs-gripper.nix b/rbs-gripper.nix new file mode 100644 index 0000000..11ba38a --- /dev/null +++ b/rbs-gripper.nix @@ -0,0 +1,23 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, ament-cmake, ament-lint-auto, ament-lint-common }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-gripper"; + version = "0.0.0"; + + src = fetchFromGitHub { + owner = "solid-sinusoid"; + repo = "rbs-gripper"; + rev = "d34d28ab88f04bfd981f7f36293d501212795c47"; + sha256 = "0kyjm3q10w55hibypknx9rz69brkp10kdcpl79wwkz2d0fya6d5j"; + }; + + buildType = "ament_cmake"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs-gym.nix b/rbs-gym.nix new file mode 100644 index 0000000..a20abe8 --- /dev/null +++ b/rbs-gym.nix @@ -0,0 +1,21 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-copyright, ament-flake8, ament-pep257, pythonPackages }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-gym"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_python"; + sourceRoot = "${src.name}/env_manager/rbs_gym/"; + checkInputs = [ ament-copyright ament-flake8 ament-pep257 pythonPackages.pytest ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs-perception.nix b/rbs-perception.nix new file mode 100644 index 0000000..bc5bdc6 --- /dev/null +++ b/rbs-perception.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-cmake-python, ament-lint-auto, ament-lint-common, cv-bridge, image-transport, perception-pcl, rbs-skill-interfaces, rclcpp, rclpy, sensor-msgs, std-msgs, tf2-eigen, visualization-msgs }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-perception"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbs_perception/"; + buildInputs = [ ament-cmake ament-cmake-python ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ cv-bridge image-transport perception-pcl rbs-skill-interfaces rclcpp rclpy sensor-msgs std-msgs tf2-eigen visualization-msgs ]; + nativeBuildInputs = [ ament-cmake ament-cmake-python ]; + + meta = { + description = "An node for robot perception"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs-runtime.nix b/rbs-runtime.nix new file mode 100644 index 0000000..44a6645 --- /dev/null +++ b/rbs-runtime.nix @@ -0,0 +1,21 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-copyright, ament-flake8, ament-pep257, pythonPackages }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-runtime"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_python"; + sourceRoot = "${src.name}/env_manager/rbs_runtime/"; + checkInputs = [ ament-copyright ament-flake8 ament-pep257 pythonPackages.pytest ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs-simulation.nix b/rbs-simulation.nix new file mode 100644 index 0000000..e1a4625 --- /dev/null +++ b/rbs-simulation.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-lint-auto, ament-lint-common, geometry-msgs, rclcpp, std-msgs, tf2, tf2-ros }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-simulation"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbs_simulation/"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ geometry-msgs rclcpp std-msgs tf2 tf2-ros ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ "TODO-License-declaration" ]; + }; +} diff --git a/rbs-skill-interfaces.nix b/rbs-skill-interfaces.nix new file mode 100644 index 0000000..54371f7 --- /dev/null +++ b/rbs-skill-interfaces.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-cmake-gtest, ament-lint-auto, ament-lint-common, geometry-msgs, rosidl-default-generators, rosidl-default-runtime, shape-msgs, std-msgs, test-msgs, moveit-msgs }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-skill-interfaces"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbs_skill_interfaces/"; + buildInputs = [ ament-cmake rosidl-default-generators ]; + checkInputs = [ ament-cmake-gtest ament-lint-auto ament-lint-common test-msgs ]; + propagatedBuildInputs = [ geometry-msgs rosidl-default-runtime shape-msgs std-msgs moveit-msgs ]; + nativeBuildInputs = [ ament-cmake rosidl-default-generators ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs-skill-servers.nix b/rbs-skill-servers.nix new file mode 100644 index 0000000..3e5af87 --- /dev/null +++ b/rbs-skill-servers.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, action-msgs, ament-cmake, ament-lint-auto, ament-lint-common, geometric-shapes, geometry-msgs, gz-ros2-control, moveit-core, moveit-msgs, moveit-ros-planning, moveit-ros-planning-interface, rbs-skill-interfaces, rbs-utils, rclcpp, rclcpp-action, tf2-eigen, tf2-ros, yaml-cpp-vendor, sdformat }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-skill-servers"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbs_skill_servers/"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ action-msgs geometric-shapes geometry-msgs gz-ros2-control moveit-core moveit-msgs moveit-ros-planning moveit-ros-planning-interface rbs-skill-interfaces rbs-utils rclcpp rclcpp-action tf2-eigen tf2-ros yaml-cpp-vendor sdformat ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs-task-planner.nix b/rbs-task-planner.nix new file mode 100644 index 0000000..33092f0 --- /dev/null +++ b/rbs-task-planner.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-cmake-gtest, ament-index-cpp, ament-lint-auto, ament-lint-common, behaviortree-ros2, behaviortree-cpp-v3, test-msgs }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-task-planner"; + version = "0.0.1"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbs_task_planner/"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-cmake-gtest ament-lint-auto ament-lint-common test-msgs ]; + propagatedBuildInputs = [ ament-index-cpp behaviortree-ros2 behaviortree-cpp-v3 ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "ROS2 task planner for manipulator"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs-utils-interfaces.nix b/rbs-utils-interfaces.nix new file mode 100644 index 0000000..55e8423 --- /dev/null +++ b/rbs-utils-interfaces.nix @@ -0,0 +1,23 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, rosidl-default-generators, rosidl-default-runtime, geometry-msgs }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-utils-interfaces"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbs_utils/rbs_utils_interfaces/"; + buildInputs = [ ament-cmake rosidl-default-generators geometry-msgs ]; + propagatedBuildInputs = [ rosidl-default-runtime ]; + nativeBuildInputs = [ ament-cmake rosidl-default-generators ]; + + meta = { + description = "Interfaces for read robossembler_db config"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs-utils.nix b/rbs-utils.nix new file mode 100644 index 0000000..fa0a1a8 --- /dev/null +++ b/rbs-utils.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-lint-auto, ament-lint-common, dynmsg, geometry-msgs, rbs-utils-interfaces, rclcpp, rclcpp-lifecycle, rclpy, rosidl-default-generators, rviz-visual-tools, sensor-msgs, std-msgs, tf2-eigen, tf2-ros, rosbag2-cpp, nlohmann_json }: +buildRosPackage rec { + pname = "ros-jazzy-rbs-utils"; + version = "0.0.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbs_utils/rbs_utils/"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ dynmsg geometry-msgs rbs-utils-interfaces rclcpp rclcpp-lifecycle rclpy rosidl-default-generators rviz-visual-tools sensor-msgs std-msgs tf2-eigen tf2-ros rosbag2-cpp nlohmann_json ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbs_skill_servers/src/move_cartesian_path_action_server.cpp b/rbs_skill_servers/src/move_cartesian_path_action_server.cpp index 989c8f9..7b1421b 100644 --- a/rbs_skill_servers/src/move_cartesian_path_action_server.cpp +++ b/rbs_skill_servers/src/move_cartesian_path_action_server.cpp @@ -172,7 +172,7 @@ private: rt.getRobotTrajectoryMsg(trajectory); moveit::planning_interface::MoveGroupInterface::Plan plan; - plan.trajectory_ = trajectory; + plan.trajectory = trajectory; if (fraction > 0) { RCLCPP_INFO(this->get_logger(), "Planning success"); diff --git a/rbs_skill_servers/src/move_topose_action_server.cpp b/rbs_skill_servers/src/move_topose_action_server.cpp index 553bb53..351069e 100644 --- a/rbs_skill_servers/src/move_topose_action_server.cpp +++ b/rbs_skill_servers/src/move_topose_action_server.cpp @@ -143,7 +143,7 @@ private: } else { RCLCPP_WARN_STREAM(this->get_logger(), "Failed to generate plan because " - << error_code_to_string(plan_err_code)); + << moveit::core::errorCodeToString(plan_err_code)); goal_handle->abort(result); } diff --git a/rbs_utils/rbs_utils/src/bagfile_recorder.cpp b/rbs_utils/rbs_utils/src/bagfile_recorder.cpp index 94b9739..91bc779 100644 --- a/rbs_utils/rbs_utils/src/bagfile_recorder.cpp +++ b/rbs_utils/rbs_utils/src/bagfile_recorder.cpp @@ -69,7 +69,7 @@ protected: topics_ = get_list_topics(); for (const auto &topic_name : topics_) { - writer_->create_topic({topic_name, "sensor_msgs/msg/Image", "cdr", ""}); + writer_->create_topic({0u, topic_name, "sensor_msgs/msg/Image", "cdr", {}, ""}); RCLCPP_INFO(this->get_logger(), "Configuring topic: %s", topic_name.c_str()); } diff --git a/rbss-movetopose.nix b/rbss-movetopose.nix new file mode 100644 index 0000000..b489719 --- /dev/null +++ b/rbss-movetopose.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-cmake-python, ament-lint-auto, ament-lint-common, rbs-skill-interfaces, rclcpp, rclpy, std-msgs, pcl-ros, pcl-conversions }: +buildRosPackage rec { + pname = "ros-jazzy-rbss-movetopose"; + version = "0.0.1"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbss_movetopose/"; + buildInputs = [ ament-cmake ament-cmake-python ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ rbs-skill-interfaces rclcpp rclpy std-msgs pcl-ros pcl-conversions ]; + nativeBuildInputs = [ ament-cmake ament-cmake-python ]; + + meta = { + description = "The Move to pose skill"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbss-objectdetection.nix b/rbss-objectdetection.nix new file mode 100644 index 0000000..777cac9 --- /dev/null +++ b/rbss-objectdetection.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-cmake-python, ament-lint-auto, ament-lint-common, cv-bridge, image-transport, rbs-skill-interfaces, rclcpp, rclpy, sensor-msgs, std-msgs, pcl-ros, pcl-conversions, visualization-msgs }: +buildRosPackage rec { + pname = "ros-jazzy-rbss-objectdetection"; + version = "0.0.1"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbss_objectdetection/"; + buildInputs = [ ament-cmake ament-cmake-python ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ cv-bridge image-transport rbs-skill-interfaces rclcpp rclpy sensor-msgs std-msgs pcl-ros pcl-conversions visualization-msgs ]; + nativeBuildInputs = [ ament-cmake ament-cmake-python ]; + + meta = { + description = "The Object Detection skill"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/rbss-poseestimation.nix b/rbss-poseestimation.nix new file mode 100644 index 0000000..77eb8d1 --- /dev/null +++ b/rbss-poseestimation.nix @@ -0,0 +1,24 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-cmake, ament-cmake-python, ament-lint-auto, ament-lint-common, cv-bridge, image-transport, rbs-skill-interfaces, rclpy, sensor-msgs, std-msgs, pcl-ros, pcl-conversions, visualization-msgs }: +buildRosPackage rec { + pname = "ros-jazzy-rbss-poseestimation"; + version = "0.0.1"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/rbss_poseestimation/"; + buildInputs = [ ament-cmake ament-cmake-python ]; + checkInputs = [ ament-lint-auto ament-lint-common ]; + propagatedBuildInputs = [ cv-bridge image-transport rbs-skill-interfaces rclpy sensor-msgs std-msgs pcl-ros pcl-conversions visualization-msgs ]; + nativeBuildInputs = [ ament-cmake ament-cmake-python ]; + + meta = { + description = "The Pose Estimation skill"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/repos/cartesian_controllers.repos b/repos/cartesian_controllers.repos deleted file mode 100644 index 02249ec..0000000 --- a/repos/cartesian_controllers.repos +++ /dev/null @@ -1,13 +0,0 @@ -repositories: - cartesian_controllers: - type: git - url: https://github.com/solid-sinusoid/cartesian_controllers.git - version: gazebo-simulation - ros2_control: - type: git - url: https://github.com/solid-sinusoid/ros2_control.git - version: gz-ros2-cartesian-controllers - gz_ros2_control: - type: git - url: https://github.com/solid-sinusoid/gz_ros2_control.git - version: fts-sensor diff --git a/repos/real.repos b/repos/real.repos deleted file mode 100644 index 7f602de..0000000 --- a/repos/real.repos +++ /dev/null @@ -1,21 +0,0 @@ -repositories: - ur_description: - type: git - url: https://github.com/solid-sinusoid/Universal_Robots_ROS2_Description.git - version: cartesian-controllers - ur_driver: - type: git - url: https://github.com/solid-sinusoid/Universal_Robots_ROS2_Driver.git - version: configure-with-gripper - behavior_tree: - type: git - url: https://github.com/solid-sinusoid/behavior_tree.git - version: master - rbs_schunk_40_n_n_b: - type: git - url: https://gitlab.com/robossembler/arm-tools/urdf-model-shrunk-gripper-egp-40-n-n-b.git - version: 2-add-ros2-control - dynamic_message_introspection: - type: git - url: https://github.com/osrf/dynamic_message_introspection.git - version: main diff --git a/repos/sim.rbs.repos b/repos/sim.rbs.repos index 5966b05..2d5bc22 100644 --- a/repos/sim.rbs.repos +++ b/repos/sim.rbs.repos @@ -19,7 +19,7 @@ repositories: type: git url: https://github.com/osrf/dynamic_message_introspection.git version: main - robot_builder: - type: git - url: https://github.com/solid-sinusoid/robot-builder.git - version: main + # gz_ros2_control: + # type: git + # url: https://github.com/solid-sinusoid/gz_ros2_control.git + # version: fts-sensor \ No newline at end of file diff --git a/repos/sim.ur.repos b/repos/sim.ur.repos deleted file mode 100644 index 2092911..0000000 --- a/repos/sim.ur.repos +++ /dev/null @@ -1,21 +0,0 @@ -repositories: - ur_description: - type: git - url: https://github.com/solid-sinusoid/Universal_Robots_ROS2_Description.git - version: cartesian-controllers - ur_moveit_config: - type: git - url: https://github.com/solid-sinusoid/ur_moveit_config.git - version: dev - behavior_tree: - type: git - url: https://github.com/solid-sinusoid/behavior_tree.git - version: master - rbs_schunk_40_n_n_b: - type: git - url: https://gitlab.com/robossembler/arm-tools/urdf-model-shrunk-gripper-egp-40-n-n-b.git - version: 2-add-ros2-control - dynamic_message_introspection: - type: git - url: https://github.com/osrf/dynamic_message_introspection.git - version: main diff --git a/robonomics.nix b/robonomics.nix new file mode 100644 index 0000000..c1c0db6 --- /dev/null +++ b/robonomics.nix @@ -0,0 +1,22 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchgit, ament-copyright, ament-flake8, ament-pep257, pythonPackages, rclpy }: +buildRosPackage rec { + pname = "ros-jazzy-robonomics"; + version = "0.1.0"; + + src = fetchgit { + url = "https://gitlab.com/robossembler/robossembler-ros2"; + rev = "d6cd0d5601493ad4f4b7c77b7cbc2d62455c8176"; + sha256 = "sha256-oheOuUKGcgpVHZqiSjmuex2ct0G7nFK0nJsIjMeItRo="; + }; + + buildType = "ament_python"; + sourceRoot = "${src.name}/robonomics/"; + checkInputs = [ ament-copyright ament-flake8 ament-pep257 pythonPackages.pytest ]; + propagatedBuildInputs = [ rclpy ]; + + meta = { + description = "Package for Robossember-Robonomics interoperability"; + license = with lib.licenses; [ "Apache-license-2.0" ]; + }; +} diff --git a/robot-builder.nix b/robot-builder.nix new file mode 100644 index 0000000..e604e72 --- /dev/null +++ b/robot-builder.nix @@ -0,0 +1,21 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, ament-copyright, ament-flake8, ament-pep257, pythonPackages }: +buildRosPackage rec { + pname = "ros-jazzy-robot-builder"; + version = "0.0.0"; + + src = fetchFromGitHub { + owner = "solid-sinusoid"; + repo = "robot-builder"; + rev = "5f02b5868047767df2ab8f4bc026fe40a420e94d"; + sha256 = "08wi1lk584r6nm9j169rg7d944wp167xk5aw0x5b1smbqnsgcdq5"; + }; + + buildType = "ament_python"; + checkInputs = [ ament-copyright ament-flake8 ament-pep257 pythonPackages.pytest ]; + + meta = { + description = "TODO: Package description"; + license = with lib.licenses; [ asl20 ]; + }; +} diff --git a/test-dynmsg.nix b/test-dynmsg.nix new file mode 100644 index 0000000..6c7b3ba --- /dev/null +++ b/test-dynmsg.nix @@ -0,0 +1,25 @@ +# Automatically generated by: ros2nix --output-as-nix-pkg-name --fetch --distro jazzy +{ lib, buildRosPackage, fetchFromGitHub, ament-cmake, ament-cmake-gtest, ament-lint-auto, ament-lint-common, builtin-interfaces, dynmsg, rcl-interfaces, std-msgs, test-msgs }: +buildRosPackage rec { + pname = "ros-jazzy-test-dynmsg"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "osrf"; + repo = "dynamic_message_introspection"; + rev = "50277e341f61455c42a6015b5718804a4f8588f6"; + sha256 = "1kayqlmgpzz6lg4sfv6hlm1ak0jhmgqlarbj9wk3206as5iwhbhd"; + }; + + buildType = "ament_cmake"; + sourceRoot = "${src.name}/test_dynmsg/"; + buildInputs = [ ament-cmake ]; + checkInputs = [ ament-cmake-gtest ament-lint-auto ament-lint-common builtin-interfaces rcl-interfaces test-msgs ]; + propagatedBuildInputs = [ dynmsg std-msgs ]; + nativeBuildInputs = [ ament-cmake ]; + + meta = { + description = "Tests for the dynmsg package"; + license = with lib.licenses; [ asl20 ]; + }; +}