-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split launch NAND and SC launch files
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!-- roslaunch buggy main.launch --> | ||
|
||
<launch> | ||
<arg name="controller" default="mpc" /> | ||
<arg name="start_dist" default="0.0" /> | ||
<arg name="path" default="buggycourse_safe_1.json" /> | ||
|
||
<include file="$(find microstrain_inertial_driver)/launch/microstrain.launch"> | ||
<arg name="params_file" value="/rb_ws/src/buggy/INS_params.yml"/> | ||
</include> | ||
|
||
<remap from="/SC/nav/odom" to="/nav/odom"/> | ||
<remap from="/buggy/input/steering" to="/SC/buggy/input/steering"/> | ||
|
||
<node name="serial_node" pkg="rosserial_python" type="serial_node.py"> | ||
<param name="port" type="string" value="/dev/ttyUSB0"/> | ||
<param name="baud" type="int" value="1000000"/> | ||
</node> | ||
<node name="serial_node2" pkg="rosserial_python" type="serial_node.py"> | ||
<param name="port" type="string" value="/dev/ttyACM1"/> | ||
<param name="baud" type="int" value="115200"/> | ||
</node> | ||
<node name="foxglove" pkg="foxglove_bridge" type="foxglove_bridge" /> | ||
<node name="telematics" pkg="buggy" type="telematics.py" /> | ||
|
||
|
||
|
||
|
||
<!-- ENABLE AUTON --> | ||
<!-- autonsystem args: controller start_dist path buggy_name is_sim --> | ||
<!-- Conditional Launch Files, depending on if NAND Exists or not --> | ||
<arg name="NAND_exist" default="true"/> | ||
<group if="$(arg NAND_exist)"> | ||
<!-- Run the simulation with NAND --> | ||
<arg name="autonsystem_args" default="--controller $(arg controller) --dist 0.0 --traj $(arg path) --self_name SC --other_name NAND" /> | ||
<node name="auton_system" pkg="buggy" type="autonsystem.py" output="screen" args="$(arg autonsystem_args)"/> | ||
</group> | ||
<group unless="$(arg NAND_exist)"> | ||
<arg name="autonsystem_args" default="--controller $(arg controller) --dist 0.0 --traj $(arg path) --self_name SC" /> | ||
<node name="auton_system" pkg="buggy" type="autonsystem.py" output="screen" args="$(arg autonsystem_args)"/> | ||
</group> | ||
</launch> |