Compute Graph Framework SDK Reference  5.16
dwDepthMapNode.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-2023 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_DWDEPTHMAPNODE_DWDEPTHMAPNODE_HPP_
32#define DWFRAMEWORK_DWNODES_POINTCLOUDPROCESSING_DWDEPTHMAPNODE_DWDEPTHMAPNODE_HPP_
33
34#include <dwcgf/node/Node.hpp>
38#include <dwcgf/port/Port.hpp>
40#include <dwframework/dwnodes/common/PointCloudProcessingCommonTypes.hpp>
41#include <dwframework/dwnodes/common/SensorCommonTypes.hpp>
42#include <dwframework/dwnodes/common/channelpackets/DwframeworkTypes.hpp>
43#include <dwframework/dwnodes/common/channelpackets/EgomotionState.hpp>
44#include <dwframework/dwnodes/common/channelpackets/LidarPointCloud.hpp>
45#include <dwframework/dwnodes/common/channelpackets/PointCloud.hpp>
46#include <dwframework/dwnodes/common/channelpackets/PointCloudProcessingCommonTypes.hpp>
47
48namespace dw
49{
50namespace framework
51{
52
54{
55 bool enable;
56 dwLidarProperties lidarProps;
57 cudaStream_t cudaStream;
58};
59
64{
65public:
66 static constexpr char LOG_TAG[]{"dwDepthMapNode"};
67
68 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
69 static constexpr auto describeInputPorts()
70 {
71 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
72 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
74 DW_DESCRIBE_PORT(dwLidarPointCloud, "LIDAR_POINT_CLOUD"_sv, PortBinding::REQUIRED));
75 }
76
77 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
78 static constexpr auto describeOutputPorts()
79 {
80 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
81 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
83 DW_DESCRIBE_PORT(dwPointCloud, "DEPTHMAP"_sv),
84 DW_DESCRIBE_PORT(dwVector2ui, "SWEEP_SIZE"_sv));
85 }
86
87 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
88 static constexpr auto describePasses()
89 {
91 describePass(StringView{"SETUP"}, DW_PROCESSOR_TYPE_CPU),
92 describePass(StringView{"PASS_PROCESS_DEPTHMAP_GPU_ASYNC"}, DW_PROCESSOR_TYPE_GPU),
93 describePass(StringView{"PASS_PROCESS_DEPTHMAP_CPU_SYNC"}, DW_PROCESSOR_TYPE_CPU),
94 describePass(StringView{"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
95 }
96
97 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
98 static constexpr auto describeParameters()
99 {
100 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
101 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
103 describeConstructorArgument<dwDepthMapNodeParams>(
105 bool,
106 "enable"_sv,
109 dwLidarProperties,
110 "lidarIndex"_sv,
113 cudaStream_t,
114 "cudaStreamIndex"_sv,
116 describeConstructorArgument<dwContextHandle_t>(
117 DW_DESCRIBE_UNNAMED_PARAMETER(dwContextHandle_t)));
118 }
119
120 static std::unique_ptr<dwDepthMapNode> create(ParameterProvider& provider);
121
122 dwDepthMapNode(const dwDepthMapNodeParams& param, const dwContextHandle_t ctx);
123};
124
125} // namespace framework
126} // namespace dw
127
128#endif // DWFRAMEWORK_DWNODES_POINTCLOUDPROCESSING_DWDEPTHMAPNODE_DWDEPTHMAPNODE_HPP_
#define DW_DESCRIBE_INDEX_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_UNNAMED_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_PORT(TYPE_NAME, NAME, args...)
The interface to access parameter values identified by name and/or (semantic) type.
static constexpr auto describeOutputPorts()
static constexpr auto describePasses()
static constexpr auto describeParameters()
static constexpr char LOG_TAG[]
static std::unique_ptr< dwDepthMapNode > create(ParameterProvider &provider)
dwDepthMapNode(const dwDepthMapNodeParams &param, const dwContextHandle_t ctx)
static constexpr auto describeInputPorts()
constexpr std::tuple describeConstructorArguments()
constexpr PassDescriptorT< 0 > describePass(dw::core::StringView &&name, dwProcessorType processorType)
dwLidarProperties lidarProps
constexpr auto describePassCollection(const Args &&... args) -> std::tuple< Args... >
constexpr auto describePortCollection(Args &&... args) -> dw::core::Tuple< Args... >
dwDepthMapNodeParams { bool enable dwDepthMapNodeParams
Definition: Buffer.hpp:40