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
See joystick_demo.launch.xml for a complete list of args
steerSend steer commands. Defaulttruesteer_cmd_typeSteer command type. Defaultpercent. Options:torqueanglecurvatureyaw_ratepercentsteer_maxSteer command scale factor applied to joystick axis. Default100.0% (changes with the value ofsteer_cmd_type)steer_rateSteer command rate limit in deg/s. Negative for unlimited. Default0.0(firmware selects default value)steer_accelSteer command acceleration limit in deg/s^2. Negative for unlimited. Default0.0(firmware selects default value)brakeSend brake commands. Defaulttruebrake_cmd_typeBrake command type. Defaultpercent. Options:pressuretorqueaccelaccel_accaccel_aebpedal_rawpercentbrake_maxBrake command scale factor applied to joystick axis (withbrake_min). Default80.0% (changes with the value ofbrake_cmd_type)brake_minBrake command scale factor applied to joystick axis (withbrake_max). Default0.0% (changes with the value ofbrake_cmd_type)brake_incBrake command rate limit for increase. Negative for unlimited. Default0.0(firmware selects default value) (units change with the value ofbrake_cmd_type)brake_decBrake command rate limit for decrease. Negative for unlimited. Default0.0(firmware selects default value) (units change with the value ofbrake_cmd_type)thrtlSend throttle commands. Defaulttruethrtl_cmd_typeThrottle command type. Defaultpercent. Options:pedal_rawpercentthrtl_maxThrottle command scale factor applied to joystick axis (withthrtl_min). Default100.0% (changes with the value ofthrtl_cmd_type)thrtl_minThrottle command scale factor applied to joystick axis (withthrtl_max). Default0.0% (changes with the value ofthrtl_cmd_type)thrtl_incThrottle command rate limit for increase in %/s. Negative for unlimited. Default0.0(firmware selects default value)thrtl_decThrottle command rate limit for decrease in %/s. Negative for unlimited. Default0.0(firmware selects default value)shiftSend gear shift commands. DefaulttruemiscSend misc commands (turn-signal and others). DefaulttrueignoreSet ignore flag in steer/brake/thrtl command messages. DefaultfalseenableEnable/disable DBW with game controller left/right bumper buttons. DefaulttruebuttonsEnable/disable DBW with system enable/disable buttons. 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
D-Pad left/right toggle on/off
AEB precharge
D-Pad up/down