Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add joystick permission setting instructions for ROS2 #131

Open
Achllle opened this issue Mar 27, 2021 · 1 comment
Open

Add joystick permission setting instructions for ROS2 #131

Achllle opened this issue Mar 27, 2021 · 1 comment
Assignees
Labels
documentation foxy ROS2 Foxy Fitzroy

Comments

@Achllle
Copy link
Collaborator

Achllle commented Mar 27, 2021

input group option

add $USER to input

modify dev permissions directly

  1. ls -l /dev/input/*
  2. chmod a+rw /dev/input/event0 or whatever corresponds to the event joystick
  3. make a udev rule like KERNEL=="event[0-9]*", ATTRS{idVendor}=="045e", MODE:="0666", SYMLINK+="xbox"
@apollokit
Copy link
Collaborator

apollokit commented Mar 27, 2021

Or maybe a better option: just add the user to the input group: sudo adduser ubuntu input (and then log out/in again)

The reason why is we need access to /dev/input/event*, in addition to the js* devices. The event* are in the input group by default.

(all credit to @Achllle for debugging this with me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation foxy ROS2 Foxy Fitzroy
Projects
None yet
Development

No branches or pull requests

2 participants