31#ifndef DWFRAMEWORK_DWNODES_EGOMOTION_DWGLOBALEGOMOTIONNODE_DWGLOBALEGOMOTIONNODE_HPP_
32#define DWFRAMEWORK_DWNODES_EGOMOTION_DWGLOBALEGOMOTIONNODE_DWGLOBALEGOMOTIONNODE_HPP_
34#include <dw/egomotion/Egomotion.h>
35#include <dw/egomotion/global/GlobalEgomotion.h>
36#include <dw/egomotion/global/GlobalEgomotionSerialization.h>
37#include <dw/roadcast/base_types/RoadCastPacketTypes.hpp>
88 DW_DESCRIBE_PORT(dwGlobalEgomotionResultPayload,
"GLOBAL_EGOMOTION_RESULT_PAYLOAD"_sv));
95 describePass(
"ADD_RELATIVE_EGOMOTION"_sv, DW_PROCESSOR_TYPE_CPU),
104 const dwContextHandle_t ctx);
108 return Exception::guardWithReturn([&]() {
110 if (asyncResetNode !=
nullptr)
116 dw::core::Logger::Verbosity::DEBUG);
121 return Exception::guardWithReturn([&]() {
123 if (asyncResetNode !=
nullptr)
129 dw::core::Logger::Verbosity::DEBUG);
134 return describeConstructorArguments<dwGlobalEgomotionNodeInitParams, dwContextHandle_t>(
149 dwContextHandle_t)));
159 return DW_NOT_SUPPORTED;
#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...)
std::unique_ptr< Node > m_impl
virtual dwStatus setAsyncReset()=0
Set the async reset flag.
virtual dwStatus executeAsyncReset()=0
Executes a reset if the async reset flag is set.
virtual dwStatus preShutdown()=0
actions to be taken before node shutdown
The interface to access parameter values identified by name and/or (semantic) type.
This node computes the global vehicle state and motion over time using signals from GPS and relative ...
static constexpr auto describeOutputPorts()
static constexpr auto describePasses()
static constexpr auto describeInputPorts()
dwGlobalEgomotionNode(const dwGlobalEgomotionNodeInitParams ¶ms, const dwContextHandle_t ctx)
dwStatus setAsyncReset() override
dwStatus executeAsyncReset() override
dwStatus preShutdown() override
static std::unique_ptr< dwGlobalEgomotionNode > create(ParameterProvider &provider)
static constexpr auto describeParameters()
const char * gpsSensorName
constexpr auto describePortCollection(Args &&... args)
constexpr std::tuple< dw::core::StringView, dwProcessorType > describePass(dw::core::StringView const &&name, dwProcessorType processorType)
constexpr auto describeConstructorArgument(const Args &&... args)
dwConstRigHandle_t rigHandle
constexpr auto describePassCollection(const Args &&... args)