Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(behavior_velocity): update grid map collision judgement using object info #568

Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
736cabb
feature(behavior_velocity): update grid map utils
taikitanaka3 Mar 18, 2022
152ed9c
feat(behavior_velocity): remove unused
taikitanaka3 Mar 22, 2022
6ce28c7
feat(behavior_velocity): early continue
taikitanaka3 Mar 22, 2022
401b75c
feat(behavior_velocity): add object info to occ grid and update colli…
taikitanaka3 Mar 22, 2022
675f532
feat(behavior_velocity): add debug options
taikitanaka3 Mar 22, 2022
b54fa52
chore(behavior_velocity): replace to planning utils
taikitanaka3 Mar 22, 2022
1ded531
chore(behavior_velocity): parametrize pedestrian radius and use plann…
taikitanaka3 Mar 23, 2022
526410c
chore(behavior_velocity): update doc and minor change
taikitanaka3 Mar 23, 2022
a874bd0
chore(behavior_velocity): minor change
taikitanaka3 Mar 23, 2022
3e7fb1a
chore(behavior_velocity): update docs and update parameter from exper…
taikitanaka3 Mar 23, 2022
035774d
feat(behavior_velocity): add compare polygon iterator and line iterator
taikitanaka3 Mar 23, 2022
24ab208
chore(behavior_velocity): reduce test verbose
taikitanaka3 Mar 23, 2022
761e310
chore(behavior_velocity): to silent g-test
taikitanaka3 Mar 23, 2022
148f59b
chore(behavior_velocity): chores
taikitanaka3 Mar 23, 2022
d87e55a
feat(behavior_velocity): add offset from front bumper
taikitanaka3 Mar 24, 2022
32ae51f
chore(behavior_velocity): use clippled path as marker
taikitanaka3 Mar 24, 2022
38e805f
feat(behavior_velocity): add extract close partition
taikitanaka3 Mar 25, 2022
4dd66c5
fix(behavior_velocity): fix remaining
taikitanaka3 Mar 25, 2022
7c2ad42
chore(behavior_velocity): update debug marker
taikitanaka3 Mar 25, 2022
553ddd8
feat(behavior_velocity): add ray option and tune param
taikitanaka3 Mar 27, 2022
d7da7a0
fix(behavior_velocity): fix predicted path
taikitanaka3 Mar 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions planning/behavior_velocity_planner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,31 @@ target_link_libraries(scene_module_virtual_traffic_light scene_module_lib)


# SceneModule OcclusionSpot
ament_auto_add_library(scene_module_occlusion_spot SHARED
# Util
ament_auto_add_library(occlusion_spot_lib SHARED
src/scene_module/occlusion_spot/grid_utils.cpp
src/scene_module/occlusion_spot/occlusion_spot_utils.cpp
src/scene_module/occlusion_spot/risk_predictive_braking.cpp
)

target_include_directories(occlusion_spot_lib
SYSTEM PUBLIC
${BOOST_INCLUDE_DIRS}
${tf2_geometry_msgs_INCLUDE_DIRS}
)

target_include_directories(occlusion_spot_lib
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

ament_target_dependencies(occlusion_spot_lib ${BEHAVIOR_VELOCITY_PLANNER_DEPENDENCIES})

ament_auto_add_library(scene_module_occlusion_spot SHARED
src/scene_module/occlusion_spot/manager.cpp
src/scene_module/occlusion_spot/debug.cpp
src/scene_module/occlusion_spot/scene_occlusion_spot.cpp
src/scene_module/occlusion_spot/occlusion_spot_utils.cpp
src/scene_module/occlusion_spot/risk_predictive_braking.cpp
)

target_include_directories(scene_module_occlusion_spot
Expand All @@ -235,7 +253,7 @@ target_include_directories(scene_module_occlusion_spot

ament_target_dependencies(scene_module_occlusion_spot ${BEHAVIOR_VELOCITY_PLANNER_DEPENDENCIES})

target_link_libraries(scene_module_occlusion_spot scene_module_lib)
target_link_libraries(scene_module_occlusion_spot scene_module_lib occlusion_spot_lib)

# Scene Module Manager
ament_auto_add_library(scene_module_manager SHARED
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
/**:
ros__parameters:
occlusion_spot:
detection_method: "predicted_object" # [-] candidate is "occupancy_grid" or "predicted_object"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note : change to occupancy_grid for testing

pass_judge: "current_velocity" # [-] candidate is "current_velocity""
debug: false # [-] whether to publish debug markers. Note Default should be false for performance
use_partition_lanelet: true # [-] whether to use partition lanelet map data
pedestrian_vel: 1.0 # [m/s] assume pedestrian is dashing from occlusion at this velocity
detection_method: "predicted_object" # [-] candidate is "occupancy_grid" or "predicted_object"
pass_judge: "current_velocity" # [-] candidate is "current_velocity"
filter_occupancy_grid: true # [-] whether to filter occupancy grid by morphologyEx or not
use_object_info: true # [-] whether to reflect object info to occupancy grid map or not
use_partition_lanelet: true # [-] whether to use partition lanelet map data
pedestrian_vel: 1.5 # [m/s] assume pedestrian is dashing from occlusion at this velocity
pedestrian_radius: 0.5 # [m] assume pedestrian width(0.25m) + margin(0.25m)
debug: # !Note: default should be false for performance
is_show_occlusion: false # [-] whether to show occlusion point markers.
is_show_cv_window: false # [-] whether to show open_cv debug window
is_show_processing_time: false # [-] whether to show processing time
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: separate debug parameters for utility

threshold:
detection_area_length: 100.0 # [m] the length of path to consider perception range
stuck_vehicle_vel: 1.0 # [m/s] velocity below this value is assumed to stop
Expand All @@ -17,8 +23,7 @@
non_effective_jerk: -0.3 # [m/s^3] weak jerk for velocity planning.
non_effective_acceleration: -1.0 # [m/s^2] weak deceleration for velocity planning.
min_allowed_velocity: 1.0 # [m/s] minimum velocity allowed
delay_time: 0.1 # [s] safety time buffer for delay system response
safe_margin: 1.0 # [m] maximum safety distance for any error
safe_margin: 2.0 # [m] margin for detection failure(0.5m) + pedestrian radius(0.5m) + safe margin(1.0m)
detection_area:
min_occlusion_spot_size: 1.0 # [m] occupancy grid must contain an UNKNOWN area of at least size NxN to be considered a hidden obstacle.
slice_length: 10.0 # [m] size of slices in both length and distance relative to the ego path.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading