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
The simple_planning_simulator usually operates by receiving Control commands, but when the `ACTUATION_CMD` model is selected, it receives Actuation commands instead of Control commands. This model can simulate the motion using the vehicle command that is actually sent to the real vehicle. Therefore, when this model is selected, the `raw_vehicle_cmd_converter` is also launched.
129
129
130
+
`convert_steer_cmd_method` has two options: "vgr" and "steer_map". If you choose "vgr" (variable gear ratio), it is assumed that the steering wheel angle is sent as the actuation command, and the value is converted to the steering tire angle to move the model. If you choose "steer_map", it is assumed that an arbitrary value is sent as the actuation command, and the value is converted to the steering tire rate to move the model. An arbitrary value is like EPS (Electric Power Steering) Voltage . `enable_pub_steer` determines whether to publish the steering tire angle. If false, it is expected to be converted and published from actuation_status in other nodes (e.g. raw_vehicle_cmd_converter).
131
+
132
+

133
+
134
+
```yaml
135
+
136
+
```
137
+
130
138
The parameters used in the ACTUATION_CMD are as follows.
| accel_time_delay | double | dead time for the acceleration input |[s]|
135
-
| accel_time_constant | double | time constant of the 1st-order acceleration dynamics |[s]|
136
-
| brake_time_delay | double | dead time for the brake input |[s]|
137
-
| brake_time_constant | double | time constant of the 1st-order brake dynamics |[s]|
138
-
| convert_accel_cmd | bool | If true, it is assumed that the command is received converted to an accel actuation value, and it is converted back to acceleration value inside the simulator. |[-]|
139
-
| convert_brake_cmd | bool | If true, it is assumed that the command is received converted to a brake actuation value, and it is converted back to acceleration value inside the simulator. |[-]|
140
-
| convert_steer_cmd | bool | If true, it is assumed that the command is received converted to a steer actuation value, and it is converted back to steer rate value inside the simulator. |[-]|
| accel_time_delay | double | dead time for the acceleration input |[s]|
143
+
| accel_time_constant | double | time constant of the 1st-order acceleration dynamics |[s]|
144
+
| brake_time_delay | double | dead time for the brake input |[s]|
145
+
| brake_time_constant | double | time constant of the 1st-order brake dynamics |[s]|
146
+
| convert_accel_cmd | bool | If true, it is assumed that the command is received converted to an accel actuation value, and it is converted back to acceleration value inside the simulator. |[-]|
147
+
| convert_brake_cmd | bool | If true, it is assumed that the command is received converted to a brake actuation value, and it is converted back to acceleration value inside the simulator. |[-]|
148
+
| convert_steer_cmd | bool | If true, it is assumed that the command is received converted to a steer actuation value, and it is converted back to steer rate value inside the simulator. |[-]|
149
+
| convert_steer_cmd_method | bool | method to convert steer command. You can choose from "vgr" and "steer_map". |[-]|
150
+
| vgr_coef_a | double | the value of the coefficient a of the variable gear ratio |[-]|
151
+
| vgr_coef_b | double | the value of the coefficient b of the variable gear ratio |[-]|
152
+
| vgr_coef_c | double | the value of the coefficient c of the variable gear ratio |[-]|
153
+
| enable_pub_steer | bool | whether to publish the steering tire angle. if false, it is expected to be converted and published from actuation_status in other nodes (e.g. raw_vehicle_cmd_converter) |[-]|
141
154
142
155
<!-- deadzone_delta_steer | double | dead zone for the steering dynamics | x | x | x | o | o | 0.0 | [rad] | | -->
Copy file name to clipboardexpand all lines: simulator/simple_planning_simulator/include/simple_planning_simulator/vehicle_model/sim_model_actuation_cmd.hpp
+127-10
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,22 @@
23
23
24
24
#include<deque>
25
25
#include<iostream>
26
+
#include<optional>
26
27
#include<queue>
27
28
#include<string>
28
29
#include<vector>
29
30
30
31
/**
31
32
* @class ActuationMap
32
-
* @brief class to convert actuation command
33
+
* @brief class to convert from actuation command to control command
Copy file name to clipboardexpand all lines: simulator/simple_planning_simulator/include/simple_planning_simulator/vehicle_model/sim_model_interface.hpp
0 commit comments