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

Method run

example/E01-AutoPilot.cpp:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 CStatus run() override {
81 std::shared_ptr<ImageMParam> image = nullptr;
82 auto status = CGRAPH_SUB_MPARAM(ImageMParam, conn_id_, image);
83 if (status.isErr()) {
84 return status;
85 }
86
87 auto param = CGRAPH_GET_GPARAM_WITH_NO_EMPTY(DetectResultGParam, EXAMPLE_PARAM_KEY)
88 // detector lane in image.image_buf_ ...
89 CGRAPH_ECHO("detecting lane in frame [%d], info is [%s]", image->frame_id_, image->image_buf_);
90 param->frame_id_ = image->frame_id_;
91 param->lane_num_ = std::abs((int)std::random_device{}()) % 10;
92 return CStatus();
93 }
94
95private:
96 int conn_id_ = 0;

Callers

nothing calls this directly

Calls 2

CGRAPH_ECHOFunction · 0.85
isErrMethod · 0.80

Tested by

no test coverage detected