Skip to content

Commit

Permalink
chore(control): parameterization control mode (#32)
Browse files Browse the repository at this point in the history
* create use_stanley param

Signed-off-by: Autumn60 <[email protected]>

* Update aichallenge/workspace/src/aichallenge_submit/booars_launch/launch/components/control.launch.xml

Co-authored-by: sitahara <[email protected]>

---------

Signed-off-by: Autumn60 <[email protected]>
Co-authored-by: sitahara <[email protected]>
  • Loading branch information
Autumn60 and sitahara authored Sep 5, 2024
1 parent 837cd05 commit a33399d
Showing 1 changed file with 28 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<launch>
<!-- Parameters -->
<arg name="use_stanley" default="false" />

<group>
<push-ros-namespace namespace="control"/>
<node pkg="simple_pure_pursuit" exec="simple_pure_pursuit" name="simple_pure_pursuit_node" output="screen">
<param name="use_external_target_vel" value="true"/>
<param name="external_target_vel" value="8.0"/>
<param name="lookahead_gain" value="0.4"/>
<param name="lookahead_min_distance" value="3.0"/>
<param name="speed_proportional_gain" value="1.0"/>
<push-ros-namespace namespace="control" />

<node pkg="simple_pure_pursuit" exec="simple_pure_pursuit" name="simple_pure_pursuit_node"
output="screen" unless="$(var use_stanley)">
<param name="use_external_target_vel" value="true" />
<param name="external_target_vel" value="8.0" />
<param name="lookahead_gain" value="0.4" />
<param name="lookahead_min_distance" value="3.0" />
<param name="speed_proportional_gain" value="1.0" />

<remap from="input/kinematics" to="/localization/kinematic_state" />
<!-- <remap from="input/trajectory" to="/planning/scenario_planning/trajectory" /> -->
<remap from="input/trajectory" to="/planning/output/mppi_planned_path" />
<remap from="output/control_cmd" to="/control/command/control_cmd" />
</node>

<remap from="input/kinematics" to="/localization/kinematic_state"/>
<!-- <remap from="input/trajectory" to="/planning/scenario_planning/trajectory"/> -->
<remap from="input/trajectory" to="/planning/output/mppi_planned_path"/>
<remap from="output/control_cmd" to="/control/command/control_cmd"/>
<node pkg="stanley_control" exec="stanley_control" name="stanley_control_node" output="screen"
if="$(var use_stanley)">
<param name="speed_proportional_gain" value="2.14" />
<param name="external_target_vel" value="8.0" />
<param name="k_gain" value="2.0" />
<param name="k_gain_slow" value="1.0" />
<param name="speed_proportional_gain" value="1.0" />
<remap from="input/kinematics" to="/localization/kinematic_state" />
<remap from="input/trajectory" to="/planning/scenario_planning/trajectory" />
<remap from="output/control_cmd" to="/control/command/control_cmd" />
</node>
<!-- stanley control -->
<!-- <node pkg="stanley_control" exec="stanley_control" name="stanley_control_node" output="screen">
<param name="speed_proportional_gain" value="2.14"/>
<param name="external_target_vel" value="8.0"/>
<param name="k_gain" value="2.0"/>
<param name="k_gain_slow" value="1.0"/>
<param name="speed_proportional_gain" value="1.0"/>
<remap from="input/kinematics" to="/localization/kinematic_state"/>
<remap from="input/trajectory" to="/planning/scenario_planning/trajectory"/>
<remap from="output/control_cmd" to="/control/command/control_cmd"/>
</node> -->
<!-- speed_proportional_gain: P gain for speed control -->
<!-- external_target_vel: Target speed -->
<!-- k_gain: Gain to determine additional steering based on speed -->
Expand Down

0 comments on commit a33399d

Please sign in to comment.