31#ifndef DWFRAMEWORK_DWNODES_SELFCALIBRATION_DWSELFCALIBRATIONRADARNODE_DWSELFCALIBRATIONRADARNODE_HPP_
32#define DWFRAMEWORK_DWNODES_SELFCALIBRATION_DWSELFCALIBRATIONRADARNODE_DWSELFCALIBRATIONRADARNODE_HPP_
42#include <dwframework/dwnodes/common/SelfCalibrationTypes.hpp>
43#include <dwframework/dwnodes/common/channelpackets/DopplerMotionEstimator.hpp>
44#include <dwframework/dwnodes/common/channelpackets/SelfCalibrationTypes.hpp>
45#include <dwframework/dwnodes/common/channelpackets/VehicleIOValStructuresExtra.hpp>
46#include <dwframework/dwnodes/common/channelpackets/Radar.hpp>
48#include <dw/calibration/engine/common/SelfCalibrationRadarDiagnostics.h>
49#include <dw/sensors/radar/Radar.h>
50#include <dw/sensors/radar/RadarTypes.h>
113 static constexpr char8_t LOG_TAG[]{
"dwSelfCalibrationRadarNode"};
144 describePass(StringView{
"SETUP"}, DW_PROCESSOR_TYPE_CPU),
145 describePass(StringView{
"PROCESS"}, DW_PROCESSOR_TYPE_CPU),
146 describePass(StringView{
"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
157 describeConstructorArgument<dwSelfCalibrationRadarNodeParams>(
163 "radarSensorIndex"_sv,
167 "calibrateWheelRadii"_sv,
175 "enableCalibration"_sv,
179 "channelFifoSize"_sv,
187 "loadStateOnStartup"_sv,
190 dw::core::FixedString<64>,
191 "calibrationSaveFileSuffix"_sv,
197 "yawPrecisionDeg"_sv,
199 describeConstructorArgument<dwContextHandle_t>(
201 dwContextHandle_t)));
#define DW_DESCRIBE_PARAMETER_WITH_DEFAULT(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, NAME, args...)
The interface to access parameter values identified by name and/or (semantic) type.
This node computes the radar's extrinsic properties (rotation+translation) with respect to the config...
static constexpr auto describeParameters()
dwSelfCalibrationRadarNode(dwSelfCalibrationRadarNodeParams const ¶m, dwContextHandle_t const ctx)
static constexpr auto describeOutputPorts()
static constexpr auto describeInputPorts()
static constexpr auto describePasses()
static std::unique_ptr< dwSelfCalibrationRadarNode > create(ParameterProvider &provider)
static constexpr char8_t LOG_TAG[]
uint64_t stateWriteTimerOffsetInCycles
uint32_t channelFifoSize
Size of the input channel FIFO queues (must be >0)
uint64_t stateWriteTimerPeriodInCycles
bool sensorEnabledGlobally
Whether the radar sensor (not calibration) is enabled in the system.
bool enableCalibration
Flag to enable and disable overall calibration.
constexpr std::tuple describeConstructorArguments()
uint32_t sensorRigIndex
Sensor rig index (e.g. sensor [0-127]), auto-populated by RR2 Loader.
dwConstRigHandle_t rigHandle
Rig handle.
dw::core::FixedString< 64 > calibrationSaveFileSuffix
constexpr PassDescriptorT< 0 > describePass(dw::core::StringView &&name, dwProcessorType processorType)
char8_t const * calibrationOutputFileName
bool calibrateWheelRadii
Flag to enable and disable wheel radii calibration.
constexpr auto describePassCollection(const Args &&... args) -> std::tuple< Args... >
constexpr auto describePortCollection(Args &&... args) -> dw::core::Tuple< Args... >
float32_t yawPrecisionDeg
Required precision of yaw calibration. Calibration will fail if difference between NDAS and supplier ...
RadarCalibrationParameters radarParams
Radar calibration parameters.
size_t sensorIndex
Sensor type index (e.g. radar [0-8]), provided as parameter.
bool calibratePitch
Flag to enable and disable pitch calibration.
dwRadarProperties radarProps
Radar properties.
Radar calibration parameters.
Parameters for dwSelfCalibrationRadarNode.