MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / init

Method init

example/E01-AutoPilot.cpp:102–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100class CarDetectorGNode : public GNode {
101public:
102 CStatus init() override {
103 conn_id_ = CGRAPH_BIND_MESSAGE_TOPIC(ImageMParam, EXAMPLE_IMAGE_TOPIC, DEFAULT_MESSAGE_BUF_SIZE)
104 return CStatus();
105 }
106
107 CStatus run() override {
108 std::shared_ptr<ImageMParam> image = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected