generated from ijnek/ros2_template_repo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<launch> | ||
<arg name="sim" default="false" /> | ||
<arg name="sim" default="false" description="Whether the robot is running in simulation or on real hardware" /> | ||
|
||
<node pkg="game_controller_hl" exec="game_controller" name="game_controller_hl" output="screen"> | ||
<arg name="team_id" default="1" description="The team id of the team the robot is playing in (not used if use_parameter_blackboard is true)" /> | ||
<arg name="bot_id" default="1" description="The id of the robot in the team (not used if use_parameter_blackboard is true)" /> | ||
|
||
<arg name="use_parameter_blackboard" default="false" description="Whether the parameter blackboard should be used to get the team and bot id dynamically" /> | ||
<arg name="parameter_blackboard_name" default="parameter_blackboard" description="The name of the parameter blackboard when it is used (see use_parameter_blackboard)" /> | ||
<arg name="team_id_param_name" default="team_id" description="The name of the parameter for the team id on the parameter blackboard when it is used (see use_parameter_blackboard)" /> | ||
<arg name="bot_id_param_name" default="bot_id" description="The name of the parameter for the bot id on the parameter blackboard when it is used (see use_parameter_blackboard)" /> | ||
|
||
|
||
<!-- launch the game controller client without a parameter blackboard --> | ||
<node pkg="game_controller_hl" exec="game_controller" name="game_controller_hl" output="screen" unless="$(var use_parameter_blackboard)"> | ||
<param from="$(find-pkg-share game_controller_hl)/config/game_controller_settings.yaml" /> | ||
<param name="use_sim_time" value="$(var sim)" /> | ||
|
||
<param name="team_id" value="$(var team_id)" /> | ||
<param name="bot_id" value="$(var bot_id)" /> | ||
</node> | ||
|
||
<!-- or --> | ||
|
||
<!-- launch the game controller client with a parameter blackboard --> | ||
<node pkg="game_controller_hl" exec="game_controller" name="game_controller_hl" output="screen" if="$(var use_parameter_blackboard)"> | ||
<param from="$(find-pkg-share game_controller_hl)/config/game_controller_settings.yaml" /> | ||
<param name="use_sim_time" value="$(var sim)" /> | ||
|
||
<param name="parameter_blackboard_name" value="$(var parameter_blackboard_name)" /> | ||
<param name="team_id_param_name" value="$(var team_id_param_name)" /> | ||
<param name="bot_id_param_name" value="$(var bot_id_param_name)" /> | ||
</node> | ||
</launch> |