• <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
    dwRadarDopplerMotionNode.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-2024 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_DWRADARDOPPLERMOTIONNODE_DWRADARDOPPLERMOTIONNODE_HPP_
    32#define DWFRAMEWORK_DWNODES_DWRADARDOPPLERMOTIONNODE_DWRADARDOPPLERMOTIONNODE_HPP_
    33
    34#include <dw/rig/Rig.h>
    37#include <dwcgf/parameter/SemanticParameterTypes.hpp> // IWYU pragma: keep
    40#include <dwshared/dwfoundation/dw/core/container/StringView.hpp>
    41#include <dwframework/dwnodes/common/channelpackets/DopplerMotionEstimator.hpp> // IWYU pragma: keep
    42#include <dwframework/dwnodes/common/channelpackets/Radar.hpp> // IWYU pragma: keep
    43#include <dwframework/dwnodes/common/channelpackets/VehicleIOValStructures.hpp> // IWYU pragma: keep
    44
    45namespace dw
    46{
    47namespace framework
    48{
    49
    50// forward-declare
    51class ParameterProvider;
    52struct RadarExtrinsic;
    53
    55{
    56 bool enable;
    57 cudaStream_t cudaStream;
    58 dwConstRigHandle_t rigHandle;
    59 dwTransformation3f radarExtrinsics;
    60 dwRadarProperties radarProperties;
    61 size_t sensorIndex; // Sensor type index (e.g. radar [0-8]), provided as parameter.
    62 uint32_t sensorRigIndex; // The parameter is assigned in create()
    63};
    64
    69{
    70public:
    71 // TODO(csketch): FP -- This is used when the logger is called and not just at assignment.
    72 // coverity[autosar_cpp14_a0_1_1_violation] FP: nvbugs/2980283
    73 // coverity[autosar_cpp14_m0_1_4_violation] FP: nvbugs/2980283
    74 static constexpr char8_t LOG_TAG[]{"dwRadarDopplerMotionNode"};
    75
    76 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    77 static constexpr auto describeInputPorts()
    78 {
    79 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    80 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    82 DW_DESCRIBE_PORT(dwVehicleIOASILStateE2EWrapper, "VEHICLE_IO_ASIL_STATE"_sv, PortBinding::REQUIRED),
    83 DW_DESCRIBE_PORT(dwVehicleIOQMState, "VEHICLE_IO_QM_STATE"_sv, PortBinding::REQUIRED),
    84 DW_DESCRIBE_PORT(dwRadarScan, "RADAR_SCAN"_sv, PortBinding::REQUIRED));
    85 };
    86 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    87 static constexpr auto describeOutputPorts()
    88 {
    89 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    90 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    92 DW_DESCRIBE_PORT(dwRadarDopplerMotion, "RADAR_DOPPLER_MOTION"_sv, PortBinding::REQUIRED));
    93 };
    94
    95 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    96 static constexpr auto describePasses()
    97 {
    99 describePass(StringView{"SETUP"}, DW_PROCESSOR_TYPE_CPU),
    100 describePass(StringView{"ADD_VEHICLE_STATE"}, DW_PROCESSOR_TYPE_CPU),
    101 describePass(StringView{"PROCESS_RADAR_PROCESS_CPU_SYNC"}, DW_PROCESSOR_TYPE_CPU),
    102 describePass(StringView{"PROCESS_RADAR_RETRIEVE_CPU_SYNC"}, DW_PROCESSOR_TYPE_CPU),
    103 describePass(StringView{"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
    104 };
    105
    106 static std::unique_ptr<dwRadarDopplerMotionNode> create(ParameterProvider& provider);
    107
    108 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-2201
    109 static constexpr auto describeParameters()
    110 {
    111 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
    112 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
    114 describeConstructorArgument<dwRadarDopplerMotionNodeParams>(
    116 bool,
    117 "enabled"_sv,
    120 size_t,
    121 "radarDopplerMotionCudaStreamIndex"_sv),
    123 size_t,
    124 "radarSensorIndex"_sv,
    127 dwConstRigHandle_t,
    130 dwRadarProperties,
    131 "radarSensorIndex"_sv,
    134 dwTransformation3f,
    136 "radarSensorIndex"_sv,
    138 describeConstructorArgument<dwContextHandle_t>(
    140 dwContextHandle_t)));
    141 }
    142
    143 dwRadarDopplerMotionNode(const dwRadarDopplerMotionNodeParams& param, const dwContextHandle_t ctx);
    144};
    145} // namespace framework
    146} // namespace dw
    147
    148#endif // DWFRAMEWORK_DWNODES_DWRADARDOPPLERMOTIONNODE_DWRADARDOPPLERMOTIONNODE_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_ABSTRACT_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< dwRadarDopplerMotionNode > create(ParameterProvider &provider)
    dwRadarDopplerMotionNode(const dwRadarDopplerMotionNodeParams &param, const dwContextHandle_t ctx)
    constexpr std::tuple describeConstructorArguments()
    constexpr PassDescriptorT< 0 > describePass(dw::core::StringView &&name, dwProcessorType processorType)
    constexpr auto describePassCollection(const Args &&... args) -> std::tuple< Args... >
    constexpr auto describePortCollection(Args &&... args) -> dw::core::Tuple< Args... >
    Definition: Buffer.hpp:41
    人人超碰97caoporen国产