Merge branch '109-nix-jazzy' into patch/75dfaee

This commit is contained in:
Игорь Брылёв 2024-10-31 17:44:26 +03:00
commit 807f108f18
38 changed files with 862 additions and 62 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ ref
*.vscode
**/tensorboard_logs/**
**/logs/**
result

24
behaviortree-ros2.nix Normal file
View file

@ -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 ];
};
}

24
btcpp-ros2-interfaces.nix Normal file
View file

@ -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 ];
};
}

24
btcpp-ros2-samples.nix Normal file
View file

@ -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 ];
};
}

25
dynmsg-demo.nix Normal file
View file

@ -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 ];
};
}

25
dynmsg-msgs.nix Normal file
View file

@ -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 ];
};
}

25
dynmsg.nix Normal file
View file

@ -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 ];
};
}

View file

@ -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 ];
};
}

21
env-manager.nix Normal file
View file

@ -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 ];
};
}

83
flake.lock generated Normal file
View file

@ -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
}

105
flake.nix Normal file
View file

@ -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=" ];
};
}

30
overlay.nix Normal file
View file

@ -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 {};
}

24
rbs-arm.nix Normal file
View file

@ -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 ];
};
}

24
rbs-bringup.nix Normal file
View file

@ -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" ];
};
}

24
rbs-bt-executor.nix Normal file
View file

@ -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" ];
};
}

23
rbs-gripper.nix Normal file
View file

@ -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 ];
};
}

21
rbs-gym.nix Normal file
View file

@ -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 ];
};
}

24
rbs-perception.nix Normal file
View file

@ -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 ];
};
}

21
rbs-runtime.nix Normal file
View file

@ -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 ];
};
}

24
rbs-simulation.nix Normal file
View file

@ -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" ];
};
}

24
rbs-skill-interfaces.nix Normal file
View file

@ -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 ];
};
}

24
rbs-skill-servers.nix Normal file
View file

@ -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 ];
};
}

24
rbs-task-planner.nix Normal file
View file

@ -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 ];
};
}

23
rbs-utils-interfaces.nix Normal file
View file

@ -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 ];
};
}

24
rbs-utils.nix Normal file
View file

@ -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 ];
};
}

View file

@ -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");

View file

@ -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);
}

View file

@ -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());
}

24
rbss-movetopose.nix Normal file
View file

@ -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 ];
};
}

24
rbss-objectdetection.nix Normal file
View file

@ -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 ];
};
}

24
rbss-poseestimation.nix Normal file
View file

@ -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 ];
};
}

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

22
robonomics.nix Normal file
View file

@ -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" ];
};
}

21
robot-builder.nix Normal file
View file

@ -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 ];
};
}

25
test-dynmsg.nix Normal file
View file

@ -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 ];
};
}