Skip to content

Commit 411b692

Browse files
author
wangchuang03
committed
fea: upgrade to 10.0.1
- cyber: - dd7bb9bba2 fix: fix aem auto logout issue on host env - 4e9beedd85 fix: update docs and some bugfix - 2d9d082d4e fix: upgrade aem and fix cyber_visualizer - 22dceb8cb1 fix: cyber_visualizer show image error bugfix - 46ef41a2df fix: upgrade to 10.0.0-rc1-r3 - docs: - de4b56515a modify the bev+occ doc for file link error. - dfb8a828c2 fix: fix issue of openning old docs from studio - fe519c3045 docs: Update docs links and descriptions - 14229454c7 docx(perception): modify some error of docs for apollo 10.0 - f6743e9b52 docx(perception): modify some error of docs for apollo 10.0 - 4e9beedd85 fix: update docs and some bugfix - c18c6a1c62 docs(planning): modify the config path - canbus: - 2760dc085d fix: load canbus vehicle library based on env `APOLLO_LIB_PATH` - dreamview: - ed752fd0fb fix(dreamview): change dv proto find path. - 7b9fd85e11 Feat(dreamview_plus\dreamview): change absolute path to relative path - cadd761e80 Feat(dreamview_plus/dreamview): fix env from APOLLO_PATH to APOLLO_DISTRIBUTION_HOME to keep same with docker env - be5a299080 fix: 修复gps朝向不正确的问题 - b46114ff60 fix(dvp): 修复创建常用路由时无法关闭循环路由选项的问题 - ee42e99218 build(dvp): build dreamview plus - planning: - fe519c3045 docs: Update docs links and descriptions - 405b27a83b fix(planning):fix park_and_go bug - perception: - 4e9beedd85 fix: update docs and some bugfix Signed-off-by: wangchuang03 <[email protected]> Change-Id: I3af1adfa4eb5e70e83fd94926aadde446d93d439
1 parent 38ae485 commit 411b692

File tree

84 files changed

+331
-249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+331
-249
lines changed

aem/activate.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#set -e
2020
#set -x
2121

22+
source /etc/profile
23+
source $HOME/.bashrc
24+
2225
if [[ "${BASH_SOURCE-}" == "$0" ]]; then
2326
echo "this script should be sourced, e.g. source $0" >&2
2427
exit 1
@@ -118,14 +121,14 @@ export APOLLO_PLUGIN_DESCRIPTION_PATH="${APOLLO_ENV_ROOT}/opt/apollo/neo"
118121

119122
# runtime variables
120123
export AEM_HOST_VIRTUALENV=1
121-
export APOLLO_DISTRIBUTION_VERSION="${APOLLO_DISTRIBUTION_VERSION:-9.0}"
124+
export APOLLO_DISTRIBUTION_VERSION="${APOLLO_DISTRIBUTION_VERSION:-10.0}"
122125
export APOLLO_DISTRIBUTION_HOME="${APOLLO_DISTRIBUTION_HOME:-${APOLLO_ENV_ROOT}/opt/apollo/neo}"
123126
export APOLLO_SYSROOT_DIR="${APOLLO_SYSROOT_DIR:-/opt/apollo/sysroot}"
124127
export APOLLO_CACHE_DIR="${APOLLO_CACHE_DIR:-./.cache}"
125128
export APOLLO_BAZEL_DIST_DIR="${APOLLO_BAZEL_DIST_DIR:-${APOLLO_CACHE_DIR}/distdir}"
126129
export APOLLO_ROOT_DIR="${APOLLO_ROOT_DIR:-${APOLLO_ENV_ROOT}/apollo}"
127130
export APOLLO_PATH="${APOLLO_PATH:-${APOLLO_ENV_ROOT}/opt/apollo/neo}"
128-
export GLOG_log_dir="${GLOG_log_dir:-${APOLLO_ENV_ROOT}/apollo/data/log}"
131+
export GLOG_log_dir="${GLOG_log_dir:-${APOLLO_ENV_WORKROOT}/data/log}"
129132
export CYBER_PATH="${CYBER_PATH:-${APOLLO_ROOT_DIR}/cyber}"
130133
export CYBER_IP="${CYBER_IP:-127.0.0.1}"
131134
export CYBER_DOMAIN_ID="${CYBER_DOMAIN_ID:-80}"
@@ -165,7 +168,7 @@ alias buildtool='_abt() {
165168
# ensure directorys exists
166169
mkdir -p "${APOLLO_CONFIG_HOME}"
167170
mkdir -p "${CYBER_PATH}"
168-
mkdir -p "${APOLLO_ENV_ROOT}/apollo/data/log"
169-
mkdir -p "${APOLLO_ENV_ROOT}/apollo/data/core"
170-
mkdir -p "${APOLLO_ENV_ROOT}/apollo/data/bag"
171+
mkdir -p "${APOLLO_ENV_WORKROOT}/data/log"
172+
mkdir -p "${APOLLO_ENV_WORKROOT}/data/core"
173+
mkdir -p "${APOLLO_ENV_WORKROOT}/data/bag"
171174
mkdir -p "${APOLLO_ENV_ROOT}/apollo/modules/map/data"

