-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implemented a cuda accelerated pointcloud concatenation and int…
…egrated it with the cuda blackboard Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
- Loading branch information
Showing
14 changed files
with
1,122 additions
and
219 deletions.
There are no files selected for viewing
This file contains 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
1 change: 1 addition & 0 deletions
1
sensing/autoware_pointcloud_preprocessor/config/concatenate_and_time_sync_node.param.yaml
This file contains 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,5 +1,6 @@ | ||
/**: | ||
ros__parameters: | ||
use_cuda: false | ||
debug_mode: false | ||
has_static_tf_only: false | ||
rosbag_replay: false | ||
|
This file contains 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 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
61 changes: 61 additions & 0 deletions
61
...nclude/autoware/pointcloud_preprocessor/concatenate_data/combine_cloud_handler_kernel.hpp
This file contains 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,61 @@ | ||
// Copyright 2024 TIER IV, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef AUTOWARE__POINTCLOUD_PREPROCESSOR__CONCATENATE_DATA__COMBINE_CLOUD_HANDLER_KERNEL_HPP_ | ||
#define AUTOWARE__POINTCLOUD_PREPROCESSOR__CONCATENATE_DATA__COMBINE_CLOUD_HANDLER_KERNEL_HPP_ | ||
|
||
#ifdef USE_CUDA | ||
#include <cuda_runtime.h> | ||
#endif | ||
|
||
#include <cstdint> | ||
|
||
namespace autoware::pointcloud_preprocessor | ||
{ | ||
|
||
struct TransformStruct | ||
{ | ||
float translation_x; | ||
float translation_y; | ||
float translation_z; | ||
float m11; | ||
float m12; | ||
float m13; | ||
float m21; | ||
float m22; | ||
float m23; | ||
float m31; | ||
float m32; | ||
float m33; | ||
}; | ||
|
||
struct PointTypeStruct | ||
{ | ||
float x; | ||
float y; | ||
float z; | ||
std::uint8_t intensity; | ||
std::uint8_t return_type; | ||
std::uint16_t channel; | ||
}; | ||
|
||
#ifdef USE_CUDA | ||
void transform_launch( | ||
const PointTypeStruct * input_points, int num_points, TransformStruct transform, | ||
PointTypeStruct * output_points, cudaStream_t & stream); | ||
#endif | ||
|
||
} // namespace autoware::pointcloud_preprocessor | ||
|
||
#endif // AUTOWARE__POINTCLOUD_PREPROCESSOR__CONCATENATE_DATA__COMBINE_CLOUD_HANDLER_KERNEL_HPP_ |
Oops, something went wrong.