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
Copy file name to clipboardExpand all lines: docs/developer_guide/Longitudinal_control.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ MiscObjectEntity can not be controlled by this API.
31
31
`target_speed` will be set to the target speed of the EgoEntity only before the scenario starts.
32
32
33
33
#### Other entity
34
-
The function will append the job to change the target_speed of the npc to the job queue. If `continuous` is set to `false`, the job will be deleted after the velocity has reached the target speed. If set to `true`, the npc will keep the speed until the next longitudinal control command.
34
+
The function will append the job to change the target_speed of the npc to the job queue. If `continuous` is set to `false`, the job will be deleted after the velocity has reached the target speed. If set to `true`, the npc will keep the speed until the next longitudinal control command. It will accelerate on maximum acceleration rate set previously.
@@ -44,6 +44,13 @@ The function will append the job to change the target_speed of the npc to the jo
44
44
`target_speed` will be set to the target speed of the EgoEntity only before the scenario starts.
45
45
46
46
#### Other entity
47
+
The function will append the job to change the target_speed of the npc to the job queue. If `continuous` is set to `false`, the job will be deleted after the velocity has reached the target speed. If set to `true`, the npc will keep the speed until the next longitudinal control command.
48
+
When `constraint` is set to `LONGITUDINAL_ACCELERATION`, the entity will accelerate to the target speed with acceleration rate you set.
49
+
If `transition` is set to `LINEAR`, the entity will accelerate to the target speed linearly.
50
+
If `transition` is set to `AUTO`, it will change the maximum acceleration speed of the entity and append the job to change the target speed of the npc to the job queue. After the npc reaches the target speed, it will change the maximum acceleration speed back to the original value.
51
+
When `constraint` is set to `TIME`, the entity will accelerate to the target speed by the time you set.
52
+
When `constraint` is set to `NONE`, is will append the job to change the target_speed of the npc to the job queue.
0 commit comments