Skip to content

Commit

Permalink
Add vehicle cmd gate config (tier4#136)
Browse files Browse the repository at this point in the history
* Add config_file of vehicle_cmd_gate

Signed-off-by: Kenji Miyake <[email protected]>

* Add use_emergency_stop

Signed-off-by: Kenji Miyake <[email protected]>

* Rename emergency_stop to external_emergency_stop

Signed-off-by: Kenji Miyake <[email protected]>

* Fix command_gate diag

Signed-off-by: Kenji Miyake <[email protected]>
  • Loading branch information
kenji-miyake authored and UMiho committed Dec 10, 2020
1 parent f75b8de commit 0c98a01
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions control_launch/config/vehicle_cmd_gate/vehicle_cmd_gate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
update_rate: 10
system_emergency_heartbeat_timeout: 0.5
external_emergency_stop_heartbeat_timeout: 0.0

vel_lim: 25.0
lon_acc_lim: 5.0
lon_jerk_lim: 5.0
lat_acc_lim: 5.0
lat_jerk_lim: 5.0
4 changes: 4 additions & 0 deletions control_launch/launch/control.launch
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<arg name="mpc_follower_param_path" default="$(find control_launch)/config/mpc_follower/mpc_follower_param.yaml"/>
<arg name="pure_pursuit_param_path" default="$(find control_launch)/config/pure_pursuit/pure_pursuit_param.yaml"/>
<arg name="velocity_controller_param_path" default="$(find control_launch)/config/velocity_controller/velocity_controller_param.yaml"/>
<arg name="vehicle_cmd_gate_param_path" default="$(find control_launch)/config/vehicle_cmd_gate/vehicle_cmd_gate.yaml"/>

<!-- control module -->
<group ns="control">
Expand Down Expand Up @@ -43,6 +44,9 @@

<!-- vehicle cmd gate -->
<include file="$(find vehicle_cmd_gate)/launch/vehicle_cmd_gate.launch">
<arg name="config_file" value="$(arg vehicle_cmd_gate_param_path)"/>
<arg name="use_emergency_handling" value="false"/>
<arg name="use_external_emergency_stop" value="true"/>
</include>

<!-- remote_cmd_converter -->
Expand Down
2 changes: 1 addition & 1 deletion system_launch/config/diagnostic_aggregator/control.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ analyzers:
command_gate:
type: diagnostic_aggregator/GenericAnalyzer
path: command_gate
contains: ": command_gate"
contains: "vehicle_cmd_gate: heartbeat"
timeout: 1.0
num_items: 0

Expand Down

0 comments on commit 0c98a01

Please sign in to comment.