2023-06-19 17:15:23 -04:00
|
|
|
|
2024-01-19 13:36:49 +00:00
|
|
|
# Copyright 2024 Open Source Robotics Foundation
|
2023-06-19 17:15:23 -04:00
|
|
|
# Distributed under the terms of the BSD license
|
|
|
|
|
|
|
|
{ lib, buildRosPackage, fetchurl, ament-cmake, ament-lint-auto, ament-lint-common, diagnostic-msgs, diagnostic-updater, rclcpp, sensor-msgs }:
|
|
|
|
buildRosPackage {
|
|
|
|
pname = "ros-iron-joy-linux";
|
2023-11-03 13:39:15 +00:00
|
|
|
version = "3.3.0-r1";
|
2023-06-19 17:15:23 -04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-11-03 13:39:15 +00:00
|
|
|
url = "https://github.com/ros2-gbp/joystick_drivers-release/archive/release/iron/joy_linux/3.3.0-1.tar.gz";
|
|
|
|
name = "3.3.0-1.tar.gz";
|
|
|
|
sha256 = "6269dd3406d57d52bbbbbb5046f4ae8070fd077e18cabe0571bc6e5a296a0416";
|
2023-06-19 17:15:23 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildType = "ament_cmake";
|
|
|
|
buildInputs = [ ament-cmake ];
|
|
|
|
checkInputs = [ ament-lint-auto ament-lint-common ];
|
|
|
|
propagatedBuildInputs = [ diagnostic-msgs diagnostic-updater rclcpp sensor-msgs ];
|
|
|
|
nativeBuildInputs = [ ament-cmake ];
|
|
|
|
|
|
|
|
meta = {
|
2024-03-23 14:09:26 +00:00
|
|
|
description = "ROS2 driver for a generic Linux joystick.
|
2023-06-19 17:15:23 -04:00
|
|
|
Will contain a MacOS and Windows version later.
|
|
|
|
The joy package contains joy_node, a node that interfaces a
|
|
|
|
generic Linux joystick to ROS2. This node publishes a "Joy"
|
|
|
|
message, which contains the current state of each one of the
|
2024-03-23 14:09:26 +00:00
|
|
|
joystick's buttons and axes.";
|
2023-06-19 17:15:23 -04:00
|
|
|
license = with lib.licenses; [ bsdOriginal ];
|
|
|
|
};
|
|
|
|
}
|