代码拉取完成,页面将自动刷新
Baidu Apollo的CMakeLists版本 1. Reference: https://github.com/yuzhangbit/apollo_standalone The Cyber and part of routing has been done in the reference project. The open_space_planner has been done. In this project, the integral apollo project has been build successfully with CMakeLists. 2. OS: ubuntu 16.04 64bit 3. Dependencies: protobuf(3.3.0) gflags(2.2.0), glog(0.3.5) qpOASES(master) osqp(0.4.1) curlpp(dev) tinyxml2(master) proj4(4.9.3) ipopt(3.12.11) adol-c(2.6.3) Eigen(dev) Pyhton3 dev matplotlib Abseil - C++ Common Libraries (make and make install) Cuda(optional, 9.0) In scripts folder, there are bashes which can be used as reference to install dependencies 4. Build mkdir -p src/apollo/build && cd src/apollo/build cmake .. make -j$(nproc) sudo make install 5. How to use Apollo in other CMakeLists Projects? Once the installation is done successfully, the apollo codes can be used in other cmake projects by 'find_package' Example: cmake_minimum_required(VERSION 3.5.1) project(example_project) set(CMAKE_CXX_STANDARD 11) list(APPEND CMAKE_PREFIX_PATH "/apollo") find_package(apollo 5.0.0 CONFIG REQUIRED) add_executable(listener src/listener.cc) target_link_libraries(listener apollo::cyber) add_executable(talker src/talker.cc) target_link_libraries(talker apollo::cyber) Steps: 1. Find the apollo targets by the config mode: list(APPEND CMAKE_PREFIX_PATH "/apollo") find_package(apollo 5.0.0 CONFIG REQUIRED) 2. Link against the targets you need For example, if you call some functions from 'modules/planning', you can link 'apollo::planning' Example: add_executable(foo src/foo.cc) target_link_libraries(foo apollo::planning) or add_library(foo src/foo.cc) target_link_libraries(foo apollo::planning) If you only use the protobuf interface of a module, link against the corresponding interface library: Example: add_executable(foo src/foo.cc) target_link_libraries(foo apollo::perception_proto) The dependencies are exported along with these apollo targets. 6. Examples: 6.1 open_space_planner 6.2 Parser_map_data_and_show ( has not fininshed ) 6.3 planning_demo ( has not fininshed ) 6.4 routing_demo ( has not fininshed )
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。