-
Notifications
You must be signed in to change notification settings - Fork 5
Perception lidar #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sunzengpeng
wants to merge
20
commits into
master
Choose a base branch
from
perception_lidar
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Perception lidar #73
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
3f4c13f
optimize demo
sunzengpeng 3a6567f
record obst data
sunzengpeng a2ad452
Merge branch 'master' into perception_lidar
sunzengpeng 4b3551c
add receive pointcloud obst part and optimize demo format
sunzengpeng 07a9d92
add 8 regions to determine obst position
sunzengpeng 4acfaf4
add pointpillars
sunzengpeng e2f7a18
fix can not use gpu bug
sunzengpeng 39ebe13
merge master
sunzengpeng 1e01a0c
merge master
sunzengpeng 85d10b9
remove conflict
sunzengpeng fb6a8f2
Update README.md
sunzengpeng 6ff9aca
Update cyber_start.sh
sunzengpeng 990c76e
change image
sunzengpeng d32b2ab
Merge branch 'perception_lidar' of github.com:HotzoneAuto/diamond-aut…
sunzengpeng 4ae55e8
Update ccpp.yml
sunzengpeng 129e401
add obst viewer
sunzengpeng 5aeeb48
add tracking part
sunzengpeng c0b5624
change image
sunzengpeng 15cea64
Update cyber_start.sh
sunzengpeng dda7af7
merge master
sunzengpeng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,4 +1,24 @@ | ||
| build --action_env PYTHON_BIN_PATH="/usr/bin/python3" | ||
| build --action_env PYTHON_LIB_PATH="/usr/lib/python3/dist-packages" | ||
| build --python_path="/usr/bin/python3" | ||
| # build --config=tensorrt | ||
| startup --output_user_root="/apollo/.cache/bazel" | ||
| common --distdir="/apollo/.cache/distdir" | ||
|
|
||
| build --action_env PYTHON_BIN_PATH="/usr/bin/python3.6" | ||
| build --action_env PYTHON_LIB_PATH="/usr/local/lib/python3.6/dist-packages" | ||
| build --python_path="/usr/bin/python3.6" | ||
| build:gpu --config=cuda | ||
| build:gpu --config=tensorrt | ||
|
|
||
| build --action_env CUDA_TOOLKIT_PATH="/usr/local/cuda-10.2" | ||
| build --action_env TF_CUDA_COMPUTE_CAPABILITIES="3.7,5.2,6.0,6.1,7.0,7.2,7.5" | ||
| build --action_env GCC_HOST_COMPILER_PATH="/usr/bin/x86_64-linux-gnu-gcc-7" | ||
|
|
||
| # This config refers to building with CUDA available. | ||
| build:using_cuda --define=using_cuda=true | ||
| build:using_cuda --action_env TF_NEED_CUDA=1 | ||
| build:using_cuda --crosstool_top=@local_config_cuda//crosstool:toolchain | ||
|
|
||
| # This config refers to building CUDA with nvcc. | ||
| build:cuda --config=using_cuda | ||
| build:cuda --define=using_cuda_nvcc=true | ||
|
|
||
| build:tensorrt --action_env TF_NEED_TENSORRT=1 | ||
| build:teleop --define WITH_TELEOP=true |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ build all modules | |
|
|
||
|
|
||
| ```bash | ||
| bash apollo.sh build | ||
| bash apollo.sh build_gpu | ||
| ``` | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| obst_output_channel: "/diamond/perception/Obstacles" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Channel name should be lower case. |
||
| save_pcd_file: false | ||
| save_pcd_path_front: "/apollo/modules/perception/data/lidar_front.pcd" | ||
| save_pcd_path_rear: "/apollo/modules/perception/data/lidar_rear.pcd" | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: "HmObjectTracker" | ||
| version: "1.1.0" | ||
| matcher_method: HUNGARIAN_MATCHER | ||
| filter_method: KALMAN_FILTER | ||
| track_cached_history_size_maximum: 5 | ||
| track_consecutive_invisible_maximum: 1 | ||
| track_visible_ratio_minimum: 0.6 | ||
| collect_age_minimum: 0 | ||
| collect_consecutive_invisible_maximum: 0 | ||
| acceleration_noise_maximum: 5 | ||
| speed_noise_maximum: 0.4 | ||
| match_distance_maximum: 4.0 | ||
| location_distance_weight: 0.6 | ||
| direction_distance_weight: 0.2 | ||
| bbox_size_distance_weight: 0.1 | ||
| point_num_distance_weight: 0.1 | ||
| histogram_distance_weight: 0.5 | ||
| histogram_bin_size: 10 | ||
| use_adaptive: true | ||
| measurement_noise: 0.4 | ||
| initial_velocity_noise: 5.0 | ||
| xy_propagation_noise: 10.0 | ||
| z_propagation_noise: 10.0 | ||
| breakdown_threshold_maximum: 10.0 |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Define all coms in DAG streaming. | ||
| module_config { | ||
| module_library : "/apollo/bazel-bin/modules/perception/lidar_point_pillars/point_pillars_detection.so" | ||
| components { | ||
| class_name : "PointPillarsDetection" | ||
| config { | ||
| name : "point_detect" | ||
| config_file_path: "/apollo/modules/perception/conf/lidar_poindcloud_conf.pb.txt" | ||
| readers { | ||
| channel: "/diamond/sensor/lidar/front/PointCloud2" | ||
| } | ||
| readers { | ||
| channel: "/diamond/sensor/lidar/rear/PointCloud2" | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -2,9 +2,10 @@ | |
| module_config { | ||
| module_library : "/apollo/bazel-bin/modules/perception/lidar_pointcloudcluster/lidar_pointcloudcluster.so" | ||
| components { | ||
| class_name : "lidar_pointcloudcluster" | ||
| class_name : "Lidar_pointcloudcluster" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Class name naming style |
||
| config { | ||
| name : "lidar_front" | ||
| config_file_path: "/apollo/modules/perception/conf/lidar_poindcloud_conf.pb.txt" | ||
| readers { | ||
| channel: "/diamond/sensor/lidar/front/PointCloud2" | ||
| } | ||
|
|
||
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <cyber> | ||
| <module> | ||
| <name>common</name> | ||
| <dag_conf>/apollo/modules/perception/dag/lidar_point_pillars.dag</dag_conf> | ||
| <process_name>lidar_point_pillars</process_name> | ||
| </module> | ||
| </cyber> |
2 changes: 1 addition & 1 deletion
2
...oudcluster/lidar_pointcloudcluster.launch → ...ion/launch/lidar_pointcloudcluster.launch
This file contains hidden or 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,7 +1,7 @@ | ||
| <cyber> | ||
| <module> | ||
| <name>common</name> | ||
| <dag_conf>/apollo/modules/perception/lidar_pointcloudcluster/lidar_pointcloudcluster.dag</dag_conf> | ||
| <dag_conf>/apollo/modules/perception/dag/lidar_pointcloudcluster.dag</dag_conf> | ||
| <process_name>lidar_pointcloudcluster</process_name> | ||
| </module> | ||
| </cyber> |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| load("@rules_cc//cc:defs.bzl", "cc_library", "cc_binary") | ||
| load("@local_config_cuda//cuda:build_defs.bzl", "cuda_library") | ||
| load("//tools:cpplint.bzl", "cpplint") | ||
|
|
||
| package(default_visibility = ["//visibility:public"]) | ||
|
|
||
| cc_binary( | ||
| name = "point_pillars_detection.so", | ||
| linkopts = ["-shared"], | ||
| linkshared = True, | ||
| linkstatic = False, | ||
| deps = [":point_pillars_detection"], | ||
| ) | ||
|
|
||
| cc_library( | ||
| name = "point_pillars_detection", | ||
| srcs = [ | ||
| "point_pillars_detection.cc", | ||
| ], | ||
| hdrs = [ | ||
| "point_pillars_detection.h", | ||
| ], | ||
| deps = [ | ||
| ":point_pillars", | ||
| "//cyber", | ||
| "//modules/drivers/proto:pointcloud_cc_proto", | ||
| "//modules/perception/proto:obst_box_cc_proto", | ||
| "//modules/perception/proto:lidar_pointcloud_conf_cc_proto", | ||
| "//modules/perception/lidar_pointcloud_tracking:hm_tracker", | ||
| "//modules/perception/lidar_pointcloud_tracking/common:object", | ||
| "//modules/perception/lidar_pointcloud_tracking:min_box", | ||
| "//modules/common/time", | ||
| "@eigen", | ||
| "@pcl", | ||
| "@local_config_vtk//:vtk", | ||
| ], | ||
| alwayslink = True, | ||
| ) | ||
|
|
||
| cc_library( | ||
| name = "params", | ||
| hdrs = ["params.h"], | ||
| ) | ||
|
|
||
| cc_library( | ||
| name = "point_pillars", | ||
| srcs = [ | ||
| "point_pillars.cc", | ||
| ], | ||
| hdrs = [ | ||
| "point_pillars.h", | ||
| ], | ||
| deps = [ | ||
| ":anchor_mask_cuda", | ||
| ":common", | ||
| ":nms_cuda", | ||
| ":params", | ||
| ":postprocess_cuda", | ||
| ":preprocess_points", | ||
| ":scatter_cuda", | ||
| "//cyber/common", | ||
| "//third_party:libtorch", | ||
| "@local_config_cuda//cuda:cudart", | ||
| "@local_config_tensorrt//:tensorrt", | ||
| ], | ||
| alwayslink = True, | ||
| ) | ||
|
|
||
| cc_library( | ||
| name = "preprocess_points", | ||
| srcs = [ | ||
| "preprocess_points.cc", | ||
| ], | ||
| hdrs = [ | ||
| "preprocess_points.h", | ||
| ], | ||
| deps = [ | ||
| ":common", | ||
| ":preprocess_points_cuda", | ||
| ], | ||
| ) | ||
|
|
||
| cc_library( | ||
| name = "common", | ||
| hdrs = ["common.h"], | ||
| ) | ||
|
|
||
| cuda_library( | ||
| name = "anchor_mask_cuda", | ||
| srcs = ["anchor_mask_cuda.cu"], | ||
| hdrs = ["anchor_mask_cuda.h"], | ||
| deps = [ | ||
| ":common", | ||
| "@local_config_cuda//cuda:cudart", | ||
| ], | ||
| ) | ||
|
|
||
| cuda_library( | ||
| name = "nms_cuda", | ||
| srcs = ["nms_cuda.cu"], | ||
| hdrs = ["nms_cuda.h"], | ||
| deps = [ | ||
| ":common", | ||
| "@local_config_cuda//cuda:cudart", | ||
| ], | ||
| ) | ||
|
|
||
| cuda_library( | ||
| name = "postprocess_cuda", | ||
| srcs = ["postprocess_cuda.cu"], | ||
| hdrs = ["postprocess_cuda.h"], | ||
| deps = [ | ||
| ":common", | ||
| ":nms_cuda", | ||
| "@local_config_cuda//cuda:cudart", | ||
| ], | ||
| ) | ||
|
|
||
| cuda_library( | ||
| name = "preprocess_points_cuda", | ||
| srcs = ["preprocess_points_cuda.cu"], | ||
| hdrs = ["preprocess_points_cuda.h"], | ||
| deps = [ | ||
| ":common", | ||
| "@local_config_cuda//cuda:cudart", | ||
| ], | ||
| ) | ||
|
|
||
| cuda_library( | ||
| name = "scatter_cuda", | ||
| srcs = ["scatter_cuda.cu"], | ||
| hdrs = ["scatter_cuda.h"], | ||
| deps = [ | ||
| ":common", | ||
| "@local_config_cuda//cuda:cudart", | ||
| ], | ||
| ) | ||
|
|
||
| cpplint() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to address if you build without perception, use
apollo.sh build, if not ,useapollo.sh build_gpu