Skip to content

Commit

Permalink
feat(planning_error_monitor): read params from yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Kazuki Matsumoto <kazuki.matsumoto@tier4.jp>
  • Loading branch information
Kazuki Matsumoto authored and kazuki527 committed Apr 25, 2022
1 parent 2af223e commit aab7a1b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion planning/planning_error_monitor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ endif()

ament_auto_package(
INSTALL_TO_SHARE
launch
config
launch
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**:
ros__parameters:
# trajectory check
error_interval: 100.0 # error interval distance threshold [m]
error_curvature: 2.0 # error curvature threshold
error_sharp_angle: 0.785398 # error sharp angle threshold
ignore_too_close_points: 0.01 # ignore too close distance threshold
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<launch>
<!--select run mode for analyze trajectory-->
<arg name="run_mode" default="final_output" description="options: final_output, avoidance,surround_obstacle,obstacle_stop"/>
<arg name="planning_error_monitor_param_path" default="$(find-pkg-share planning_error_monitor)/config/planning_error_monitor.param.yaml"/>
<arg name="input/trajectory" default="/planning/scenario_planning/trajectory"/>
<let name="input/trajectory" value="/planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/trajectory" if="$(eval &quot;'$(var run_mode)'=='avoidance'&quot;)"/>
<let name="input/trajectory" value="/planning/scenario_planning/lane_driving/motion_planning/surround_obstacle_checker/trajectory" if="$(eval &quot;'$(var run_mode)'=='surround_obstacle'&quot;)"/>
<let name="input/trajectory" value="/planning/scenario_planning/lane_driving/trajectory" if="$(eval &quot;'$(var run_mode)'=='obstacle_stop'&quot;)"/>
<node name="planning_error_monitor" exec="planning_error_monitor" pkg="planning_error_monitor" output="screen">
<!-- load config a file -->
<param from="$(var planning_error_monitor_param_path)"/>
<!-- remap topic name -->
<remap from="~/input/trajectory" to="$(var input/trajectory)"/>
<param name="error_interval" value="100.0"/>
<param name="error_curvature" value="2.0"/>
<param name="error_sharp_angle" value="0.785398"/>
<param name="ignore_too_close_points" value="0.01"/>
</node>
</launch>

0 comments on commit aab7a1b

Please sign in to comment.