31#ifndef DWFRAMEWORK_DWNODES_SELFCALIBRATION_DWSELFCALIBRATIONSUSPENSIONSTATENODE_DWSELFCALIBRATIONSUSPENSIONSTATENODE_HPP_
32#define DWFRAMEWORK_DWNODES_SELFCALIBRATION_DWSELFCALIBRATIONSUSPENSIONSTATENODE_DWSELFCALIBRATIONSUSPENSIONSTATENODE_HPP_
42#include <dwframework/dwnodes/common/channelpackets/EgomotionState.hpp>
43#include <dwframework/dwnodes/common/channelpackets/FeatureList.hpp>
44#include <dwframework/dwnodes/common/channelpackets/SelfCalibrationTypes.hpp>
45#include <dwframework/dwnodes/common/channelpackets/SensorCommonTypes.hpp>
46#include <dwframework/dwnodes/common/channelpackets/VehicleIOValStructures.hpp>
47#include <dwframework/dwnodes/common/channelpackets/IMU.hpp>
48#include <dwframework/dwnodes/common/SelfCalibrationTypes.hpp>
49#include <dw/core/context/Context.h>
148 static constexpr char8_t LOG_TAG[]{
"dwSelfCalibrationSuspensionStateNode"};
184 describePass(StringView{
"SETUP"}, DW_PROCESSOR_TYPE_CPU),
185 describePass(StringView{
"PROCESS_NONCAMERA_INPUTS"}, DW_PROCESSOR_TYPE_CPU),
186 describePass(StringView{
"PROCESS_SUSPENSIONSTATE_GPU_ASYNC"}, DW_PROCESSOR_TYPE_GPU),
187 describePass(StringView{
"PROCESS_SUSPENSIONSTATE_CPU_SYNC"}, DW_PROCESSOR_TYPE_CPU),
188 describePass(StringView{
"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
199 describeConstructorArgument<dwSelfCalibrationSuspensionStateNodeParams>(
209 "cameraSensorIndices"_sv,
210 SELF_CALIBRATION_NODE_MAX_CAMERAS_FOR_SUSPENSION_STATE,
214 "enableCalibration"_sv,
218 "channelFifoSize"_sv,
222 "cudaStreamIndex"_sv,
226 "sigPresenceSuspensionLevel"_sv, SELF_CALIBRATION_NUM_SUSPENSION_LEVEL_SIGNALS,
230 "sigPresenceSuspensionLevelQuality"_sv,
234 "sigPresenceSuspensionLevelTimestamp"_sv,
238 "sigPresenceSuspensionLevelTimestampQuality"_sv,
242 "sigPresenceSuspensionLevelCalibrationState"_sv,
246 "nvSciChannelWaitTimeUs"_sv,
249 describeConstructorArgument<dwContextHandle_t>(
251 dwContextHandle_t)));
#define DW_DESCRIBE_ARRAY_PARAMETER(TYPE_NAME, PARAM_NAME, ARRAY_SIZE, args...)
#define DW_DESCRIBE_INDEX_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_PARAMETER_WITH_DEFAULT(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...)
#define DW_DESCRIBE_PORT_ARRAY(TYPE_NAME, ARRAYSIZE, NAME, args...)
The interface to access parameter values identified by name and/or (semantic) type.
Node that handles the estimation of the suspension state.
static constexpr auto describeOutputPorts()
static constexpr char8_t LOG_TAG[]
static constexpr auto describePasses()
dwSelfCalibrationSuspensionStateNode(dwSelfCalibrationSuspensionStateNodeParams const ¶m, dwContextHandle_t const ctx)
static std::unique_ptr< dwSelfCalibrationSuspensionStateNode > create(ParameterProvider const &provider)
static constexpr int32_t UNUSED_SENSOR_INDEX
static constexpr auto describeInputPorts()
static constexpr auto describeParameters()
bool sigPresenceSuspensionLevel[SELF_CALIBRATION_NUM_SUSPENSION_LEVEL_SIGNALS]
Signals if the VIO interface signal suspensionLevel is expected to be provided by the partner VAL cli...
bool sigPresenceSuspensionLevelCalibrationState
Signals if the VIO interface signal suspensionLevelCalibrationState is expected to be provided by the...
constexpr std::tuple describeConstructorArguments()
dwTime_t nvSciChannelWaitTimeUs
Wait time for nvSciChannel.
bool sigPresenceSuspensionLevelTimestampQuality
Signals if the VIO interface signal suspensionLevelTimestampQuality is expected to be provided by the...
uint32_t channelFifoSize
size of the fifo buffer used in vio and imu port. Need to be positive.
cudaStream_t cudaStreamIndex
the cuda stream used for processing
constexpr PassDescriptorT< 0 > describePass(dw::core::StringView &&name, dwProcessorType processorType)
int32_t cameraSensorRigIndices[SELF_CALIBRATION_NODE_MAX_CAMERAS_FOR_SUSPENSION_STATE]
Camera sensor indices rig index (e.g. camera [0-127]), auto-populated by RR2 Loader....
constexpr auto describePassCollection(const Args &&... args) -> std::tuple< Args... >
constexpr auto describePortCollection(Args &&... args) -> dw::core::Tuple< Args... >
dwConstRigHandle_t rigHandle
rig handle
int32_t cameraSensorIndices[SELF_CALIBRATION_NODE_MAX_CAMERAS_FOR_SUSPENSION_STATE]
Sensor type indices for cameras (e.g. camera [0-8]), provided as parameter. Index with value >=0 mean...
int32_t imuSensorRigIndex
Imu sensor rig index (e.g. imu [0-127]), auto-populated by RR2 Loader. Filled in with UNUSED if the c...
bool enableCalibration
flag to enable or disable calibration
int32_t imuSensorIndex
Sensor type index of imu, provided as parameter. Index with value >=0 means imu has to be used,...
bool sigPresenceSuspensionLevelQuality
Signals if the VIO interface signal suspensionLevelQuality is expected to be provided by the partner ...
bool sigPresenceSuspensionLevelTimestamp
Signals if the VIO interface signal suspensionLevelTimestamp is expected to be provided by the partne...
the parameters used to construct the dwSelfCalibrationSuspensionStateNode. They are assigned in descr...