Skip to content

Commit

Permalink
Merge pull request #21 from KNR-Selfie/simulator_integration
Browse files Browse the repository at this point in the history
Simulator integration
  • Loading branch information
Goldob authored Aug 23, 2019
2 parents 335285c + ea586fa commit 8045071
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
11 changes: 0 additions & 11 deletions selfie_launch/launch/race-sim-mpc.launch
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
<launch>
<arg name="path_file" />

<node pkg="path_server" type="path_server" name="path_server" args="$(arg path_file)" />

<node pkg="path_extractor" type="path_extractor.py" name="path_extractor">
<param name="path_points_backwards" type="int" value="0"/>
<param name="path_points_forwards" type="int" value="6" />
<param name="path_direction" type="bool" value="false" />
</node>

<node pkg="mpc" type="mpc" name="mpc" output="screen">
<param name="prediction_horizon" type="int" value="10" />
<param name="delta_time" type="double" value="0.05" />
Expand All @@ -25,5 +15,4 @@
<param name="diff_delta_weight" type="int" value="100" />
<param name="diff_a_weight" type="int" value="10" />
</node>

</launch>
2 changes: 1 addition & 1 deletion selfie_launch/launch/selfie-base.launch
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<node pkg="path_extractor" type="path_extractor.py" name="path_extractor">
<param name="path_points_backwards" type="int" value="0"/>
<param name="path_points_forwards" type="int" value="5" />
<param name="path_points_forwards" type="int" value="6" />
<param name="path_direction" type="bool" value="false" />
</node>
</launch>
22 changes: 22 additions & 0 deletions selfie_launch/launch/selfie-simulator-base.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<launch>
<arg name="map_file" />
<arg name="path_file" />

<node pkg="map_server" type="map_server" name="map_server" args="$(arg map_file)" />
<node pkg="topic_tools" type="relay" name="laser_relay_left" args="left_laser scan"/>
<node pkg="topic_tools" type="relay" name="laser_relay_right" args="right_laser scan"/>
<node pkg="amcl" type="amcl" name="amcl" >
<param name="use_map_topic" type="bool" value="true" />
</node>

<node pkg="path_server" type="path_server" name="path_server" args="$(arg path_file)" />

<node pkg="path_extractor" type="path_extractor.py" name="path_extractor">
<param name="path_points_backwards" type="int" value="0"/>
<param name="path_points_forwards" type="int" value="6" />
<param name="path_direction" type="bool" value="false" />
</node>

<node pkg="selfie_control" type="cmd_converter.py" name="cmd_converter" />

</launch>

0 comments on commit 8045071

Please sign in to comment.