38 return "RtklibPosConverter";
60 auto rtklibPosObs = std::static_pointer_cast<const RtklibPosObs>(queue.
extract_front());
62 auto posVelObs = std::make_shared<PosVel>();
64 posVelObs->insTime = rtklibPosObs->insTime;
65 posVelObs->setPosition_e(rtklibPosObs->e_position());
66 posVelObs->setVelocity_e(rtklibPosObs->e_velocity());
Utility class for logging to console and file.
#define LOG_TRACE
Detailled info to trace the execution of the program. Should not be called on functions which receive...
Position and Velocity Storage Class.
Convert RTKLib pos files into PosVel.
RTKLIB Pos Observation Class.
Node(std::string name)
Constructor.
std::string nameId() const
Node name and id.
std::string name
Name of the Node.
void invokeCallbacks(size_t portIndex, const std::shared_ptr< const NodeData > &data)
Calls all registered callbacks on the specified output port.
bool _hasConfig
Flag if the config window should be shown.
static std::string type()
Returns the type of the data class.
bool initialize() override
Initialize the node.
void receiveObs(InputPin::NodeDataQueue &queue, size_t pinIdx)
Converts the RtklibPosObs into PosVel.
std::string type() const override
String representation of the Class Type.
static std::string typeStatic()
String representation of the Class Type.
~RtklibPosConverter() override
Destructor.
static std::string category()
String representation of the Class Category.
RtklibPosConverter()
Default constructor.
static constexpr size_t OUTPUT_PORT_INDEX_POSVEL
Flow.
static std::string type()
Returns the type of the data class.
auto extract_front()
Returns a copy of the first element in the container and removes it from the container.
OutputPin * CreateOutputPin(Node *node, const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier, OutputPin::PinData data=static_cast< void * >(nullptr), int idx=-1)
Create an Output Pin object.
InputPin * CreateInputPin(Node *node, const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier={}, InputPin::Callback callback=static_cast< InputPin::FlowFirableCallbackFunc >(nullptr), InputPin::FlowFirableCheckFunc firable=nullptr, int priority=0, int idx=-1)
Create an Input Pin object.