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.
NvIsaacLinuxJoystickExtension
Reads Joystick input in Linux
nvidia::isaac::LinuxJoystick
Codelet to read a Linux Joystick and publish Joystick state messages.
Parameters:
- name
- lookup_name
- description
- flags
- type
- default
Output channel
tx_joystick_state
The outgoing full state estimation channel
GXF_PARAMETER_FLAGS_NONE
GXF_PARAMETER_TYPE_HANDLE
N/A
- name
- lookup_name
- description
- flags
- type
- default
Size of the deadzone region
deadzone
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
GXF_PARAMETER_FLAGS_NONE
GXF_PARAMETER_TYPE_FLOAT64
N/A
- name
- lookup_name
- description
- flags
- type
- default
Number of joystick axesNumber of joystick axes (e.g., 4 axes might correspond to two 2-axis analogue sticks)
num_axes
N/A
GXF_PARAMETER_FLAGS_NONE
GXF_PARAMETER_TYPE_INT32
N/A
- name
- lookup_name
- description
- flags
- type
- default
Number of joystick buttons
num_buttons
N/A
GXF_PARAMETER_FLAGS_NONE
GXF_PARAMETER_TYPE_INT32
N/A
- name
- lookup_name
- description
- flags
- type
- default
Joystick Device File Path
device
N/A
GXF_PARAMETER_FLAGS_NONE
GXF_PARAMETER_TYPE_STRING
N/A
- name
- lookup_name
- description
- flags
- type
- default
Publish empty state when disconnected
publish_empty_state_when_disconnected
If true will publish an empty joystick state (all values set to 0) if the joystick is disconnected.
GXF_PARAMETER_FLAGS_NONE
GXF_PARAMETER_TYPE_BOOL
True
nvidia::isaac::JoystickState
Message type for the Joystick state
Parameters: