• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.14
    All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    dwIcpNode.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) 2020-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_DWICPNODE_DWICPNODE_HPP_
    32#define DWFRAMEWORK_DWNODES_POINTCLOUDPROCESSING_DWICPNODE_DWICPNODE_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/EgomotionState.hpp>
    43#include <dwframework/dwnodes/common/channelpackets/PointCloud.hpp>
    44#include <dwframework/dwnodes/common/channelpackets/PointCloudProcessingCommonTypes.hpp>
    45
    46namespace dw
    47{
    48namespace framework
    49{
    50
    52{
    53 dwRigHandle_t rigHandle;
    54 bool enable;
    55 uint32_t sensorIndex;
    59 dwLidarProperties lidarProps;
    60 cudaStream_t cudaStream;
    61};
    62
    67{
    68public:
    69 // TODO(csketch): FP -- This is used when the logger is called and not just at assignment.
    70 // coverity[autosar_cpp14_a0_1_1_violation] FP: nvbugs/2980283
    71 // coverity[autosar_cpp14_m0_1_4_violation] FP: nvbugs/2980283
    72 static constexpr char8_t LOG_TAG[]{"dwIcpNode"};
    73
    74 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
    75 static constexpr auto describeInputPorts()
    76 {
    77 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    78 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    80 DW_DESCRIBE_PORT(dwEgomotionStateHandle_t, "EGOMOTION_STATE_ODO_IMU"_sv, PortBinding::REQUIRED),
    81 DW_DESCRIBE_PORT(dwPointCloud, "DEPTHMAP"_sv));
    82 }
    83
    84 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
    85 static constexpr auto describeOutputPorts()
    86 {
    87 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    88 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    90 DW_DESCRIBE_PORT(dwLidarPose, "LIDAR_POSE"_sv));
    91 }
    92
    93 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
    94 static constexpr auto describePasses()
    95 {
    97 describePass(StringView{"SETUP"}, DW_PROCESSOR_TYPE_CPU),
    98 describePass(StringView{"PASS_PROCESS_ICP_GPU_ASYNC"}, DW_PROCESSOR_TYPE_GPU),
    99 describePass(StringView{"PASS_PROCESS_ICP_CPU_SYNC"}, DW_PROCESSOR_TYPE_CPU),
    100 describePass(StringView{"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
    101 }
    102
    103 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
    104 static constexpr auto describeParameters()
    105 {
    106 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    107 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    108 return describeConstructorArguments<dwIcpNodeParams, dwContextHandle_t>(
    111 dwRigHandle_t,
    114 uint32_t,
    116 "lidarIndex"_sv,
    119 bool,
    120 "enable"_sv,
    123 uint32_t,
    124 "lidarMaxICPIterations"_sv,
    127 uint32_t,
    128 "accumulatorDownsampleFactor"_sv,
    131 bool,
    132 "lidarICPUsesEgomotion"_sv,
    135 dwLidarProperties,
    136 "lidarIndex"_sv,
    139 cudaStream_t,
    140 "cudaStreamIndex"_sv,
    143 DW_DESCRIBE_UNNAMED_PARAMETER(dwContextHandle_t)));
    144 }
    145
    146 static std::unique_ptr<dwIcpNode> create(ParameterProvider& provider);
    147
    148 dwIcpNode(const dwIcpNodeParams& param, const dwContextHandle_t ctx);
    149};
    150
    151} // namespace framework
    152} // namespace dw
    153
    154#endif // DWFRAMEWORK_DWNODES_POINTCLOUDPROCESSING_DWICPNODE_DWICPNODE_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(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< dwIcpNode > create(ParameterProvider &provider)
    static constexpr auto describeParameters()
    Definition: dwIcpNode.hpp:104
    static constexpr auto describePasses()
    Definition: dwIcpNode.hpp:94
    static constexpr char8_t LOG_TAG[]
    Definition: dwIcpNode.hpp:72
    static constexpr auto describeOutputPorts()
    Definition: dwIcpNode.hpp:85
    static constexpr auto describeInputPorts()
    Definition: dwIcpNode.hpp:75
    dwIcpNode(const dwIcpNodeParams &param, const dwContextHandle_t ctx)
    dwIcpNodeParams { dwRigHandle_t rigHandle dwIcpNodeParams
    Definition: dwIcpNode.hpp:53
    uint32_t sensorIndex
    Definition: dwIcpNode.hpp:55
    uint32_t accumulatorDownsampleFactor
    Definition: dwIcpNode.hpp:57
    constexpr auto describeConstructorArgument(const Args &&... args) -> dw::core::Tuple< Args... >
    uint32_t lidarMaxICPIterations
    Definition: dwIcpNode.hpp:56
    dwLidarProperties lidarProps
    bool lidarICPUsesEgomotion
    Definition: dwIcpNode.hpp:58
    constexpr auto describePassCollection(const Args &&... args) -> std::tuple< Args... >
    constexpr auto describePortCollection(Args &&... args) -> dw::core::Tuple< Args... >
    dwRigHandle_t rigHandle
    Definition: dwRigNode.hpp:56
    constexpr PassDescriptorT< 0 > describePass(dw::core::StringView const &&name, dwProcessorType processorType)
    Definition: Buffer.hpp:40
    人人超碰97caoporen国产