Skip to content

Commit bf7fbf3

Browse files
SHABRAWiiclaude
andcommitted
fix: replace stale RecurrentThreadPtr declaration with std::thread members
The private section still declared the old `thread_` after the method bodies were updated to use `stop_flag_` and `run_thread_`, leaving the class in a non-compiling state. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c39cc45 commit bf7fbf3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

simulate/src/unitree_sdk2_bridge.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ using WirelessController_t = unitree::robot::go2::publisher::WirelessController;
272272
std::unique_ptr<LowState_t> lowstate;
273273

274274
private:
275-
unitree::common::RecurrentThreadPtr thread_;
275+
std::atomic<bool> stop_flag_{false};
276+
std::thread run_thread_;
276277
};
277278

278279
using Go2Bridge = RobotBridge<unitree::robot::go2::subscription::LowCmd, unitree::robot::go2::publisher::LowState>;

0 commit comments

Comments
 (0)