README
ds_dbw_joystick_demo
ROS2 interface to Dataspeed drive-by-wire platforms
Launch the drive-by-wire and the demo
ros2 launch ds_dbw_joystick_demo joystick_demo.launch.xml sys:=true
Launch the drive-by-wire and the demo and only send brake commands
ros2 launch ds_dbw_joystick_demo joystick_demo.launch.xml sys:=true steer:=false brake:=true thrtl:=false shift:=false misc:=false
Launch the drive-by-wire and the demo and specify all steer options
ros2 launch ds_dbw_joystick_demo joystick_demo.launch.xml sys:=true steer_cmd_type:=angle steer_max:=500.0 steer_rate:=0.0 steer_accel:=0.0
Launch the drive-by-wire and the demo and specify all brake options
ros2 launch ds_dbw_joystick_demo joystick_demo.launch.xml sys:=true brake_cmd_type:=pressure brake_min:=0.0 brake_max:=80.0 brake_inc:=0.0 brake_dec:=0.0
ros2 launch ds_dbw_joystick_demo joystick_demo.launch.xml sys:=true brake_cmd_type:=accel brake_min:=0.1 brake_max:=-8.0 brake_inc:=0.0 brake_dec:=0.0
Launch the drive-by-wire and the demo and specify all throttle options
ros2 launch ds_dbw_joystick_demo joystick_demo.launch.xml sys:=true thrtl_cmd_type:=percent thrtl_min:=0.0 thrtl_max:=100.0 thrtl_inc:=0.0 thrtl_dec:=0.0
Parameters
steer
Send steer commands. Defaulttrue
steer_cmd_type
Steer command type. Defaultpercent
. Options:torque
angle
curvature
yaw_rate
percent
steer_max
Steer command scale factor applied to joystick axis. Default100.0
% (changes with the value ofsteer_cmd_type
)steer_rate
Steer command rate limit in deg/s. Default0.0
(firmware selects default value)steer_accel
Steer command acceleration limit in deg/s^2. Default0.0
(firmware selects default value)brake
Send brake commands. Defaulttrue
brake_cmd_type
Brake command type. Defaultpercent
. Options:pressure
torque
accel
accel_acc
accel_aeb
pedal_raw
percent
brake_max
Brake command scale factor applied to joystick axis (withbrake_min
). Default80.0
% (changes with the value ofbrake_cmd_type
)brake_min
Brake command scale factor applied to joystick axis (withbrake_max
). Default0.0
% (changes with the value ofbrake_cmd_type
)brake_inc
Brake command rate limit for increase. Default0.0
(firmware selects default value) (units change with the value ofbrake_cmd_type
)brake_dec
Brake command rate limit for decrease. Default0.0
(firmware selects default value) (units change with the value ofbrake_cmd_type
)thrtl
Send throttle commands. Defaulttrue
thrtl_cmd_type
Throttle command type. Defaultpercent
. Options:pedal_raw
percent
thrtl_max
Throttle command scale factor applied to joystick axis (withthrtl_min
). Default100.0
% (changes with the value ofthrtl_cmd_type
)thrtl_min
Throttle command scale factor applied to joystick axis (withthrtl_max
). Default0.0
% (changes with the value ofthrtl_cmd_type
)thrtl_inc
Throttle command rate limit for increase. Default0.0
%/s (firmware selects default value)thrtl_dec
Throttle command rate limit for decrease. Default0.0
%/s (firmware selects default value)shift
Send gear shift commands. Defaulttrue
misc
Send misc commands (turn-signal and others). Defaulttrue
Controls
Logitech F310 Gamepad controls:
Disable
Left Bumper
Enable
Right Bumper
Brakes
Left Trigger
Throttle
Right Trigger
Steering
Left/right of either joystick axis
Hold back or start to get full steering range, otherwise half
Turn Signals
Left/Right D-Pad toggle on/off