Forums Niryo One How to… Joystick control

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • FindingNiryo
    Participant
    Post count: 54

    Is there documentation that describes the joystick control (aside from reading joystick_interface.py?)

    Edouard Renard
    Keymaster
    Post count: 152

    Hi,

    For now there is no specific documentation for the joystick control (aside the code itself).

    Some hints that may help you: for the joystick we use the ROS joy package which is a driver package to convert the joystick input into a well formatted ROS message. The node is started inside this ROS launch file.

    As I speak the joystick control only works for Xbox controllers, and to control each joint separately. We might work on that in the future to also make the robot compatible with a Playstation controller, and (not sure yet) add a mode to control the end effector position instead of just the axis.

    andreas.lautenschlager@gmail.com
    Participant
    Post count: 2

    Hi

    Do you connect the Xbox controller via USB or Bluetooth?

    Is there any setup docu?

    Edouard Renard
    Keymaster
    Post count: 152

    Hi Andreas,

    For now you have to connect the Xbox controller via USB.

    There is no documentation for the joystick control, but as you will see it’s very easy. In Niryo One Studio, in the “settings” tab, you have a “enable joystick” checkbox.

    Plug your controller, check this box, disable learning mode, and start moving the arm 🙂

    BManCan
    Participant
    Post count: 23

    Which XBox controllers are compatible with the Niryo One (Xbox 360 or Xbox One)?

    Is it possible to use a USB Logitech game pad?

    Thanks.

    FindingNiryo
    Participant
    Post count: 54

    I use Microsoft Xbox 360 Wired Controller plugged into the USB port.

    http://wiki.ros.org/joy

     

    Edouard Renard
    Keymaster
    Post count: 152

    We have tested with Xbox360 controller, not with other kind of controller yet.

    If anyone has a different kind of joystick at home, please share your result here, thanks ! 🙂

    andreas.lautenschlager@gmail.com
    Participant
    Post count: 2

    I’ve an XBox one Elite controller which does not work, but I need to do some further tests. With “lsusb” I can see that the system detects a Microsoft device. I’ll need to install a test program to see what signals are being received, but I like to enable bluetooth first and connect the device via BT.

    wyojustin
    Participant
    Post count: 16

    Sorry to be so dense, but to what computer do I need to hook up the joystick to? The Niryo One rpi or the computer running Niryo Studio? I have an Xbox controller, but am getting no response from either system.

    Thanks,
    Justin

    BManCan
    Participant
    Post count: 23

    Connect the joystick to the USB port on the Niryo One RPi, and then in Niryo One Studio, on the “settings” tab, you have an “enable joystick” checkbox.

    wyojustin
    Participant
    Post count: 16

    Thanks for the quick reply 🙂 I have the xbox conroller plugged into the Niryo One rpi. The X on the controller, just flashes. It glows solid when plugged into a windows machine.

    When I issue $ ls /dev/input I get this:

    niryo@niryo-pc:~$ ls /dev/input
    by-id by-path event0 js0 miceDriver version is 2.1.0.

    When I issue jstest /dev/input/js0 I get this (and it does not change)

    Joystick (Generic X-Box pad) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y)
    and 11 buttons (BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR, ?, ?, ?).
    Testing … (interrupt to exit)
    Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2:-32767 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2:-32767 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2:-32767 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2:-32767 3: 0 4: 0 5:-32767 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2:-32767 3: 0 4: 0 5:-32767 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off Axes: 0: 0 1: 0 2:-32767 3: 0 4: 0 5:-32767 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.