• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.22
    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 <dw/sensors/lidar/Lidar.h>
    35#include <dwcgf/node/Node.hpp>
    39#include <dwcgf/port/Port.hpp>
    41#include <dwframework/dwnodes/common/PointCloudProcessingCommonTypes.hpp>
    42#include <dwframework/dwnodes/common/SensorCommonTypes.hpp>
    43#include <dwframework/dwnodes/common/channelpackets/EgomotionState.hpp>
    44#include <dwframework/dwnodes/common/channelpackets/PointCloud.hpp>
    45#include <dwframework/dwnodes/common/channelpackets/PointCloudProcessingCommonTypes.hpp>
    46
    47namespace dw
    48{
    49namespace framework
    50{
    51
    53{
    54 dwConstRigHandle_t rigHandle;
    55 bool enable;
    56 uint32_t sensorIndex;
    60 dwLidarProperties lidarProps;
    61 cudaStream_t cudaStream;
    62};
    63
    68{
    69public:
    70 // TODO(csketch): FP -- This is used when the logger is called and not just at assignment.
    71 // coverity[autosar_cpp14_a0_1_1_violation] FP: nvbugs/2980283
    72 // coverity[autosar_cpp14_m0_1_4_violation] FP: nvbugs/2980283
    73 static constexpr char8_t LOG_TAG[]{"dwIcpNode"};
    74
    75 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    76 static constexpr auto describeInputPorts()
    77 {
    78 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    79 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    81 DW_DESCRIBE_PORT(dwEgomotionStateHandle_t, "EGOMOTION_STATE_ODO_IMU"_sv, PortBinding::REQUIRED),
    82 DW_DESCRIBE_PORT(dwPointCloud, "DEPTHMAP"_sv));
    83 }
    84
    85 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    86 static constexpr auto describeOutputPorts()
    87 {
    88 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    89 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    91 DW_DESCRIBE_PORT(dwLidarPose, "LIDAR_POSE"_sv));
    92 }
    93
    94 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    95 static constexpr auto describePasses()
    96 {
    98 describePass(StringView{"SETUP"}, DW_PROCESSOR_TYPE_CPU),
    99 describePass(StringView{"PASS_PROCESS_ICP_GPU_ASYNC"}, DW_PROCESSOR_TYPE_GPU),
    100 describePass(StringView{"PASS_PROCESS_ICP_CPU_SYNC"}, DW_PROCESSOR_TYPE_CPU),
    101 describePass(StringView{"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
    102 }
    103
    104 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    105 static constexpr auto describeParameters()
    106 {
    107 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    108 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    110 describeConstructorArgument<dwIcpNodeParams>(
    112 dwConstRigHandle_t,
    113 &dwIcpNodeParams::rigHandle),
    115 uint32_t,
    117 "lidarIndex"_sv,
    120 bool,
    121 "enable"_sv,
    124 uint32_t,
    125 "lidarMaxICPIterations"_sv,
    128 uint32_t,
    129 "accumulatorDownsampleFactor"_sv,
    132 bool,
    133 "lidarICPUsesEgomotion"_sv,
    136 dwLidarProperties,
    137 "lidarIndex"_sv,
    140 cudaStream_t,
    141 "cudaStreamIndex"_sv,
    143 describeConstructorArgument<dwContextHandle_t>(
    144 DW_DESCRIBE_UNNAMED_PARAMETER(dwContextHandle_t)));
    145 }
    146
    147 static std::unique_ptr<dwIcpNode> create(ParameterProvider& provider);
    148
    149 dwIcpNode(const dwIcpNodeParams& param, const dwContextHandle_t ctx);
    150
    151 void onChannelsConnected() override;
    152};
    153
    154} // namespace framework
    155} // namespace dw
    156
    157#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, 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:105
    static constexpr auto describePasses()
    Definition: dwIcpNode.hpp:95
    void onChannelsConnected() override
    static constexpr char8_t LOG_TAG[]
    Definition: dwIcpNode.hpp:73
    static constexpr auto describeOutputPorts()
    Definition: dwIcpNode.hpp:86
    static constexpr auto describeInputPorts()
    Definition: dwIcpNode.hpp:76
    dwIcpNode(const dwIcpNodeParams &param, const dwContextHandle_t ctx)
    uint32_t sensorIndex
    Definition: dwIcpNode.hpp:56
    uint32_t accumulatorDownsampleFactor
    Definition: dwIcpNode.hpp:58
    constexpr std::tuple describeConstructorArguments()
    dwIcpNodeParams { dwConstRigHandle_t rigHandle dwIcpNodeParams
    Definition: dwIcpNode.hpp:54
    uint32_t lidarMaxICPIterations
    Definition: dwIcpNode.hpp:57
    constexpr PassDescriptorT< 0 > describePass(dw::core::StringView &&name, dwProcessorType processorType)
    dwLidarProperties lidarProps
    bool lidarICPUsesEgomotion
    Definition: dwIcpNode.hpp:59
    constexpr auto describePassCollection(const Args &&... args) -> std::tuple< Args... >
    constexpr auto describePortCollection(Args &&... args) -> dw::core::Tuple< Args... >
    Definition: Buffer.hpp:41
    人人超碰97caoporen国产