-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(obstacle_avoidance_planner): clean up the code (#2796)
* update obstacle avoidance planner, static centerline optimizer, tier4_planning_launch Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * update velocity on joint and correct trajectory z Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * update Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * minor change Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * pre-commit Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> --------- Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
- Loading branch information
1 parent
f057084
commit 91653ad
Showing
53 changed files
with
6,831 additions
and
7,550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,52 @@ | ||
cmake_minimum_required(VERSION 3.14) | ||
project(obstacle_avoidance_planner) | ||
|
||
include(CheckCXXCompilerFlag) | ||
|
||
# For Eigen vectorization. | ||
check_cxx_compiler_flag("-march=native" COMPILER_SUPPORTS_MARCH_NATIVE) | ||
if(COMPILER_SUPPORTS_MARCH_NATIVE) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") | ||
message(STATUS "Enabling MARCH NATIVE ") | ||
endif() | ||
|
||
find_package(autoware_cmake REQUIRED) | ||
autoware_package() | ||
|
||
find_package(Eigen3 REQUIRED) | ||
find_package(OpenCV REQUIRED) | ||
|
||
ament_auto_add_library(obstacle_avoidance_planner SHARED | ||
# node | ||
src/node.cpp | ||
# core algorithms | ||
src/replan_checker.cpp | ||
src/eb_path_smoother.cpp | ||
src/mpt_optimizer.cpp | ||
src/state_equation_generator.cpp | ||
# debug marker | ||
src/debug_marker.cpp | ||
# vehicle model | ||
src/vehicle_model/vehicle_model_interface.cpp | ||
src/vehicle_model/vehicle_model_bicycle_kinematics.cpp | ||
src/eb_path_optimizer.cpp | ||
src/mpt_optimizer.cpp | ||
src/utils/utils.cpp | ||
src/utils/debug_utils.cpp | ||
src/node.cpp | ||
# utils | ||
src/utils/trajectory_utils.cpp | ||
src/utils/geometry_utils.cpp | ||
) | ||
|
||
target_include_directories(obstacle_avoidance_planner | ||
SYSTEM PUBLIC | ||
${OpenCV_INCLUDE_DIRS} | ||
${EIGEN3_INCLUDE_DIR} | ||
) | ||
|
||
target_link_libraries(obstacle_avoidance_planner | ||
${OpenCV_LIBRARIES} | ||
) | ||
|
||
# register node | ||
rclcpp_components_register_node(obstacle_avoidance_planner | ||
PLUGIN "ObstacleAvoidancePlanner" | ||
PLUGIN "obstacle_avoidance_planner::ObstacleAvoidancePlanner" | ||
EXECUTABLE obstacle_avoidance_planner_node | ||
) | ||
|
||
ament_auto_package( | ||
INSTALL_TO_SHARE | ||
launch | ||
config | ||
scripts | ||
config | ||
) |
Oops, something went wrong.