aem/aem-create

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ parse_arguments() {
215215
--cpu)
216216
export APOLLO_ENV_USE_GPU_HOST=0
217217
;;
218+
--no-mount-env)
219+
export APOLLO_NO_MOUNT_ENV=1
220+
;;
218221
--)
219222
env_args+=($@)
220223
break

aem/buildtool.conf.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ march=-march=native
4949

5050
[setting]
5151
host=apollo.baidu.com
52-
version=9.0.0-rc1-r19
52+
version=10.0.0-rc1-r1
5353
request_timeout=5
5454

aem/conf_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
logging.basicConfig(format=FORMAT, level=logging.DEBUG)
3232
logger = logging.getLogger('apollo')
3333

34-
APOLLO_CONF_ROOT = '/apollo'
34+
APOLLO_CONF_ROOT = os.getenv("APOLLO_RUNTIME_PATH", '/apollo')
3535

3636

3737
def quit(signum, _):

aem/env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ else
2323
export AEM_HOME=${AEM_HOME:-$(dirname $(realpath $0))}
2424
fi
2525
export AEM_SYS_SHARE=${AEM_SYS_SHARE:-${AEM_HOME}/share/aem}
26+
export AEM_VERSION='10.0.0-rc1-r3'
2627

2728
export APOLLO_ENVS_ROOT=${APOLLO_ENVS_ROOT:-${HOME}/.aem/envs}
2829
export APOLLO_ENV_NAME="${USER}"

