Skip to content

Commit

Permalink
feat: change node launch to autoware_launch
Browse files Browse the repository at this point in the history
Signed-off-by: TetsuKawa <[email protected]>
  • Loading branch information
TetsuKawa committed Dec 6, 2024
1 parent 0961a2c commit a2708b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
2 changes: 1 addition & 1 deletion launch/tier4_control_launch/launch/control.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import yaml

def get_control_cmd_topic(context):
is_redundant = LaunchConfiguration('is_redundant').perform(context)
is_redundant = LaunchConfiguration('launch_redundancy_system_components').perform(context)
system_run_mode = LaunchConfiguration('system_run_mode').perform(context)

if is_redundant.lower() == 'true' and system_run_mode.lower() == 'planning_simulation':
Expand Down
33 changes: 1 addition & 32 deletions launch/tier4_system_launch/launch/system.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
<arg name="launch_rqt_robot_monitor" default="false"/>
<arg name="launch_rqt_runtime_monitor_err" default="false"/>

<!-- Redundancy -->
<arg name="is_redundant"/>

<group>
<push-ros-namespace namespace="/system"/>

Expand Down Expand Up @@ -133,34 +130,6 @@
<arg name="config_file" value="$(var mrm_handler_param_path)"/>
</include>
</group>

<!-- Redundancy -->
<group if="$(var is_redundant)">
<group>
<!-- Redundancy Switcher Interface -->
<include file="$(find-pkg-share redundancy_switcher_interface)/launch/redundancy_switcher_interface.launch.xml">
<arg name="param_file" value="$(find-pkg-share autoware_launch)/config/system/redundancy_switcher_interface/redundancy_switcher_interface.param.yaml"/>
<arg name="input_mrm_state" value="/system/fail_safe/mrm_state"/>
</include>
<group if="$(eval &quot;'$(var run_mode)'=='planning_simulation'&quot;)">
<!-- control cmd switcher-->
<include file="$(find-pkg-share control_cmd_switcher)/launch/control_cmd_switcher.launch.xml"/>
</group>
<group unless="$(eval &quot;'$(var run_mode)'=='planning_simulation'&quot;)">
<!-- topic state monitor for pose_with_covariance-->
<include file="$(find-pkg-share topic_state_monitor)/launch/topic_state_monitor.launch.xml">
<arg name="node_name_suffix" value="pose_estimator_pose_with_covariance"/>
<arg name="topic" value="/localization/pose_estimator/pose_with_covariance"/>
<arg name="topic_type" value="geometry_msgs/msg/PoseWithCovarianceStamped"/>
<arg name="diag_name" value="publish_to_sub_status"/>
<arg name="warn_rate" value="5.0"/>
<arg name="error_rate" value="1.0"/>
<arg name="timeout" value="1.0"/>
</include>
</group>

</group>
</group>
</group>

<!-- Dummy Diag Publisher -->
Expand All @@ -179,4 +148,4 @@
<group if="$(var launch_system_recover_operator)">
<node pkg="diagnostic_graph_utils" exec="recovery_node" name="recovery"/>
</group>
</launch>
</launch>

0 comments on commit a2708b8

Please sign in to comment.