You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow human to drive with agents through classic and jerk dynamics model (#206)
* Fix human control with joint action space & classic model: Was still assuming multi-discrete.
* Enable human control with jerks dynamics model.
* Color actions yellow when controlling.
* Slightly easier control problem?
* Add tiny jerk penalty: Results in smooth behavior.
* Pre-commit
* Minor edits.
* Revert ini changes.
---------
Co-authored-by: Daphne <daphn3cor@gmail.com>
You can take manual control of an agent in the simulator by holding **LEFT SHIFT** and using the keyboard controls. When you're in control, the action values displayed on screen will turn **yellow**.
4
+
5
+
### Local rendering
6
+
7
+
To launch an interactive renderer, first build:
8
+
```bash
9
+
bash scripts/build_ocean.sh drive local
10
+
```
11
+
12
+
then launch:
13
+
```bash
14
+
./drive
15
+
```
16
+
17
+
This will run `demo()` with an existing model checkpoint.
18
+
19
+
[TODO: Add demo video/gif here]
20
+
21
+
### Controls
22
+
23
+
**General:**
24
+
-**LEFT SHIFT + Arrow Keys/WASD** - Take manual control
Each key press increments or decrements the action level. For example, tapping W multiple times increases acceleration from neutral (index 3) → 5 → 6 (maximum acceleration). We assume **no friction**, so releasing all keys maintains constant speed and heading.
38
+
39
+
**Jerk dynamics model**
40
+
41
+
-**SHIFT + UP/W** - Accelerate (+4.0 m/s³ jerk)
42
+
-**SHIFT + DOWN/S** - Brake (-15.0 m/s³ jerk)
43
+
-**SHIFT + LEFT/A** - Turn left (+4.0 m/s³ lateral jerk)
44
+
-**SHIFT + RIGHT/D** - Turn right (-4.0 m/s³ lateral jerk)
45
+
46
+
Actions are applied directly when keys are pressed. Pressing W always applies +4.0 m/s³ longitudinal jerk, regardless of how long the key is held.
0 commit comments