Joystick

It is easy to use a Playstation joystick to control robots running the Isaac SDK, but other controllers can also be used.

Calibrate your Playstation joystick with the following steps.

  1. Install the joystick calibration program with the following command:

    Copy
    Copied!
                

    sudo apt-get install joystick

  2. Pair the joystick as a Bluetooth peripheral.

  3. Run the calibration program with the following command:

    Copy
    Copied!
                

    jstest-gtk

  4. Find your joystick and note the device ID for later.

  5. Select your joystick and click Properties.

  6. Click Calibration and follow the instructions.

  7. Store the calibration with the following command:

    Copy
    Copied!
                

    sudo jscal-store /dev/input/js0

If you are not using a PlayStation joystick, your keys may be mapped differently.

  1. To remap, if needed, run the following command on the robot:

    Copy
    Copied!
                

    bob@jetson:~/$ sudo apt install jstest-gtk

  2. Run the jstest-gtk application and double click on your joystick in the interface, similar to what is shown below:

    joystick1.png

  3. Use the buttons and other controls on your joystick to determine which of them trigger which controls in this interface:

    joystick2.png

    Click mapping to remap controls. Or, in isaac.navigation.RobotRemoteControl, update manual_button, autonomous_button, move_axes, and rotate_axes values as desired. for more information, see Component API Overview.

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