Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ in
;

inherit (pkgs) panda-prosthesis mc-force-shoe-plugin sphinx-cmake;

# Tools
inherit (pkgs) mc-robot-tools;
}
(lib.optionalAttrs (cfg.with-ros || superbuildCfg.withRos) {
inherit (pkgs) mc-rtc-ticker;
Expand Down
8 changes: 8 additions & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@

sphinx-cmake = prev.callPackage ./pkgs/sphinx-cmake.nix { };

##########
# TOOLS #
##########
mc-robot-tools = prev.callPackage ./pkgs/mc-rtc/tools/mc-robot-tools.nix { };

##########
# PYTHON #
##########
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
(
python-final: _python-prev:
Expand Down
55 changes: 55 additions & 0 deletions pkgs/mc-rtc/tools/mc-robot-tools.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
stdenv,
lib,
fetchFromGitHub,
cmake,
xacro,
mc-rtc,
mesh-sampling,
with-bota-sensor ? false, # missing bota_driver
with-ds4 ? true, # ok
with-plate ? true, # ok
with-realsense-camera ? true, # ok
# missing robotiq_gripper https://github.com/PickNikRobotics/ros2_robotiq_gripper
with-robotiq-gripper ? false,
with-screw ? true,
}:

stdenv.mkDerivation {
pname = "mc-robot-tools";
version = "0.0.0";

src = fetchFromGitHub {
owner = "isri-aist";
repo = "mc_robot_tools";
rev = "1c4c9ce4da400e48975fa491f27ff3fba2688fb9";
hash = "sha256-91jH8Xx8C/vUFr7qwunHL49P11CEP/SslRLH8NVHySM=";
};

nativeBuildInputs = [
cmake
xacro
];
propagatedBuildInputs = [
mc-rtc
mesh-sampling
];

cmakeFlags = [
(lib.cmakeBool "WITH_BOTA_SENSOR" with-bota-sensor)
(lib.cmakeBool "WITH_DS4" with-ds4)
(lib.cmakeBool "WITH_PLATE" with-plate)
(lib.cmakeBool "WITH_REALSENSE_CAMERA" with-realsense-camera)
(lib.cmakeBool "WITH_ROBOTIQ_GRIPPER" with-robotiq-gripper)
(lib.cmakeBool "WITH_SCREW" with-screw)
];

doCheck = false;

meta = with lib; {
description = "All tool modules with mc-rtc framework";
homepage = "https://github.com/isri-aist/mc_robot_tools";
license = licenses.bsd2;
platforms = platforms.all;
};
}
Loading