Compute Graph Framework SDK Reference  5.10
dwPointCloudAccumulatorNode.hpp
Go to the documentation of this file.
1
2//
3// Notice
4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8//
9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10// information or for any infringement of patents or other rights of third parties that may
11// result from its use. No license is granted by implication or otherwise under any patent
12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13// expressly authorized by NVIDIA. Details are subject to change without notice.
14// This code supersedes and replaces all information previously supplied.
15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16// components in life support devices or systems without express written approval of
17// NVIDIA CORPORATION & AFFILIATES.
18//
19// SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21//
22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23// property and proprietary rights in and to this material, related
24// documentation and any modifications thereto. Any use, reproduction,
25// disclosure or distribution of this material and related documentation
26// without an express license agreement from NVIDIA CORPORATION or
27// its affiliates is strictly prohibited.
28//
30
31#ifndef DWFRAMEWORK_DWNODES_POINTCLOUDPROCESSING_DWACCUMULATORNODE_DWPOINTCLOUDACCUMULATORNODE_HPP_
32#define DWFRAMEWORK_DWNODES_POINTCLOUDPROCESSING_DWACCUMULATORNODE_DWPOINTCLOUDACCUMULATORNODE_HPP_
33
34#include <dw/core/logger/Logger.hpp>
35#include <dw/pointcloudprocessing/assembler/PointCloudAssembler.h>
36#include <dw/pointcloudprocessing/motioncompensator/MotionCompensator.h>
37#include <dwcgf/node/Node.hpp>
46
47namespace dw
48{
49namespace framework
50{
51
53{
54 dwPointCloudAssemblerParams assmParams;
55 dwMotionCompensatorParams compParams;
57 dwLidarProperties lidarProperties;
58 dwEgomotionParameters egomotionParams;
61 cudaStream_t cudaStream;
62};
63
68{
69public:
70 static constexpr char LOG_TAG[] = "dwPointCloudAccumulatorNode";
71
72 static constexpr auto describeInputPorts()
73 {
75 DW_DESCRIBE_PORT(dwLidarPacketsArray, "LIDAR_PACKETS_ARRAY"_sv),
76 DW_DESCRIBE_PORT(dwEgomotionStateHandle_t, "EGOMOTION_STATE"_sv),
77 DW_DESCRIBE_PORT(dwSensorNodeProperties, "LIDAR_EXTRINSICS"_sv));
78 };
79 static constexpr auto describeOutputPorts()
80 {
82 DW_DESCRIBE_PORT(dwPointCloud, "POINT_CLOUD"_sv, PortBinding::REQUIRED),
83 DW_DESCRIBE_PORT(bool, "POINT_CLOUD_AVAILABLE"_sv, PortBinding::REQUIRED));
84 };
85
86 static constexpr auto describePasses()
87 {
89 describePass("SETUP"_sv, DW_PROCESSOR_TYPE_CPU),
90 describePass("PROCESS_ASSM_GPU_ASYNC"_sv, DW_PROCESSOR_TYPE_GPU),
91 describePass("PROCESS_ASSM_CPU_SYNC"_sv, DW_PROCESSOR_TYPE_CPU),
92 describePass("PROCESS_COMP_GPU_ASYNC"_sv, DW_PROCESSOR_TYPE_GPU),
93 describePass("PROCESS_COMP_CPU_SYNC"_sv, DW_PROCESSOR_TYPE_CPU),
94 describePass("TEARDOWN"_sv, DW_PROCESSOR_TYPE_CPU));
95 };
96
97 static constexpr auto describeParameters()
98 {
100 dwContextHandle_t>(
103 bool,
104 "enableCuda"_sv,
107 dwMotionCompensatorInterpolationStrategy,
108 "interpolationStrategy"_sv,
109 &dwAccumulatorNodeParams::compParams, &dwMotionCompensatorParams::interpolationStrategy),
111 uint32_t,
112 "maxPointCloudSize"_sv,
113 &dwAccumulatorNodeParams::compParams, &dwMotionCompensatorParams::maxPointCloudSize),
115 uint32_t,
116 "motionModelResolution"_sv,
117 &dwAccumulatorNodeParams::compParams, &dwMotionCompensatorParams::motionModelResolution),
119 bool,
120 "outputInRigCoordinates"_sv,
121 &dwAccumulatorNodeParams::compParams, &dwMotionCompensatorParams::outputInRigCoordinates),
123 dwTransformation3f,
125 "sensorId"_sv,
126 &dwAccumulatorNodeParams::compParams, &dwMotionCompensatorParams::pointCloudToRig),
128 bool,
129 "enableEgomotionCompensation"_sv,
132 dwLidarProperties,
133 "sensorId"_sv,
136 bool,
140 cudaStream_t,
141 "streamIndex"_sv,
145 dwContextHandle_t)));
146 };
147
148 static std::unique_ptr<dwPointCloudAccumulatorNode> create(ParameterProvider& provider);
149
151 const dwContextHandle_t ctx);
152};
153
154} // namespace framework
155} // namespace dw
156
157#endif // DWFRAMEWORK_DWNODES_POINTCLOUDPROCESSING_DWACCUMULATORNODE_DWPOINTCLOUDACCUMULATORNODE_HPP_
#define DW_DESCRIBE_INDEX_PARAMETER_WITH_SEMANTIC(TYPE_NAME, SEMANTIC_TYPE_NAME, args...)
#define DW_DESCRIBE_INDEX_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_UNNAMED_PARAMETER_WITH_SEMANTIC(TYPE_NAME, SEMANTIC_TYPE_NAME, args...)
#define DW_DESCRIBE_UNNAMED_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_PORT(TYPE_NAME, args...)
The interface to access parameter values identified by name and/or (semantic) type.
static std::unique_ptr< dwPointCloudAccumulatorNode > create(ParameterProvider &provider)
dwPointCloudAccumulatorNode(const dwAccumulatorNodeParams &paramsPointCloud, const dwContextHandle_t ctx)
constexpr std::tuple describeConstructorArguments()
constexpr auto describePortCollection(Args &&... args)
constexpr std::tuple< dw::core::StringView, dwProcessorType > describePass(dw::core::StringView const &&name, dwProcessorType processorType)
constexpr auto describeConstructorArgument(const Args &&... args)
constexpr auto describePassCollection(const Args &&... args)
Definition: Buffer.hpp:40