cmake_minimum_required(VERSION 3.21)
project(path_planning)
set(CMAKE_CXX_STANDARD 14)
# include(GNUInstallDirs)
set(PACKAGE_NAME path_planning)
# output
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# Library target
add_library(path_planning INTERFACE)
# TODO: Use `Development.Embed` component when requiring cmake >= 3.18
find_package(Python COMPONENTS Interpreter Development NumPy REQUIRED)
target_link_libraries(path_planning INTERFACE
Python::Python
Python::Module
Python::NumPy
)
install(
TARGETS path_planning
EXPORT install_targets
)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
# bezier
add_executable(bezier_demo Bezier/main.cpp Bezier/BezierCurve.cpp)
target_link_libraries(bezier_demo PRIVATE path_planning)
# B-spline
add_executable(b_spline_demo B-spline/main.cpp B-spline/BSpline.cpp)
target_link_libraries(b_spline_demo PRIVATE path_planning)
# RRT
add_executable(rrt_demo Rapidly-exploring_Random_Tree/main.cpp Rapidly-exploring_Random_Tree/RRT.cpp)
target_link_libraries(rrt_demo PRIVATE path_planning)
# RRT_connect
add_executable(rrt_connect_demo Rapidly-exploring_Random_Tree_connect/main.cpp Rapidly-exploring_Random_Tree_connect/RRT_connect.cpp)
target_link_libraries(rrt_connect_demo path_planning)
# RRT_star
add_executable(rrt_star_demo Rapidly-exploring_Random_Tree_Star/main.cpp Rapidly-exploring_Random_Tree_Star/RRT_Star.cpp Rapidly-exploring_Random_Tree/RRT.cpp)
target_link_libraries(rrt_star_demo path_planning)
# Dijkstra
add_executable(dijkstra_demo Dijkstra/main.cpp Dijkstra/Dijkstra.cpp)
target_link_libraries(dijkstra_demo path_planning)
# astar
add_executable(astar_demo A_Star/Astar.cpp A_Star/main.cpp)
target_link_libraries(astar_demo path_planning)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
C++实现自动驾驶常用路径规划多种算法源码(含Dijkstra、A星、RRT、RRT星、Bezier、B spline等) 【项目依赖】 推荐在Ubuntu 18.04/20.04 环境下运行 cmake 在Ubuntu中安装cmake: sudo apt install cmake Eigen 在Ubuntu中安装Eigen: sudo apt-get install libeigen3-dev python3 【编译】 在当前目录下输入: mkdir build cd build cmake ../ make
资源推荐
资源详情
资源评论
收起资源包目录
C++实现自动驾驶常用路径规划多种算法源码(含Dijkstra、A星、RRT、RRT星、Bezier、B spline等).zip (36个子文件)
gif
rrt_star_demo.gif 1.55MB
rrt_connect.gif 1.54MB
astar.gif 304KB
b_spline_demo.gif 225KB
rrt_demo.gif 776KB
bezier_demo.gif 126KB
dijkstra_demo.gif 4.36MB
B-spline
BSpline.cpp 2KB
BSpline.h 475B
main.cpp 3KB
CMakeLists.txt 2KB
Dijkstra
Dijkstra.h 2KB
main.cpp 2KB
Dijkstra.cpp 8KB
Rapidly-exploring_Random_Tree
RRT.cpp 9KB
main.cpp 2KB
RRT.h 2KB
Rapidly-exploring_Random_Tree_connect
RRT_connect.h 3KB
RRT_connect.cpp 11KB
main.cpp 2KB
matplotlibcpp.h 97KB
Rapidly-exploring_Random_Tree_Star
main.cpp 2KB
RRT_Star.h 1KB
RRT_Star.cpp 8KB
项目说明.zip 808B
README.assets
rrt_connect-16832995877726.gif 1.54MB
rrt_star_demo.gif 1.55MB
rrt_connect1.gif 1.49MB
rrt_connect-16832995765544.gif 1.54MB
dijkstra_demo.gif 4.36MB
Bezier
main.cpp 2KB
BezierCurve.h 444B
BezierCurve.cpp 793B
A_Star
Astar.cpp 8KB
main.cpp 2KB
Astar.h 2KB
共 36 条
- 1
资源评论
.whl
- 粉丝: 3834
- 资源: 4675
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功