• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.8
    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-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 DW_FRAMEWORK_ICP_NODE_HPP__
    32#define DW_FRAMEWORK_ICP_NODE_HPP__
    33
    34#include <dwcgf/node/Node.hpp>
    36#include <dwcgf/port/Port.hpp>
    41/* Need to include the appropriate ChannelPacketTypes.hpp since port initialization requires
    42 the parameter_trait overrides. Otherwise, it will be considered as a packet of generic type. */
    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 static constexpr char LOG_TAG[] = "dwIcpNode";
    70
    71 static constexpr auto describeInputPorts()
    72 {
    74 DW_DESCRIBE_PORT(dwEgomotionStateHandle_t, "EGOMOTION_STATE_ODO_IMU"_sv, PortBinding::REQUIRED),
    75 DW_DESCRIBE_PORT(dwPointCloud, "LIDAR_POINT_CLOUD"_sv));
    76 }
    77
    78 static constexpr auto describeOutputPorts()
    79 {
    81 DW_DESCRIBE_PORT(dwLidarPose, "LIDAR_POSE"_sv));
    82 }
    83
    84 static constexpr auto describePasses()
    85 {
    87 describePass("SETUP"_sv, DW_PROCESSOR_TYPE_CPU),
    88 describePass("PASS_PROCESS_ICP_GPU_ASYNC"_sv, DW_PROCESSOR_TYPE_GPU),
    89 describePass("PASS_PROCESS_ICP_CPU_SYNC"_sv, DW_PROCESSOR_TYPE_CPU),
    90 describePass("TEARDOWN"_sv, DW_PROCESSOR_TYPE_CPU));
    91 }
    92
    93 static constexpr auto describeParameters()
    94 {
    95 return describeConstructorArguments<dwIcpNodeParams, dwContextHandle_t>(
    98 dwRigHandle_t,
    101 uint32_t,
    103 "lidarIndex"_sv,
    106 bool,
    107 "enable"_sv,
    110 uint32_t,
    111 "lidarMaxICPIterations"_sv,
    114 uint32_t,
    115 "accumulatorDownsampleFactor"_sv,
    118 bool,
    119 "lidarICPUsesEgomotion"_sv,
    122 dwLidarProperties,
    123 "lidarIndex"_sv,
    126 cudaStream_t,
    127 "cudaStreamIndex"_sv,
    130 DW_DESCRIBE_UNNAMED_PARAMETER(dwContextHandle_t)));
    131 }
    132
    133 static std::unique_ptr<dwIcpNode> create(ParameterProvider& provider);
    134
    135 dwIcpNode(const dwIcpNodeParams& param, const dwContextHandle_t ctx);
    136};
    137
    138} // namespace framework
    139} // namespace dw
    140
    141#endif // DW_FRAMEWORK_ICP_NODE_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 char LOG_TAG[]
    Definition: dwIcpNode.hpp:69
    static constexpr auto describeParameters()
    Definition: dwIcpNode.hpp:93
    static constexpr auto describePasses()
    Definition: dwIcpNode.hpp:84
    static constexpr auto describeOutputPorts()
    Definition: dwIcpNode.hpp:78
    static constexpr auto describeInputPorts()
    Definition: dwIcpNode.hpp:71
    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 describePortCollection(Args &&... args)
    uint32_t lidarMaxICPIterations
    Definition: dwIcpNode.hpp:56
    constexpr std::tuple< dw::core::StringView, dwProcessorType > describePass(dw::core::StringView const &&name, dwProcessorType processorType)
    dwLidarPose { dwTime_t timeStampNow dwLidarPose
    dwLidarProperties lidarProps
    Definition: dwIcpNode.hpp:59
    bool lidarICPUsesEgomotion
    Definition: dwIcpNode.hpp:58
    constexpr auto describeConstructorArgument(const Args &&... args)
    dwRigHandle_t rigHandle
    Definition: dwRigNode.hpp:63
    constexpr auto describePassCollection(const Args &&... args)
    cudaStream_t cudaStream
    Definition: dwIcpNode.hpp:60
    Definition: Exception.hpp:47
    人人超碰97caoporen国产