Skip to content

Commit

Permalink
add v2i to behavior_velocity_traffic_light
Browse files Browse the repository at this point in the history
Signed-off-by: Y.Hisaki <[email protected]>
  • Loading branch information
yhisaki committed Jan 29, 2025
1 parent f06d9a8 commit b810912
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
yellow_lamp_period: 2.75
enable_pass_judge: true
enable_rtc: false # If set to true, the scene modules require approval from the rtc (request to cooperate) function. If set to false, the modules can be executed without requiring rtc approval

v2i:
use_rest_time: true
last_time_allowed_to_pass: 2.0 # relative time against at the time of turn to red
velocity_threshold: 0.5 # change the decision logic whether the current velocity is faster or not
required_time_to_departure: 3.0 # prevent low speed pass
10 changes: 10 additions & 0 deletions autoware_launch/launch/autoware.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<arg name="launch_planning" default="true" description="launch planning"/>
<arg name="launch_control" default="true" description="launch control"/>
<arg name="launch_api" default="true" description="launch api"/>
<arg name="launch_v2x" default="false" description="launch V2X"/>
<!-- Global parameters -->
<arg name="use_sim_time" default="false" description="use_sim_time"/>
<!-- Vehicle -->
Expand Down Expand Up @@ -124,6 +125,15 @@
<include file="$(find-pkg-share autoware_launch)/launch/components/tier4_autoware_api_component.launch.xml"/>
</group>

<!-- V2X -->
<group if="$(var launch_v2x)">
<include file="$(find-pkg-share jpn_signal_launcher)/launch/jpn_signal.launch.xml">
<arg name="map_path" value="$(var map_path)"/>
<arg name="vehicle_model" value="$(var vehicle_model)"/>
<arg name="vehicle_id" value="1"/>
</include>
</group>

<!-- Tools -->
<group>
<node
Expand Down
2 changes: 2 additions & 0 deletions autoware_launch/launch/logging_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
<arg name="pointcloud_map_file" value="$(var pointcloud_map_file)"/>
<!-- Sensing -->
<arg name="launch_sensing_driver" value="false"/>
<!-- V2X -->
<arg name="launch_v2x" value="false"/>
</include>
</group>
</launch>
2 changes: 2 additions & 0 deletions autoware_launch/launch/planning_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
<arg name="rviz" value="$(var rviz)"/>
<arg name="rviz_config" value="$(var rviz_config)"/>
<arg name="rviz_respawn" value="$(var rviz_respawn)"/>
<!-- V2X -->
<arg name="launch_v2x" value="false"/>
<!-- Auto mode setting-->
<arg name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>
<arg name="is_simulation" value="true"/>
Expand Down

0 comments on commit b810912

Please sign in to comment.