MCPcopy Create free account
hub / github.com/RoboMaster/RoboRTS / StopThread

Method StopThread

roborts_detection/armor_detection/armor_detection_node.cpp:212–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void ArmorDetectionNode::StopThread() {
213 node_state_ = NodeState::IDLE;
214 running_ = false;
215 armor_detector_->SetThreadState(false);
216 if (armor_detection_thread_.joinable()) {
217 armor_detection_thread_.join();
218 }
219}
220
221ArmorDetectionNode::~ArmorDetectionNode() {
222 StopThread();

Callers 1

mainFunction · 0.80

Calls 1

SetThreadStateMethod · 0.80

Tested by

no test coverage detected