Linux Joystick

The Linux Joystick component provides a wrapper to use a linux joystick with GXF. This allows to use a linux joystick to remote control a robot. For example, this can be done with the Robot Remote Control.

None

  • Joystick State: A message containing the state of the joystick, ie. boolean flags for the buttons, and floating point numbers for displacement of the joystick axes.

flowchart LR JS[Linux Joystick] --> |Joystick State| OUT:::hidden

NvIsaacLinuxJoystickExtension

Reads Joystick input in Linux

nvidia::isaac::LinuxJoystick

Codelet to read a Linux Joystick and publish Joystick state messages.

Parameters:

name

Output channel

lookup_name

tx_joystick_state

description

The outgoing full state estimation channel

flags

GXF_PARAMETER_FLAGS_NONE

type

GXF_PARAMETER_TYPE_HANDLE

default

N/A

name

Size of the deadzone region

lookup_name

deadzone

description

For example, a deadzone of 0.05 will result in joystick readings in the range [-0.05, 0.05] being clamped to zero. Readings outside of this range are rescaled to fully cover [-1, 1]. In other words, the range [0.05, 1] is linearly mapped to [0, 1], and likewise for negative values

flags

GXF_PARAMETER_FLAGS_NONE

type

GXF_PARAMETER_TYPE_FLOAT64

default

N/A

name

Number of joystick axesNumber of joystick axes (e.g., 4 axes might correspond to two 2-axis analogue sticks)

lookup_name

num_axes

description

N/A

flags

GXF_PARAMETER_FLAGS_NONE

type

GXF_PARAMETER_TYPE_INT32

default

N/A

name

Number of joystick buttons

lookup_name

num_buttons

description

N/A

flags

GXF_PARAMETER_FLAGS_NONE

type

GXF_PARAMETER_TYPE_INT32

default

N/A

name

Joystick Device File Path

lookup_name

device

description

N/A

flags

GXF_PARAMETER_FLAGS_NONE

type

GXF_PARAMETER_TYPE_STRING

default

N/A

name

Publish empty state when disconnected

lookup_name

publish_empty_state_when_disconnected

description

If true will publish an empty joystick state (all values set to 0) if the joystick is disconnected.

flags

GXF_PARAMETER_FLAGS_NONE

type

GXF_PARAMETER_TYPE_BOOL

default

True

nvidia::isaac::JoystickState

Message type for the Joystick state

Parameters:

© Copyright 2018-2023, NVIDIA Corporation. Last updated on Oct 23, 2023.