• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.10
    All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    dwRigNode.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 DWFRAMEWORK_DWNODES_DWRIGNODE_DWRIGNODE_HPP_
    32#define DWFRAMEWORK_DWNODES_DWRIGNODE_DWRIGNODE_HPP_
    33
    34#include "dwRigNode_errorid.h"
    35
    36#include <dw/rig/Rig.h>
    37#include <dwcgf/node/Node.hpp>
    45
    46namespace dw
    47{
    48namespace framework
    49{
    50
    52{
    53 // TODO(hongwang): the serialization will be used later
    54 bool serialization;
    55
    56 dwRigHandle_t rigHandle;
    57
    59 char8_t const* rigOutputFileName;
    60
    63
    66
    67 // sensor type index
    76};
    77
    84{
    85public:
    86 // TODO(dwplc): RFD -- This function returns auto as it is a wrapper for a template function.
    87 // coverity[autosar_cpp14_a7_1_5_violation] RFD Pending: TID-1984
    88 static constexpr auto describeInputPorts()
    89 {
    90 // TODO(dwplc): RFD -- user defined literal being interpreted as c style cast.
    91 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    101 DW_DESCRIBE_PORT(bool, "STORE"_sv, PortBinding::OPTIONAL));
    102 };
    103 // TODO(dwplc): RFD -- This function returns auto as it is a wrapper for a template function.
    104 // coverity[autosar_cpp14_a7_1_5_violation] RFD Pending: TID-1984
    105 static constexpr auto describeOutputPorts()
    106 {
    107 return describePortCollection();
    108 };
    109 // TODO(dwplc): RFD -- This function returns auto as it is a wrapper for a template function.
    110 // coverity[autosar_cpp14_a7_1_5_violation] RFD Pending: TID-1984
    111 static constexpr auto describePasses()
    112 {
    113 // TODO(dwplc): RFD -- user defined literal being interpreted as c style cast.
    114 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    116 describePass("SETUP"_sv, DW_PROCESSOR_TYPE_CPU),
    117 describePass("PROCESS"_sv, DW_PROCESSOR_TYPE_CPU),
    118 describePass("TEARDOWN"_sv, DW_PROCESSOR_TYPE_CPU));
    119 };
    120
    121 static std::unique_ptr<dwRigNode> create(ParameterProvider const& provider);
    122
    123 // TODO(dwplc): RFD -- This function returns auto as it is a wrapper for a template function.
    124 // coverity[autosar_cpp14_a7_1_5_violation] RFD Pending: TID-1984
    125 static constexpr auto describeParameters()
    126 {
    127 // TODO(dwplc): RFD -- user defined literal being interpreted as c style cast.
    128 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    129 return describeConstructorArguments<dwRigNodeParams, dwContextHandle_t>(
    132 bool,
    133 "serialization"_sv,
    134 &dwRigNodeParams::serialization),
    136 dwRigHandle_t,
    139 char8_t const*,
    143 char8_t const*,
    147 char8_t const*,
    151 bool,
    156 uint32_t,
    161 bool,
    166 uint32_t,
    171 bool,
    176 uint32_t,
    181 bool,
    186 uint32_t,
    192 dwContextHandle_t)));
    193 };
    194
    195 dwRigNode(dwRigNodeParams const& params, dwContextHandle_t const ctx);
    196 ~dwRigNode() override = default;
    197 dwRigNode(const dwRigNode& other) = default;
    198 dwRigNode(dwRigNode&& other) = default;
    199 dwRigNode& operator=(const dwRigNode&) = default;
    201
    202 dwStatus preShutdown() override;
    203};
    204
    205} /* namespace framework */
    206} /* namespace dw */
    207#endif // DWFRAMEWORK_DWNODES_DWRIGNODE_DWRIGNODE_HPP_
    #define DW_DESCRIBE_UNNAMED_ARRAY_PARAMETER_WITH_SEMANTIC(TYPE_NAME, SEMANTIC_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...)
    #define DW_DESCRIBE_PORT_ARRAY(TYPE_NAME, ARRAYSIZE, args...)
    The interface to access parameter values identified by name and/or (semantic) type.
    dwRigNode receives extrinsic calibrations from sensors in the system, and maintains that state to upd...
    Definition: dwRigNode.hpp:84
    ~dwRigNode() override=default
    dwRigNode & operator=(dwRigNode &&)=default
    dwRigNode & operator=(const dwRigNode &)=default
    dwRigNode(dwRigNodeParams const &params, dwContextHandle_t const ctx)
    static std::unique_ptr< dwRigNode > create(ParameterProvider const &provider)
    dwRigNode(const dwRigNode &other)=default
    dwStatus preShutdown() override
    static constexpr auto describeInputPorts()
    Definition: dwRigNode.hpp:88
    static constexpr auto describeParameters()
    Definition: dwRigNode.hpp:125
    static constexpr auto describeOutputPorts()
    Definition: dwRigNode.hpp:105
    static constexpr auto describePasses()
    Definition: dwRigNode.hpp:111
    dwRigNode(dwRigNode &&other)=default
    dwRigNodeParams { bool serialization dwRigNodeParams
    Definition: dwRigNode.hpp:54
    bool lidarSensorEnabled[framework::SELF_CALIBRATION_NODE_MAX_LIDARS]
    Definition: dwRigNode.hpp:74
    std::uint32_t radarSensorRigIndices[framework::SELF_CALIBRATION_NODE_MAX_RADARS]
    Definition: dwRigNode.hpp:73
    char8_t const * rigOutputFileName
    Definition: dwRigNode.hpp:59
    constexpr auto describePortCollection(Args &&... args)
    constexpr std::tuple< dw::core::StringView, dwProcessorType > describePass(dw::core::StringView const &&name, dwProcessorType processorType)
    bool radarSensorEnabled[framework::SELF_CALIBRATION_NODE_MAX_RADARS]
    Definition: dwRigNode.hpp:72
    bool cameraSensorEnabled[framework::SELF_CALIBRATION_NODE_MAX_CAMERAS]
    Definition: dwRigNode.hpp:70
    std::uint32_t lidarSensorRigIndices[framework::SELF_CALIBRATION_NODE_MAX_LIDARS]
    Definition: dwRigNode.hpp:75
    char8_t const * calibrationOutputFileName
    Definition: dwRigNode.hpp:62
    std::uint32_t imuSensorRigIndices[framework::SELF_CALIBRATION_NODE_MAX_IMUS]
    Definition: dwRigNode.hpp:69
    std::uint32_t cameraSensorRigIndices[framework::SELF_CALIBRATION_NODE_MAX_CAMERAS]
    Definition: dwRigNode.hpp:71
    static constexpr uint8_t SELF_CALIBRATION_NODE_MAX_LIDARS
    constexpr auto describeConstructorArgument(const Args &&... args)
    dwRigHandle_t rigHandle
    Definition: dwRigNode.hpp:56
    char8_t const * calibrationOverlayFileName
    Definition: dwRigNode.hpp:65
    static constexpr uint8_t SELF_CALIBRATION_NODE_MAX_CAMERAS
    constexpr auto describePassCollection(const Args &&... args)
    static constexpr uint8_t SELF_CALIBRATION_NODE_MAX_RADARS
    bool imuSensorEnabled[framework::SELF_CALIBRATION_NODE_MAX_IMUS]
    Definition: dwRigNode.hpp:68
    static constexpr uint8_t SELF_CALIBRATION_NODE_MAX_IMUS
    Definition: Buffer.hpp:40
    人人超碰97caoporen国产