I get weird joystick msg
Recently I ran the joystick package, and I got a completely new message as below.
header:
seq: 229
stamp:
secs: 1517251287
nsecs: 802832704
frame_id: ''
axes: [-0.0, -0.17600023746490479, -0.0]
buttons: []
Before this, axes was a list of size 10, and buttons a list of size 17. Could it be that the update has been made? Or does it have to do with configuring the Linux interface to the joystick? (I am using the PlayStation 3 and Ubuntu 16.04). I removed and reinstalled the package, but still got the same message.
Also, I tried to change the port from /dev/input/js0
to /dev/input/js1
. After rebooting the machine, the port changed back to /dev/input/js0
. Any advice on this?
Thank you.
Do you have multiple joysticks (or a hdd with a accelerometer)? What is the output of
ls -al /dev/input
?i got js0 and js1
Do you know what both of those are? I assume one of them is your PS3 joystick, but what is the other?
Try to see if you have a hdd/ssd or some other built-in/embedded accelerometer. That could be enumerated first by the kernel and get
js0
.I have a similar problem with DualShock2 after upgrading Ubuntu. this is not related to the ROS. at the moment I use https://github.com/chrippa/ds4drv , this complicates things.
Is there a Debian/Ubuntu bug report you could link to? Any other information? Kernel upgrade?
I need to check with my team as to what updates or fixes have been made. In the meantime, I wanted to change the port to
/dev/input/js1
usingrosparam
command (e.g.rosparam set /joy_node/input "/dev/input/js1"
). But after reboot, it changed back tojs0
. Any idea on this?