• <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
    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 _DW_RIG_NODE_HPP_
    32#define _DW_RIG_NODE_HPP_
    33
    34#include "dwRigNode_errorid.h"
    35
    36#include <dwcgf/node/Node.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. */
    44
    45#include <dw/rig/Rig.h>
    48
    49namespace dw
    50{
    51namespace framework
    52{
    53// TODO(dwplc): FP -- This is used in dwRigNodeImpl and is not just assigned/used once.
    54// coverity[autosar_cpp14_a0_1_1_violation]
    55// coverity[autosar_cpp14_m0_1_4_violation]
    56static constexpr uint8_t RIG_NODE_MAX_IMUS = 1U;
    57
    59{
    60 // TODO(hongwang): the serialization will be used later
    61 bool serialization;
    62
    63 dwRigHandle_t rigHandle;
    64
    66 char8_t const* rigOutputFileName;
    67
    70
    73
    74 // sensor type index
    76 std::uint32_t imuSensorRigIndices;
    83};
    84
    91{
    92public:
    93 // TODO(dwplc): RFD -- This function returns auto as it is a wrapper for a template function.
    94 // coverity[autosar_cpp14_a7_1_5_violation] RFD Pending: TID-1984
    95 static constexpr auto describeInputPorts()
    96 {
    97 // TODO(dwplc): RFD -- user defined literal being interpreted as c style cast.
    98 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    108 DW_DESCRIBE_PORT(bool, "STORE"_sv, PortBinding::OPTIONAL));
    109 };
    110 // TODO(dwplc): RFD -- This function returns auto as it is a wrapper for a template function.
    111 // coverity[autosar_cpp14_a7_1_5_violation] RFD Pending: TID-1984
    112 static constexpr auto describeOutputPorts()
    113 {
    114 return describePortCollection();
    115 };
    116 // TODO(dwplc): RFD -- This function returns auto as it is a wrapper for a template function.
    117 // coverity[autosar_cpp14_a7_1_5_violation] RFD Pending: TID-1984
    118 static constexpr auto describePasses()
    119 {
    120 // TODO(dwplc): RFD -- user defined literal being interpreted as c style cast.
    121 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    123 describePass("SETUP"_sv, DW_PROCESSOR_TYPE_CPU),
    124 describePass("PROCESS"_sv, DW_PROCESSOR_TYPE_CPU),
    125 describePass("TEARDOWN"_sv, DW_PROCESSOR_TYPE_CPU));
    126 };
    127
    128 static std::unique_ptr<dwRigNode> create(ParameterProvider const& provider);
    129
    130 // TODO(dwplc): RFD -- This function returns auto as it is a wrapper for a template function.
    131 // coverity[autosar_cpp14_a7_1_5_violation] RFD Pending: TID-1984
    132 static constexpr auto describeParameters()
    133 {
    134 // TODO(dwplc): RFD -- user defined literal being interpreted as c style cast.
    135 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    136 return describeConstructorArguments<dwRigNodeParams, dwContextHandle_t>(
    139 bool,
    140 "serialization"_sv,
    141 &dwRigNodeParams::serialization),
    143 dwRigHandle_t,
    146 char8_t const*,
    150 char8_t const*,
    154 char8_t const*,
    158 bool,
    162 uint32_t,
    166 bool,
    171 uint32_t,
    176 bool,
    181 uint32_t,
    186 bool,
    191 uint32_t,
    197 dwContextHandle_t)));
    198 };
    199
    200 dwRigNode(dwRigNodeParams const& params, dwContextHandle_t const ctx);
    201 ~dwRigNode() override = default;
    202 dwRigNode(const dwRigNode& other) = default;
    203 dwRigNode(dwRigNode&& other) = default;
    204 dwRigNode& operator=(const dwRigNode&) = default;
    206
    207 dwStatus preShutdown() override;
    208};
    209
    210} /* namespace framework */
    211} /* namespace dw */
    212#endif /* _DW_RIG_NODE_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:91
    ~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:95
    static constexpr auto describeParameters()
    Definition: dwRigNode.hpp:132
    static constexpr auto describeOutputPorts()
    Definition: dwRigNode.hpp:112
    static constexpr auto describePasses()
    Definition: dwRigNode.hpp:118
    dwRigNode(dwRigNode &&other)=default
    dwRigNodeParams { bool serialization dwRigNodeParams
    Definition: dwRigNode.hpp:61
    bool lidarSensorEnabled[framework::SELF_CALIBRATION_NODE_MAX_LIDARS]
    Definition: dwRigNode.hpp:81
    CameraIntrinsics { uint64_t sensorId dwCameraIntrinsics
    std::uint32_t radarSensorRigIndices[framework::SELF_CALIBRATION_NODE_MAX_RADARS]
    Definition: dwRigNode.hpp:80
    bool imuSensorEnabled
    Definition: dwRigNode.hpp:75
    char8_t const * rigOutputFileName
    Definition: dwRigNode.hpp:66
    constexpr auto describePortCollection(Args &&... args)
    CalibratedSteeringProperties { dwVehicleSteeringProperties steeringProperties dwCalibratedSteeringProperties
    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:79
    std::uint32_t imuSensorRigIndices
    Definition: dwRigNode.hpp:76
    CalibratedExtrinsics { CalibrationExtrinsicProfileName extrinsicProfileName dwCalibratedExtrinsics
    bool cameraSensorEnabled[framework::SELF_CALIBRATION_NODE_MAX_CAMERAS]
    Definition: dwRigNode.hpp:77
    std::uint32_t lidarSensorRigIndices[framework::SELF_CALIBRATION_NODE_MAX_LIDARS]
    Definition: dwRigNode.hpp:82
    char8_t const * calibrationOutputFileName
    Definition: dwRigNode.hpp:69
    CalibratedIMUIntrinsics { dwVector3f gyroscopeBias dwCalibratedIMUIntrinsics
    std::uint32_t cameraSensorRigIndices[framework::SELF_CALIBRATION_NODE_MAX_CAMERAS]
    Definition: dwRigNode.hpp:78
    static constexpr uint8_t SELF_CALIBRATION_NODE_MAX_LIDARS
    constexpr auto describeConstructorArgument(const Args &&... args)
    dwRigHandle_t rigHandle
    Definition: dwRigNode.hpp:63
    char8_t const * calibrationOverlayFileName
    Definition: dwRigNode.hpp:72
    static constexpr uint8_t SELF_CALIBRATION_NODE_MAX_CAMERAS
    constexpr auto describePassCollection(const Args &&... args)
    CalibratedWheelRadii { float32_t currentWheelRadius[DW_VEHICLE_NUM_WHEELS] dwCalibratedWheelRadii
    static constexpr uint8_t RIG_NODE_MAX_IMUS
    Definition: dwRigNode.hpp:56
    static constexpr uint8_t SELF_CALIBRATION_NODE_MAX_RADARS
    Definition: Exception.hpp:47
    人人超碰97caoporen国产