aem/funcs.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ apollo_create_hostenv() {
358358
local buildtool_version="10.0.0-beta-r1"
359359
# dpkg -x "/apollo_workspace/apollo-neo-buildtool_${buildtool_version}_amd64.deb" "${APOLLO_ENV_ROOT}"
360360
install -d -m 755 "${APOLLO_ENV_ROOT}/opt/apollo/neo/packages/buildtool/${buildtool_version}"
361-
wget -c "https://apollo-system.cdn.bcebos.com/archive/10.0/buildtool-${buildtool_version}.tar.gz" -O - | tar -zx -C "${APOLLO_ENV_ROOT}/opt/apollo/neo/packages/buildtool/${buildtool_version}" --strip-components=1
361+
wget --no-check-certificate -c "https://apollo-system.cdn.bcebos.com/archive/10.0/buildtool-${buildtool_version}.tar.gz" -O - | tar -zx -C "${APOLLO_ENV_ROOT}/opt/apollo/neo/packages/buildtool/${buildtool_version}" --strip-components=1
362362
subenv "${AEM_HOME}/buildtool.conf.tpl" "${APOLLO_ENV_ROOT}/opt/apollo/neo/packages/buildtool/${buildtool_version}/config/module.conf"
363363
ln -snf "${APOLLO_ENV_ROOT}/opt/apollo/neo/packages/buildtool/${buildtool_version}" "${APOLLO_ENV_ROOT}/opt/apollo/neo/packages/buildtool/latest"
364364
install -d -m 755 "${APOLLO_ENV_ROOT}/opt/apollo/neo/bin"
@@ -552,6 +552,8 @@ apollo_create_container_volume_options() {
552552
volume_opts+=('-v' '/tmp/.X11-unix:/tmp/.X11-unix:rw')
553553
# kernel modules
554554
volume_opts+=('-v' '/lib/modules:/lib/modules')
555+
# localtime
556+
volume_opts+=('-v' '/etc/localtime:/etc/localtime:ro')
555557
556558
# auca
557559
auca_sdk_so="/usr/lib/libapollo-auca-sdk.so.1"
@@ -572,10 +574,13 @@ apollo_create_container_volume_options() {
572574
volume_opts+=('-v' '/dev/null:/dev/raw1394')
573575
574576
# volume for apollo packages and configurations
575-
for x in {apollo,opt}; do
576-
local volume_name="${APOLLO_ENV_CONTAINER_PREFIX}${APOLLO_ENV_NAME}_${x}"
577-
volume_opts+=('-v' "${volume_name}:/${x}")
578-
done
577+
if [[ ${APOLLO_NO_MOUNT_ENV} -ne 1 ]]; then
578+
for x in {apollo,opt}; do
579+
local volume_name="${APOLLO_ENV_CONTAINER_PREFIX}${APOLLO_ENV_NAME}_${x}"
580+
volume_opts+=('-v' "${volume_name}:/${x}")
581+
done
582+
fi
583+
579584
580585
# volume of user shared configurations' and resources' directories
581586
volume_opts+=('-v' "${HOME}/.apollo:/home/${APOLLO_ENV_CONTAINER_USER}/.apollo")
@@ -658,7 +663,7 @@ apollo_container_download_arm_lib() {
658663
if [[ "${APOLLO_ENV_CROSS_PLATFORM}" == "aarch64" ]]; then
659664
info "download external library for cross-compilation..."
660665
local tegra_lib_url="https://apollo-pkg-beta.cdn.bcebos.com/archive/tegra.tar.gz"
661-
apollo_execute_cmd_in_container "cd ~ && wget -nv ${tegra_lib_url} && \
666+
apollo_execute_cmd_in_container "cd ~ && wget --no-check-certificate -nv ${tegra_lib_url} && \
662667
tar -xzvf ~/tegra.tar.gz -C /usr/lib/aarch64-linux-gnu/ > /dev/null"
663668
fi
664669
fi

aem/make_deb.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22

3-
VERSION=${VERSION:-10.0.0-rc1-r1}
3+
export SCRIPT_DIR=$(
4+
cd $(dirname $0)
5+
pwd
6+
)
7+
source ${SCRIPT_DIR}/env.sh
8+
9+
VERSION=${AEM_VERSION}
410
PKG_NAME="${PKG_NAME:-apollo-neo-env-manager-dev}"
511
CODE_NAME="${CODE_NAME:-$(lsb_release -cs)}"
612
ARCH="${ARCH:-$(dpkg --print-architecture)}"
@@ -32,6 +38,8 @@ EOF
3238
rm -f /etc/bash_completion.d/aem
3339
rm -f /usr/share/zsh/functions/Completion/Unix/_aem
3440
rm -f /usr/bin/aem
41+
rm -rf /opt/apollo/neo/packages/env-manager-dev
42+
rm -rf /usr/local/bin/aem
3543
EOF
3644
chmod +x "${build_dir}/DEBIAN/prerm"
3745

aem/run.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ aem_usage() {
203203
echo "Usage:
204204
$0 <subcommand> [...args]
205205
Subcommands:
206+
version Show aem version
206207
create|start Create and start a new environment
207208
remove Remove and stop an existing environment
208209
list List all available environments
@@ -258,6 +259,11 @@ aem() {
258259
return 0
259260
fi
260261

262+
if [[ "${cmd}" == "version" ]]; then
263+
colorize ${AEM_VERSION} ${CSI_SGR_PARAM_BOLD} ${CSI_SGR_PARAM_FG_BLUE}
264+
return 0
265+
fi
266+
261267
cmd_path="$(command -v "aem-${cmd}" || true)"
262268
if [[ -z "${cmd_path}" ]]; then
263269
if [[ -x "${SCRIPT_DIR}/aem-${cmd}" ]]; then
@@ -290,7 +296,7 @@ aem() {
290296
# return "${ret}"
291297
# fi
292298
}
293-
export -f aem
299+
# export -f aem
294300

295301
main() {
296302
if [[ (-L "$0") && ("$(type -t $(basename $0))" == "function") ]]; then
-93.2 KB
Loading

docs/08_Planning/hybrid_a_star_en.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,21 @@
44
The goal of htbrid_a_star is to generate the coarse trajectory in the open space. Hybrid_a_star contains node3d, grid_search, reeds_shepp_path and hybrid_a_star. hybrid_a_star is the most important component generating the coarse trajectory and call the grid_search and reeds_shepp_path.
55

66
# Where is the code
7-
Please refer to [hybrid a star.cc](https://github.com/ApolloAuto/apollo/tree/master/modules/planning/open_space/coarse_trajectory_generator/hybrid_a_star.cc)
7+
Please refer to [hybrid a star.cc](https://github.com/ApolloAuto/apollo/blob/master/modules/planning/planning_open_space/coarse_trajectory_generator/hybrid_a_star.cc)
88

99
# Code Reading
10-
1. Input: current point(planned start point), goal point(planned end point), ROI_xy_boundary(the maximum and minimum boundary value of x and y), obstacles vertices vector(the corner position information). The function is follow:
10+
1. Input: current point(planned start point), goal point(planned end point), ROI_xy_boundary(the maximum and minimum boundary value of x and y), obstacles vertices vector(the corner position information). Optional, soft_boundary_vertices_vec (vectors which want to far away), reeds_sheep_last_straight (is the rs curve straight). The function is follow:
1111
``` cpp
12-
bool HybridAStar::Plan(double sx, double sy, double sphi,
13-
double ex, double ey, double ephi,
14-
const std::vector<double>& XYbounds,
15-
const std::vector<std::vector<common::math::Vec2d>>& obstacles_vertices_vec,HybridAStartResult* result)
12+
bool HybridAStar::Plan(
13+
double sx, double sy, double sphi, double ex, double ey, double ephi,
14+
const std::vector<double>& XYbounds,
15+
const std::vector<std::vector<common::math::Vec2d>>& obstacles_vertices_vec,
16+
HybridAStartResult* result,
17+
const std::vector<std::vector<common::math::Vec2d>>&
18+
soft_boundary_vertices_vec,
19+
bool reeds_sheep_last_straight)
1620
```
17-
The input HybridAStar::Plan() is called by the open_space_trajectory_provider.cc, please refer to [open_space_trajectory_provider.cc](https://github.com/ApolloAuto/apollo/blob/master/modules/planning/tasks/optimizers/open_space_trajectory_generation/open_space_trajectory_provider.cc)
21+
The input HybridAStar::Plan() is called by the open_space_trajectory_provider.cc, please refer to [open_space_trajectory_provider.cc](https://github.com/ApolloAuto/apollo/blob/master/modules/planning/tasks/open_space_trajectory_provider/open_space_trajectory_provider.cc)
1822
1923
2. Construct obstacles_linesegment_vector. The main method is to form a line segment from a single obstacle point in order; then, each obstacle line segment is stored in obstacles_linesegment_vector that will be used to generate the DP map.
2024
``` cpp
@@ -32,7 +36,7 @@ The input HybridAStar::Plan() is called by the open_space_trajectory_provider.cc
3236
}
3337
obstacles_linesegments_vec_ = std::move(obstacles_linesegments_vec);
3438
```
35-
3. Construct the planned point same as Node3d, please refer to [node3d.h](https://github.com/ApolloAuto/apollo/blob/master/modules/planning/open_space/coarse_trajectory_generator/node3d.h). The planned starting point and the ending point are constructed in the form of Node3d that will be save to open set and will be checked by the ValidityCheck() function.
39+
3. Construct the planned point same as Node3d, please refer to [node3d.h](https://github.com/ApolloAuto/apollo/blob/master/modules/planning/planning_open_space/coarse_trajectory_generator/node3d.h). The planned starting point and the ending point are constructed in the form of Node3d that will be save to open set and will be checked by the ValidityCheck() function.
3640
``` cpp
3741
start_node_.reset(
3842
new Node3d({sx}, {sy}, {sphi}, XYbounds_, planner_open_space_config_));
@@ -68,19 +72,24 @@ The input HybridAStar::Plan() is called by the open_space_trajectory_provider.cc
6872
2. Boundary overlap judgment. If the bounding box of vehicle overlaps any line segment, then return false. Judge the overlap by whether the line and box intersect.
6973
7074
``` cpp
71-
bool GridSearch::GenerateDpMap(const double ex, const double ey,
72-
const std::vector<double>& XYbounds,
73-
const std::vector<std::vector<common::math::LineSegment2d>> &obstacles_linesegments_vec)
75+
bool GridSearch::GenerateDpMap(
76+
const double ex,
77+
const double ey,
78+
const std::vector<double>& XYbounds,
79+
const std::vector<std::vector<common::math::LineSegment2d>>&
80+
obstacles_linesegments_vec,
81+
const std::vector<std::vector<common::math::LineSegment2d>>&
82+
soft_boundary_linesegments_vec)
7483
```
75-
the function is used to generate dp map by dynamic programming, please refer (https://github.com/ApolloAuto/apollo/blob/master/modules/planning/open_space/coarse_trajectory_generator/grid_search.cc)
76-
1. Parameter: ex and ey are the postion of goal point, XYbounds_ is the boundary of x and y, obstacles_linesegments_ is the line segments which is composed of boundary point.
84+
the function is used to generate dp map by dynamic programming, please refer [grid_search.cc](https://github.com/ApolloAuto/apollo/blob/master/modules/planning/planning_open_space/coarse_trajectory_generator/grid_search.cc)
85+
1. Parameter: ex and ey are the postion of goal point, XYbounds_ is the boundary of x and y, obstacles_linesegments_ is the line segments which is composed of boundary point.
7786
2. Introduction: the function is used to generate the dp map
7887
3. Process detail:
7988
1. Grid the XYbounds_ according to grid resolution, then get the max grid.
8089
2. Dp map store the cost of node.
8190
8291
``` cpp
83-
bool HybridAStar::AnalyticExpansion(std::shared_ptr<Node3d> current_node)
92+
bool HybridAStar::AnalyticExpansion(std::shared_ptr<Node3d> current_node, std::shared_ptr<Node3d>* candidate_final_node)
8493
```
8594
The function is used to check if an analystic curve could be connected from current configuration to the end configuration without collision. if so, search ends.
8695
1. Parameter: current node is start point of planning.
@@ -91,7 +100,7 @@ The input HybridAStar::Plan() is called by the open_space_trajectory_provider.cc
91100
3. Load the whole reeds shepp path as nodes and add nodes to the close set.
92101
93102
``` cpp
94-
bool HybridAStar::AnalyticExpansion(std::shared_ptr<Node3d> current_node)
103+
bool HybridAStar::AnalyticExpansion(std::shared_ptr<Node3d> current_node, std::shared_ptr<Node3d>* candidate_final_node)
95104
```
96105
The funtion is used to generate next node based on the current node.
97106
1. Parameter: the current node of the search and the next node serial number

0 commit comments

Comments
 (0)