Skip to main content

StampFrameId.h File

Stage executor to stamp missing frame_id per stream. More...

Included Headers

#include "graph/StageExecutor.h" #include "graph/nodes/StageNode.h" #include <cstdint> #include <memory> #include <string> #include <unordered_map> #include <utility> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacegraph
namespacenodes

Classes Index

classStampFrameId

Description

Stage executor to stamp missing frame_id per stream.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
10
11#include <cstdint>
12#include <memory>
13#include <string>
14#include <unordered_map>
15#include <utility>
16#include <vector>
17
19
21public:
22 void set_ports(const StagePorts& ports) override;
23 void on_input(StageMsg&& msg, std::vector<StageOutMsg>& out) override;
24
25private:
26 std::unordered_map<std::string, std::int64_t> next_id_;
27 PortId out_port_ = kInvalidPort;
28};
29
30// Convenience: wrap StampFrameId in a StageNode.
31std::shared_ptr<simaai::neat::graph::Node> StampFrameIdNode(std::string label = {});
32
33} // namespace simaai::neat::graph::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.