I tried playerjoy. It seams not to find the joystick. I use Ubuntu 9.04. I tried jscalibrator to make sure that the joystick is found and it seams that Ubuntu does find the joystick. I get the following output:

dn122@dn122-laptop:~/playerExample$ playerjoy
Connecting to Player at localhost:6665 - Success
Failed to open joystick: No such file or directory
Falling back on keyboard controlReading from keyboard
Moving around:
   u    i    o
   j    k    l
   m    ,    .

q/z : increase/decrease max speeds by 10%
w/x : increase/decrease only linear speed by 10%
e/c : increase/decrease only angular speed by 10%

anything else : stop

Could you please give me some hints what to do so that playerjoy find the joystick.



2009/7/24 Richard Vaughan <rtvaughan@gmail.com>
> I try to steer the simulation by a joystick. I know this is possible when
> using Player and Stage by “playerjoy”. But how to do when I only use
> libstage? I couldn't find any class describing a joystick control in
> libstage. Is there something in libstage, which one could use to read the
> joystick information or do I have create something outside of libstage? Also
> here, I would be thankful if someone have done something similar previously
> and could send me an example.

There is no built-in support for joysticks in Stage. As far as I know,
there is not yet a Stage controller that reads joysticks either.
Writing one would be pretty easy - just take my old playerjoy Player
client program and adapt it for Stage.


Richard Vaughan
Autonomy Lab / Computing Science / Simon Fraser University

Playerstage-users mailing list