Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f942ff

Browse files
committed
adding used includes
1 parent e93d834 commit 9f942ff

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

src/controls/reactive_fallback.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212

1313
#include "behaviortree_cpp/controls/reactive_fallback.h"
14+
#include <thread> // *TODO* REMOVE AFTER DEBUG
1415

1516
namespace BT
1617
{

src/controls/reactive_sequence.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*/
1212

1313
#include "behaviortree_cpp/controls/reactive_sequence.h"
14+
#include <thread> // *TODO* REMOVE AFTER DEBUG
15+
16+
using std::chrono::milliseconds;
1417

1518
namespace BT
1619
{
@@ -51,7 +54,6 @@ NodeStatus ReactiveSequence::tick()
5154
case NodeStatus::RUNNING:
5255
{
5356
running_count++;
54-
std::this_thread::sleep_for(milliseconds(3000));
5557
haltChildren(index+1);
5658
return NodeStatus::RUNNING;
5759
}

tests/include/action_test_node.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef ACTIONTEST_H
22
#define ACTIONTEST_H
33

4+
#include <ctime>
5+
#include <chrono>
46
#include "behaviortree_cpp/action_node.h"
57

68
namespace BT

tests/src/action_test_node.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ BT::AsyncActionTest::~AsyncActionTest()
3030

3131
BT::NodeStatus BT::AsyncActionTest::tick()
3232
{
33+
setStatus(NodeStatus::RUNNING);
3334
using std::chrono::high_resolution_clock;
3435
tick_count_++;
3536
stop_loop_ = false;

0 commit comments

Comments
 (0)