Skip to content

Commit

Permalink
feat(autoware_launch): add controller mode options to launch file
Browse files Browse the repository at this point in the history
Signed-off-by: Berkay Karaman <berkay@leodrive.ai>
  • Loading branch information
Berkay Karaman committed Nov 2, 2022
1 parent df1f8d2 commit 7826a05
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoware_launch/launch/autoware.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/>
<!-- Control -->
<arg name="enable_obstacle_collision_checker" default="false" description="use obstacle_collision_checker"/>
<arg name="lateral_controller_mode" default="mpc_follower" description="lateral controller mode: mpc_follower or pure_pursuit"/>
<arg name="longitudinal_controller_mode" default="pid" description="longitudinal controller mode: default pid"/>
<!-- System -->
<arg name="system_run_mode" default="online" description="run mode in system"/>
<!-- Tools -->
Expand Down Expand Up @@ -119,7 +121,8 @@
<!-- Control -->
<group if="$(var launch_control)">
<include file="$(find-pkg-share tier4_control_launch)/launch/control.launch.py">
<arg name="lateral_controller_mode" value="mpc_follower"/>
<arg name="lateral_controller_mode" value="$(var lateral_controller_mode)"/>
<arg name="longitudinal_controller_mode" value="$(var longitudinal_controller_mode)"/>
<arg name="vehicle_info_param_file" value="$(find-pkg-share $(var vehicle_model)_description)/config/vehicle_info.param.yaml"/>
<arg name="vehicle_id" value="$(var vehicle_id)"/>
<arg name="enable_obstacle_collision_checker" value="$(var enable_obstacle_collision_checker)"/>
Expand Down
4 changes: 4 additions & 0 deletions autoware_launch/launch/e2e_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/>
<!-- Control -->
<arg name="enable_obstacle_collision_checker" default="false" description="use obstacle_collision_checker"/>
<arg name="lateral_controller_mode" default="mpc_follower" description="lateral controller mode: mpc_follower or pure_pursuit"/>
<arg name="longitudinal_controller_mode" default="pid" description="longitudinal controller mode: default pid"/>
<!-- Vehicle -->
<arg name="launch_vehicle_interface" default="false"/>
<!-- Tools -->
Expand Down Expand Up @@ -49,6 +51,8 @@
<arg name="pointcloud_map_file" value="$(var pointcloud_map_file)"/>
<!-- Control -->
<arg name="enable_obstacle_collision_checker" value="$(var enable_obstacle_collision_checker)"/>
<arg name="lateral_controller_mode" value="$(var lateral_controller_mode)"/>
<arg name="longitudinal_controller_mode" value="$(var longitudinal_controller_mode)"/>
<!-- Sensing -->
<arg name="launch_sensing_driver" value="false"/>
<!-- Perception-->
Expand Down
4 changes: 4 additions & 0 deletions autoware_launch/launch/logging_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/>
<!-- Control -->
<arg name="enable_obstacle_collision_checker" default="false" description="use obstacle_collision_checker"/>
<arg name="lateral_controller_mode" default="mpc_follower" description="lateral controller mode: mpc_follower or pure_pursuit"/>
<arg name="longitudinal_controller_mode" default="pid" description="longitudinal controller mode: default pid"/>
<!-- Tools -->
<arg name="rviz" default="true" description="launch rviz"/>
<!-- Scenario simulation -->
Expand Down Expand Up @@ -61,6 +63,8 @@
<arg name="pointcloud_map_file" value="$(var pointcloud_map_file)"/>
<!-- Control -->
<arg name="enable_obstacle_collision_checker" value="$(var enable_obstacle_collision_checker)"/>
<arg name="lateral_controller_mode" value="$(var lateral_controller_mode)"/>
<arg name="longitudinal_controller_mode" value="$(var longitudinal_controller_mode)"/>
<!-- Sensing -->
<arg name="launch_sensing_driver" value="false"/>
</include>
Expand Down
4 changes: 4 additions & 0 deletions autoware_launch/launch/planning_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/>
<!-- Control -->
<arg name="enable_obstacle_collision_checker" default="false" description="use obstacle_collision_checker"/>
<arg name="lateral_controller_mode" default="mpc_follower" description="lateral controller mode: mpc_follower or pure_pursuit"/>
<arg name="longitudinal_controller_mode" default="pid" description="longitudinal controller mode: default pid"/>
<!-- Tools -->
<arg name="rviz" default="true" description="launch rviz"/>
<arg name="rviz_config" default="$(find-pkg-share autoware_launch)/rviz/autoware.rviz" description="rviz config"/>
Expand Down Expand Up @@ -51,6 +53,8 @@
<arg name="pointcloud_map_file" value="$(var pointcloud_map_file)"/>
<!-- Control -->
<arg name="enable_obstacle_collision_checker" value="$(var enable_obstacle_collision_checker)"/>
<arg name="lateral_controller_mode" value="$(var lateral_controller_mode)"/>
<arg name="longitudinal_controller_mode" value="$(var longitudinal_controller_mode)"/>
<!-- Tools -->
<arg name="rviz" value="$(var rviz)"/>
<arg name="rviz_config" value="$(var rviz_config)"/>
Expand Down

0 comments on commit 7826a05

Please sign in to comment.