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

Method init

example/E01-AutoPilot.cpp:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72class LaneDetectorGNode : public GNode {
73public:
74 CStatus init() override {
75 // 订阅 EXAMPLE_IMAGE_TOPIC 消息。每次 bind的返回值,是不一样的,用于区分
76 conn_id_ = CGRAPH_BIND_MESSAGE_TOPIC(ImageMParam, EXAMPLE_IMAGE_TOPIC, DEFAULT_MESSAGE_BUF_SIZE)
77 return CStatus();
78 }
79
80 CStatus run() override {
81 std::shared_ptr<ImageMParam> image = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected