Skip to content

Commit 3a11aab

Browse files
authored
Initialize the value of loop_running_ to true.
1 parent 4fa8402 commit 3a11aab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rm_hw/src/control_loop.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ RmRobotHWLoop::RmRobotHWLoop(ros::NodeHandle& nh, std::shared_ptr<RmRobotHW> har
6868
last_time_ = clock::now();
6969

7070
// Setup loop thread
71+
loop_running_ = true;
7172
loop_thread_ = std::thread([&]() {
7273
while (loop_running_)
7374
{

0 commit comments

Comments
 (0)