Skip to content

Commit

Permalink
Start auton from start_dist as well
Browse files Browse the repository at this point in the history
The sim now seems to start the buggy at the correct place, but auton doesn't seem to take it well and causes buggy to steer in very tight circles (buggy appears static on map)
  • Loading branch information
PatXue committed Feb 18, 2024
1 parent 619d327 commit dda9bb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rb_ws/src/buggy/launch/sim_2d_single.launch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<launch>
<arg name="autonsystem_args" default="--controller stanley --dist 0.0 --traj buggycourse_safe_1.json --self_name SC" />
<arg name="starting_dist" default="0.0" />
<arg name="autonsystem_args" default="--controller stanley --dist $(arg start_dist) --traj buggycourse_safe_1.json --self_name SC" />
<arg name="start_dist" default="0.0" />
<arg name="velocity" default="15.0" />
<arg name="buggy_name" default="SC" />

Expand All @@ -22,7 +22,7 @@
</group>

<node name="sim_2d_engine" pkg="buggy" type="engine.py" output="screen"
args="$(arg starting_dist) $(arg velocity) $(arg buggy_name)"/>
args="$(arg start_dist) $(arg velocity) $(arg buggy_name)"/>

<node name="auton_system" pkg="buggy" type="autonsystem.py" output="screen"
args="$(arg autonsystem_args)"/>
Expand Down

0 comments on commit dda9bb1

Please sign in to comment.