31#ifndef DWFRAMEWORK_DWNODES_SENSORS_DWIMUNODE_DWIMUCHANNELNODE_HPP_
32#define DWFRAMEWORK_DWNODES_SENSORS_DWIMUNODE_DWIMUCHANNELNODE_HPP_
34#include <dw/sensors/common/Sensors.h>
35#include <dw/sensors/imu/IMU.h>
43#include <dwframework/dwnodes/common/channelpackets/IMU.hpp>
44#include <dwframework/dwnodes/common/channelpackets/SelfCalibrationTypes.hpp>
45#include <dwframework/dwnodes/common/channelpackets/SensorCommonTypes.hpp>
46#include <dwframework/dwnodes/common/channelpackets/Sensors.hpp>
70 static constexpr char8_t LOG_TAG[]{
"dwIMUChannelNode"};
100 describePass(StringView{
"SETUP"}, DW_PROCESSOR_TYPE_CPU),
101 describePass(StringView{
"PROCESSED_OUTPUT"}, DW_PROCESSOR_TYPE_CPU),
102 describePass(StringView{
"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
107 return DW_SENSOR_IMU;
118 describeConstructorArgument<const char*>(
123 describeConstructorArgument<dwConstRigHandle_t>(
125 dwConstRigHandle_t)),
126 describeConstructorArgument<dwSALHandle_t>(
129 describeConstructorArgument<dwContextHandle_t>(
134 dw::core::FixedString<32>,
135 "frameSkipMask"_sv)),
136 describeConstructorArgument<bool>(
139 "errorHandlingEnabled"_sv,
144 dwSALHandle_t sal, dwContextHandle_t ctx,
const FixedString<32>& frameSkipMask,
bool errorHandlingEnabled =
false);
146 dwSALHandle_t sal, dwContextHandle_t ctx);
148 dwSALHandle_t sal, dwContextHandle_t ctx);
#define DW_DESCRIBE_INDEX_PARAMETER_WITH_SEMANTIC(TYPE_NAME, SEMANTIC_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...)
The interface to access parameter values identified by name and/or (semantic) type.
dwIMUChannelNode(const char *sensorName, dwConstRigHandle_t rigHandle, dwSALHandle_t sal, dwContextHandle_t ctx, const FixedString< 32 > &frameSkipMask, bool errorHandlingEnabled=false)
dwIMUChannelNode(const dwSensorParams ¶ms, dwSALHandle_t sal, dwContextHandle_t ctx)
static constexpr char8_t LOG_TAG[]
static constexpr auto describeParameters()
dwSensorType getSensorType() const
dwIMUChannelNode(IMUNodeChannelParams ¶ms, const char *sensorName, dwConstRigHandle_t rigHandle, dwSALHandle_t sal, dwContextHandle_t ctx)
static constexpr auto describeOutputPorts()
static constexpr auto describePasses()
static constexpr auto describeInputPorts()
static std::unique_ptr< dwIMUChannelNode > create(ParameterProvider &provider)
constexpr std::tuple describeConstructorArguments()
dwConstRigHandle_t rigHandle
FixedString< 32 > frameSkipMask
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... >
constexpr auto describeConstructorArgument(const Args &&... args) -> ConstructorArgumentDescriptorT< ConstructorArgumentT, dw::core::Tuple< Args... > >