Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
20dc890
D-KIT: add perception_conf to calibration modules (#12652) (#12662)
SeasoulChris Sep 24, 2020
60491c0
D-KIT:modify sensor_calibration_cn.md (#12661) (#12664)
SeasoulChris Sep 24, 2020
7c317cf
D-KIT:add more details about how to use cyber_monitor (#12688) (#12706)
SeasoulChris Sep 30, 2020
ab47fdb
Tools: multi lidars data extraction available in data extract tool (#…
SeasoulChris Oct 12, 2020
e2ca85d
D-KIT: add radar dag file to calibration (#12752) (#12753)
SeasoulChris Oct 12, 2020
d94dc35
User Manual for Apollo_D_Kit_V4 (#12756) (#12763)
cuishan2018 Oct 13, 2020
358f646
driver: change the socket can filter for devkit (#12777)
macDure Oct 15, 2020
d8507e8
Docs: DKIT: refactor the dkit vehicle guide folder structure (#12768)…
macDure Oct 15, 2020
133ffdd
Drivers: add drivers to support RoboSense LiDAR (#12348) (#12789)
yfcube Oct 16, 2020
ebc030f
cyber_start.sh: "-g cn" now uses registry.baidubce.com as registry fo…
storypku Oct 19, 2020
1d92ec5
dev_start.sh: registry.baidubce.com for CN
storypku Oct 19, 2020
260b329
D-Kit : Add localization timer (#12796) (#12834)
lishuanghua Oct 22, 2020
8a02294
Scripts: log dir, fix issue #12831 (#12845)
lishuanghua Oct 23, 2020
ee1527d
correct calibration files (#12817)
zyc0222 Oct 27, 2020
743dbe2
cyber_recorder: add support for black listing topic names in record l…
shr-project Oct 21, 2020
6c6046c
record_bag.py: use blacklist for large topics
shr-project Oct 21, 2020
c2208cb
record_bag.py: include non-compressed camera images in LARGE_TOPICS
shr-project Oct 21, 2020
42e1a3d
record_bag.py: sort LARGE_TOPICS in alphabetical order
shr-project Oct 21, 2020
1d605bd
record_bag.sh: remove unused list of topics
shr-project Oct 21, 2020
501e5f6
scripts/record_bag.py: change the default stop signal from SIGTERM to…
shr-project Oct 26, 2020
8d8d057
Canbus: add the battery soc info in vehicle ch and dev_kit (#12911)
macDure Nov 4, 2020
4e1b598
cyber_recorder: record another bag of small topics when --all is spec…
Nov 4, 2020
0e93ab0
add default main_sensor in data extract tool (#12941) (#12942)
SeasoulChris Nov 9, 2020
9046295
D-KIT:modify Lidar_Based_Auto_Driving/sensor_calibration_cn.md to adj…
SeasoulChris Nov 9, 2020
4d02587
docs: D-KIT: fix the vehicle calibration guide some mistakes (#12972)
macDure Nov 12, 2020
aaf1b5b
D-Kit : Modified the method of cloning the apollo code (#12983)
lishuanghua Nov 13, 2020
b0800e5
Docs : Add the how_to_clone_apollo_repo_from_china.md to branch r6.0.…
lishuanghua Nov 13, 2020
20ad631
update name of dev kit advanced sne-r (#12913) (#12988)
SeasoulChris Nov 13, 2020
109ad4c
D-KIT add pointcloud_preprocessor.conf to calibration module (#12968)…
SeasoulChris Nov 13, 2020
5eccb59
D-Kit : Modified the localization_configuration_cn.md file (#13003)
lishuanghua Nov 16, 2020
1ad7e32
BOS: change apollo-platform to apollo-system
Oct 20, 2020
4e2b68e
BOS: fix leave links
lx18233184051 Nov 16, 2020
1fdba2a
libtorch and qt5 revert
lx18233184051 Nov 17, 2020
7b20454
D-Kit : Update the localization_configuration_cn.md file (#13023)
lishuanghua Nov 17, 2020
61bd233
Drivers: rearrange driver files and configurations
lfcarol Nov 16, 2020
bb194c8
D-Kit : Add the git operations to the apollo_installation_cn.md file …
lishuanghua Nov 30, 2020
bb5a70b
D-KIT: correct default lidar_extrinsics_file in localization_conf (#1…
SeasoulChris Dec 1, 2020
c9972a6
Monitor : Change the monitored GPS signal from GnssStatus and InsStat…
lishuanghua Dec 2, 2020
b78ce5d
Canbus: update battery info for good display in D-KIT (#13110) (#13118)
macDure Dec 3, 2020
b02eedf
Revert "Canbus: update battery info for good display in D-KIT (#13110…
macDure Dec 3, 2020
be76c4d
canbus: update the devkit battery soc and ch battery info (#13120)
macDure Dec 3, 2020
75982c0
D-Kit : Separate the reinstall_my_apollo_system_cn.md from apollo_ins…
lishuanghua Dec 4, 2020
e5b5fd4
monitor: add pointcloud_16_topic to monitor module (#13184)
SeasoulChris Dec 14, 2020
bfda4a5
D-Kit : Update the apollo_installation_cn.md file (#13211)
lishuanghua Dec 17, 2020
7762c91
Map: Update Borregas map for LGSVL 2020.06
lemketron Jan 6, 2021
0071172
modify Camera_Based_Auto_Driving/sensor_integration_cn.md (#13342) (#…
SeasoulChris Jan 19, 2021
ec23bc8
D-KIT:modify docs of sensor-calibration based on fuel-client (#13373)…
SeasoulChris Feb 1, 2021
dfb1a10
Update BUILD
qwetqwe Mar 4, 2021
564e405
seperate vehicle config files (#13707)
SeasoulChris Apr 19, 2021
91dd437
Velodyne: fix a bug: base_time couldn't update on the hour (#13920) (…
SeasoulChris Jul 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ http_archive(
name = "bazel_skylib",
sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
urls = [
"https://apollo-platform-system.cdn.bcebos.com/archive/6.0/bazel-skylib-1.0.3.tar.gz",
"https://apollo-system.cdn.bcebos.com/archive/6.0/bazel-skylib-1.0.3.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
],
)
Expand All @@ -23,7 +23,7 @@ http_archive(
sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
urls = [
"https://apollo-platform-system.cdn.bcebos.com/archive/6.0/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
"https://apollo-system.cdn.bcebos.com/archive/6.0/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
],
)
Expand All @@ -39,7 +39,7 @@ http_archive(
sha256 = "b5668cde8bb6e3515057ef465a35ad712214962f0b3a314e551204266c7be90c",
strip_prefix = "rules_python-0.0.2",
urls = [
"https://apollo-platform-system.cdn.bcebos.com/archive/6.0/rules_python-0.0.2.tar.gz",
"https://apollo-system.cdn.bcebos.com/archive/6.0/rules_python-0.0.2.tar.gz",
"https://github.com/bazelbuild/rules_python/releases/download/0.0.2/rules_python-0.0.2.tar.gz",
],
)
Expand All @@ -66,7 +66,7 @@ http_archive(
sha256 = "419dba362eaf8f1d36849ceee17c3e2ff8ff12ac666b42d3ff02a164ebe090e9",
strip_prefix = "grpc-1.30.0",
urls = [
"https://apollo-platform-system.cdn.bcebos.com/archive/6.0/v1.30.0.tar.gz",
"https://apollo-system.cdn.bcebos.com/archive/6.0/v1.30.0.tar.gz",
"https://github.com/grpc/grpc/archive/v1.30.0.tar.gz",
],
)
Expand Down
3 changes: 2 additions & 1 deletion cyber/doxy-docs/source/CyberRT_Developer_Tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ $ cyber_recorder record -h
usage: cyber_recorder record [options]
-o, --output <file> output record file
-a, --all all channels
-c, --channel <name> channel name
-c, --white-channel <name> only record the specified channel
-k, --black-channel <name> not record the specified channel
-i, --segment-interval <seconds> record segmented every n second(s)
-m, --segment-size <MB> record segmented every n megabyte(s)
-h, --help show help message
Expand Down
1 change: 1 addition & 0 deletions cyber/tools/cyber_node/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ py_binary(
srcs = ["cyber_node.py"],
deps = [
"//cyber/python/cyber_py3:cyber",
"//cyber/proto:role_attributes_py_pb2"
],
)
5 changes: 3 additions & 2 deletions cyber/tools/cyber_recorder/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ using apollo::cyber::record::Recoverer;
using apollo::cyber::record::Spliter;

const char INFO_OPTIONS[] = "h";
const char RECORD_OPTIONS[] = "o:ac:i:m:h";
const char RECORD_OPTIONS[] = "o:ac:k:i:m:h";
const char PLAY_OPTIONS[] = "f:ac:k:lr:b:e:s:d:p:h";
const char SPLIT_OPTIONS[] = "f:o:c:k:b:e:h";
const char RECOVER_OPTIONS[] = "f:o:h";
Expand Down Expand Up @@ -424,7 +424,8 @@ int main(int argc, char** argv) {
}
::apollo::cyber::Init(argv[0]);
auto recorder = std::make_shared<Recorder>(opt_output_vec[0], opt_all,
opt_white_channels, opt_header);
opt_white_channels,
opt_black_channels, opt_header);
bool record_result = recorder->Start();
if (record_result) {
while (!::apollo::cyber::IsShutdown()) {
Expand Down
38 changes: 31 additions & 7 deletions cyber/tools/cyber_recorder/recorder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,37 @@ namespace cyber {
namespace record {

Recorder::Recorder(const std::string& output, bool all_channels,
const std::vector<std::string>& channel_vec)
: output_(output), all_channels_(all_channels), channel_vec_(channel_vec) {
const std::vector<std::string>& white_channels,
const std::vector<std::string>& black_channels)
: output_(output),
all_channels_(all_channels),
white_channels_(white_channels),
black_channels_(black_channels) {
header_ = HeaderBuilder::GetHeader();
}

Recorder::Recorder(const std::string& output, bool all_channels,
const std::vector<std::string>& channel_vec,
const std::vector<std::string>& white_channels,
const std::vector<std::string>& black_channels,
const proto::Header& header)
: output_(output),
all_channels_(all_channels),
channel_vec_(channel_vec),
white_channels_(white_channels),
black_channels_(black_channels),
header_(header) {}

Recorder::~Recorder() { Stop(); }

bool Recorder::Start() {
for (const auto& channel_name : white_channels_) {
if (std::find(black_channels_.begin(), black_channels_.end(),
channel_name) != black_channels_.end()) {
AERROR << "find channel in both of white list and black list, channel: "
<< channel_name;
return false;
}
}

writer_.reset(new RecordWriter(header_));
if (!writer_->Open(output_)) {
AERROR << "Datafile open file error.";
Expand Down Expand Up @@ -110,11 +125,20 @@ void Recorder::FindNewChannel(const RoleAttributes& role_attr) {
return;
}
if (!all_channels_ &&
std::find(channel_vec_.begin(), channel_vec_.end(),
role_attr.channel_name()) == channel_vec_.end()) {
ADEBUG << "New channel was found, but not in record list.";
std::find(white_channels_.begin(), white_channels_.end(),
role_attr.channel_name()) == white_channels_.end()) {
ADEBUG << "New channel '" << role_attr.channel_name()
<< "' was found, but not in record list.";
return;
}

if (std::find(black_channels_.begin(), black_channels_.end(),
role_attr.channel_name()) != black_channels_.end()) {
ADEBUG << "New channel '" << role_attr.channel_name()
<< "' was found, but it appears in the blacklist.";
return;
}

if (channel_reader_map_.find(role_attr.channel_name()) ==
channel_reader_map_.end()) {
if (!writer_->WriteChannel(role_attr.channel_name(),
Expand Down
9 changes: 6 additions & 3 deletions cyber/tools/cyber_recorder/recorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ namespace record {
class Recorder : public std::enable_shared_from_this<Recorder> {
public:
Recorder(const std::string& output, bool all_channels,
const std::vector<std::string>& channel_vec);
const std::vector<std::string>& white_channels,
const std::vector<std::string>& black_channels);
Recorder(const std::string& output, bool all_channels,
const std::vector<std::string>& channel_vec,
const std::vector<std::string>& white_channels,
const std::vector<std::string>& black_channels,
const proto::Header& header);
~Recorder();
bool Start();
Expand All @@ -64,7 +66,8 @@ class Recorder : public std::enable_shared_from_this<Recorder> {
Connection<const ChangeMsg&> change_conn_;
std::string output_;
bool all_channels_ = true;
std::vector<std::string> channel_vec_;
std::vector<std::string> white_channels_;
std::vector<std::string> black_channels_;
proto::Header header_;
std::unordered_map<std::string, std::shared_ptr<ReaderBase>>
channel_reader_map_;
Expand Down
2 changes: 1 addition & 1 deletion docker/build/installers/install_adv_plat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fi

PKG_NAME="apollo-contrib-baidu-1.0.tar.gz"
CHECKSUM="cd385dae6d23c6fd70c2c0dcd0ce306241f84a638f50988c6ca52952c304bbec"
DOWNLOAD_LINK="https://apollo-platform-system.bj.bcebos.com/archive/6.0/${PKG_NAME}"
DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}"

download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}"

Expand Down
4 changes: 2 additions & 2 deletions docker/build/installers/install_bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ elif [ "$TARGET_ARCH" == "aarch64" ]; then

BUILDTOOLS_VERSION="3.3.0"
PKG_NAME="buildifier-${BUILDTOOLS_VERSION}-linux-arm64"
CHECKSUM="11df20761f6a14adcc21ea684225e029d6a5f4a881eb3477ea8c24afda316bdf"
DOWNLOAD_LINK="https://apollo-platform-system.bj.bcebos.com/archive/6.0/${PKG_NAME}"
CHECKSUM="19d5b358cb099e264086b26091661fd7548df0a2400e47fd98238cfe0a3e67f9"
DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}"
download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}"

cp -f ${PKG_NAME} "${SYSROOT_DIR}/bin/buildifier"
Expand Down
2 changes: 1 addition & 1 deletion docker/build/installers/install_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ elif [[ "${TARGET_ARCH}" == "aarch64" ]]; then
CHECKSUM="53056707081491123e705db30df6e38685f9661dc593e1790950c4ba399d3490"
DECOMPRESSED_NAME="cmake-${VERSION}-aarch64-linux-gnu"
PKG_NAME="${DECOMPRESSED_NAME}.tar.gz"
DOWNLOAD_LINK="https://apollo-platform-system.bj.bcebos.com/archive/6.0/${PKG_NAME}"
DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}"
download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}"
tar xzf "${PKG_NAME}"
pushd ${DECOMPRESSED_NAME}
Expand Down
2 changes: 1 addition & 1 deletion docker/build/installers/install_device_query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ else
exit 1
fi

DOWNLOAD_LINK="https://apollo-platform-system.cdn.bcebos.com/archive/6.0/${DEVICE_QUERY_BINARY}"
DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${DEVICE_QUERY_BINARY}"
download_if_not_cached "${DEVICE_QUERY_BINARY}" "${CHECKSUM}" "${DOWNLOAD_LINK}"

[[ -d "${DEMO_SUITE_DEST_DIR}" ]] || mkdir -p "${DEMO_SUITE_DEST_DIR}"
Expand Down
4 changes: 2 additions & 2 deletions docker/build/installers/install_fast-rtps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ DEST_DIR="/usr/local/fast-rtps"
if [[ "${TARGET_ARCH}" == "x86_64" ]]; then
PKG_NAME="fast-rtps-1.5.0.prebuilt.x86_64.tar.gz"
CHECKSUM="ca0534db4f757cb41a9feaebac07a13dd4b63af0a217b2cb456e20b0836bc797"
DOWNLOAD_LINK="https://apollo-platform-system.bj.bcebos.com/archive/6.0/${PKG_NAME}"
DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}"

download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}"

Expand All @@ -51,7 +51,7 @@ if [[ "${TARGET_ARCH}" == "x86_64" ]]; then
else # aarch64
PKG_NAME="fast-rtps-1.5.0.prebuilt.aarch64.tar.gz"
CHECKSUM="061da391763949e39ed0ac4d0596112818e8692b938aa845d54fac1a1aa550db"
DOWNLOAD_LINK="https://apollo-platform-system.bj.bcebos.com/archive/6.0/${PKG_NAME}"
DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}"

download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}"
tar xzf ${PKG_NAME}
Expand Down
3 changes: 2 additions & 1 deletion docker/build/installers/install_jetson_ml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
set -e
cd "$(dirname "${BASH_SOURCE[0]}")"

LOCAL_HTTP_ADDR="http://172.17.0.1:8388"
# PKG_DOWNLOAD_ADDR="http://172.17.0.1:8388"
PKG_DOWNLOAD_ADDR="https://apollo-system.cdn.bcebos.com/archive/6.0"

apt-get -y update && \
apt-get -y install --no-install-recommends \
Expand Down
43 changes: 12 additions & 31 deletions docker/scripts/cyber_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ USE_GPU_HOST=0
USE_LOCAL_IMAGE=0
CUSTOM_VERSION=
GEOLOC=
GEO_REGISTRY=

# Check whether user has agreed license agreement
function check_agreement() {
Expand Down Expand Up @@ -259,37 +260,14 @@ function determine_target_version_and_arch() {
CUSTOM_VERSION="${version}"
}

function _geo_specific_config_for_cn() {
local docker_cfg="/etc/docker/daemon.json"
if [ -e "${docker_cfg}" ] && \
jq '."registry-mirrors"[]' "${docker_cfg}" &>/dev/null ; then
echo "Existing registry mirrors in found ${docker_cfg} and will be used."
return
fi

if [ ! -e "${docker_cfg}" ]; then
echo "{\"experimental\":true, \"registry-mirrors\":[ \
\"http://hub-mirror.c.163.com\", \
\"https://reg-mirror.qiniu.com\", \
\"https://dockerhub.azk8s.cn\" \
]}" | jq -s ".[]" | sudo tee -a "${docker_cfg}"
else
local tmpfile="$(mktemp /tmp/docker.daemon.XXXXXX)"
jq '.+={"registry-mirrors":["http://hub-mirror.c.163.com","https://reg-mirror.qiniu.com","https://dockerhub.azk8s.cn"]}' \
"${docker_cfg}" > "${tmpfile}"
sudo cp -f "${tmpfile}" "${docker_cfg}"
fi
service docker restart
}

function geo_specific_config() {
local geo="$1"
if [[ -z "${geo}" ]]; then
return
fi
info "Setup geolocation specific configurations for ${geo}"
if [[ "${geo}" == "cn" ]]; then
_geo_specific_config_for_cn
GEO_REGISTRY="registry.baidubce.com"
fi
}

Expand Down Expand Up @@ -372,12 +350,15 @@ function setup_devices_and_mount_volumes() {

local os_release="$(lsb_release -rs)"
case "${os_release}" in
14.04)
warning "[Deprecated] Support for Ubuntu 14.04 will be removed" \
16.04)
# Mount host devices into container (/dev)
warning "[Deprecated] Support for Ubuntu 16.04 will be removed" \
"in the near future. Please upgrade to ubuntu 18.04+."
if [[ "${HOST_ARCH}" == "${TARGET_ARCH}" ]]; then
volumes="${volumes} -v /dev:/dev"
fi
;;
16.04|18.04|20.04|*)
## Question(storypku): Any special considerations here ?
18.04|20.04|*)
if [[ "${HOST_ARCH}" == "${TARGET_ARCH}" ]]; then
volumes="${volumes} -v /dev:/dev"
fi
Expand Down Expand Up @@ -420,9 +401,11 @@ function docker_pull_if_needed() {
return
fi

# Note(storypku): use may-be-modified ${DOCKER_REPO}
image="${DOCKER_REPO}:${image##*:}"
echo "Start pulling docker image: ${image}"
if [[ -n "${GEO_REGISTRY}" ]]; then
image="${GEO_REGISTRY}/${image}"
fi
if ! ${DOCKER_PULL_CMD} "${image}"; then
error "Failed to pull docker image: ${image}"
exit 1
Expand Down Expand Up @@ -535,8 +518,6 @@ function main() {
geo_specific_config "${GEOLOC}"
docker_pull_if_needed "${image}" "${USE_LOCAL_IMAGE}"

image="${DOCKER_REPO}:${CUSTOM_VERSION}"

remove_existing_cyber_container

determine_gpu_use_host
Expand Down
Loading