linuxjoystick

Linux joystick. More...

Linux joystick.

The linuxjoystick driver reads data from a standard Linux joystick and provides the data via the joystick interface. This driver can also control a position2d device by converting joystick positions to velocity commands.

Compile-time dependencies
Provides
Requires
Configuration requests
Configuration file options
driver
(
  name "linuxjoystick"
  provides ["joystick:0"]
  port "/dev/js0"
)

Provide a position2d interface, instead of a joystick interface.

driver
(
  name "linuxjoystick"
  provides ["position2d:0"]
  port "/dev/js0"
  scale_pos [ 0.0001 0.0001 0.0001 ]
)

Controlling a Pioneer, plus remapping joystick axes and setting various limits.

driver
(
  name "p2os"
  provides ["odometry::position:0"]
  port "/dev/usb/tts/0"
)

# 1 m/sec max linear velocity
# 30 deg/sec max angular velocity
# Axis 4 is X
# Axis 3 is Yaw
# Y is not used here
driver
(
  name "linuxjoystick"
  provides ["joystick:0"]
  requires ["odometry::position:0"]
  max_speed [1 0 30]
  axes [4 -1 3]
  axes_minima [5000 0 5000]
  port "/dev/js0"
  alwayson 1
)

Controlling a WizBot in Gazebo, plus remapping joystick axes.

driver
(
  name "gazebo"
  provides ["simulation:0"]
  plugin "libgazeboplugin"
  server_id "default"
)

driver
(
  name "gazebo"
  provides ["position2d:0"]
  gz_id "position_iface_0"
)

# 0.5 m/sec max linear velocity
# 120 deg/sec max angular velocity
# Axis 1 is X
# Axis 2 is Y
# Axis 0 is Yaw
driver
(
  name "linuxjoystick"
  provides ["joystick:0"]
  requires ["position2d:0"]
  max_speed [0.5 0.5 120]
  axes [1 2 0]
  port "/dev/js0"
  alwayson 1
)
Todo:
Add support for continuously sending commands, which might be needed for position devices that use watchdog timers.
Author:
Andrew Howard, Brian Gerkey, Paul Osmialowski

Last updated 25 May 2011 21:17:00