schema_version: 2 command: - term: twist feeds: velocity_commands frame: body axes: - name: lin_vel_x unit: m/s positive: forward - name: lin_vel_y unit: m/s positive: left - name: ang_vel_z unit: rad/s positive: counter-clockwise scaling: rule: full_deflection_is_range_edge formula: axis * (range_max if axis >= 0 else -range_min) ends_scaled_separately: true - term: posture feeds: posture_command frame: twist over the feet; pitch and roll against gravity; height above the feet axes: - name: twist unit: rad positive: counter-clockwise - name: pitch unit: rad positive: nose down - name: roll unit: rad positive: left side up - name: height unit: m positive: up rest: neutral_height integrate_s: 1.0 scaling: rule: full_deflection_is_range_edge formula: rest + axis * (range_max - rest if axis >= 0 else rest - range_min) ends_scaled_separately: true devices: gamepad: scheme: absolute layout: xbox axes: lin_vel_x: { source: Ly, sign: -1 } lin_vel_y: { source: Lx, sign: -1 } twist: { source: Rx, sign: -1, travel: [0.0, 0.5, 0.5, 0.75] } ang_vel_z: { source: Rx, sign: -1, travel: [0.5, 1.0] } pitch: { source: Ry, sign: -1 } roll: { source: Rx, sign: 1, shifted: true } height: { source: Ry, sign: -1, shifted: true } shift: { button: R3, gesture: hold } reset: R3 deadzone: device_reported_rescaled release_button: B keyboard: scheme: keys full_after_s: 2.0 axes: lin_vel_x: { "+": [key_w, key_up], "-": [key_s, key_down] } lin_vel_y: { "+": [key_a, key_left], "-": [key_d, key_right] } ang_vel_z: { "+": [key_j], "-": [key_l] } twist: { "+": [key_h], "-": [key_semicolon] } pitch: { "+": [key_i], "-": [key_k] } roll: { "+": [key_o], "-": [key_u] } height: { "+": [key_n], "-": [key_m] } release: [key_escape]