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
| target_speed | double | Target speed of the entity. |
36
39
| continuous | bool | If true the entity will keep the speed until the next command. |
37
-
#### EgoEntity
38
-
`target_speed` will be set as initial target speed of the EgoEntity only before the scenario starts.
39
40
40
-
#### Other entity
41
41
The function will change entities `target_speed` to given immediately.
42
42
If `continuous` is set to `false`, job to accelerate to target speed will be deleted after the velocity has reached the target speed. If set to `true`, the entity will keep the speed until the next longitudinal control command ordered. It will accelerate on maximum acceleration rate set previously.
| continuous | bool | If true the entity will keep the speed until the next command. |
51
52
52
-
#### EgoEntity
53
-
`target_speed` will be set as initial target speed of the EgoEntity only before the scenario starts.
54
-
55
-
#### Other entity
56
53
If `continuous` is set to `false`, job to accelerate to target speed will be deleted after the velocity has reached the target speed. If set to `true`, the entity will keep the speed until the next longitudinal control command ordered.
57
54
58
55
##### Longitudinal Acceleration
@@ -94,19 +91,30 @@ flowchart LR
94
91
B -- NONE ---> O[[ChangeTargetSpeed]];
95
92
```
96
93
94
+
#### Values
95
+
By using `speed_change::RelativeTargetSpeed` you can set the target speed of the entity relative to another entity.
| continuous | bool | If true the entity will keep the speed until the next command. |
102
101
102
+
If `continuous` is set to `false`, job to accelerate to target speed will be deleted after the velocity has reached the target speed. If set to `true`, the entity will keep the speed until the next longitudinal control command ordered.
103
+
104
+
`target_speed.reference_entity_name` is the name of the entity that the target speed is relative to. The target speed of the entity will be same as the target speed of the reference entity.
105
+
- By setting `target_speed.type` to `DELTA`, you can set the target speed of the entity to be the target speed of the reference entity plus the value of `target_speed.value`.
106
+
- By setting `target_speed.type` to `FACTOR`, you can set the target speed of the entity to be the target speed of the reference entity multiplied by the value of `target_speed.value`.
107
+
108
+
#### Values
109
+
By using `speed_change::RelativeTargetSpeed` you can set the target speed of the entity relative to another entity.
| continuous | bool | If true the entity will keep the speed until the next command. |
117
+
It works the same as explained before.
110
118
111
119
### requestSynchronize
112
120
By using `API::requestSynchronize`, you can request the entity to adjust speed to stop at the designated lanelet by the time target entity crosses the another designated lanelet.
@@ -120,16 +128,20 @@ By using `API::requestSynchronize`, you can request the entity to adjust speed t
120
128
| target_speed | Target speed for controlling entity (meter per second). |
121
129
| tolerance | Tolerance for how much margin to accept to stop at the target (meter). |
As shown in the image, the entity will adjust it's speed to `target_speed` on `entity_target` at the time the target entity crosses the `target_sync_pose`. `tolerance` is the margin of error for the entity to stop at the `entity_target`. The target entity could be set by giving the name of the entity as `target_name`.
133
+
123
134
### setLinearVelocity
124
-
By using `API::setLinearVelocity`, you can set the linear velocity of the entity.
135
+
By using `API::setLinearVelocity`, you can set the linear velocity of the entity immediately. It will ignore the physics of the entity and set the value directly.
@@ -138,7 +150,7 @@ By using `API::setTwist`, you can set the twist of the entity.
138
150
139
151
### setAcceleration
140
152
141
-
By using `API::setAcceleration`, you can set the acceleration of the entity.
153
+
By using `API::setAcceleration`, you can set the acceleration of the entity immediately. It will ignore the physics of the entity and set the value directly.
0 commit comments