Skip to content

Commit 79cdc90

Browse files
committed
Merge branch 'master' of github.com:BehaviorTree/BehaviorTree.CPP
2 parents 7a3bde0 + c3e78ee commit 79cdc90

File tree

12 files changed

+19
-18
lines changed

12 files changed

+19
-18
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ list(APPEND BT_SOURCE
111111
src/controls/reactive_sequence.cpp
112112
src/controls/reactive_fallback.cpp
113113
src/controls/sequence_node.cpp
114-
src/controls/sequence_star_node.cpp
114+
src/controls/sequence_with_memory_node.cpp
115115
src/controls/switch_node.cpp
116116
src/controls/while_do_else_node.cpp
117117

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Assuming that you are in the **parent** directory of `BehaviorTree.CPP`:
7474
```
7575
mkdir build; cd build
7676
conan install ../BehaviorTree.CPP --output-folder=. --build=missing
77-
cmake ../BehaviorTree.CPP -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
77+
cmake ../BehaviorTree.CPP -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake"
7878
cmake --build . --parallel
7979
```
8080

examples/test_files/Check.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<root>
22

33
<BehaviorTree ID="CheckStatus">
4-
<SequenceStar>
4+
<SequenceWithMemory>
55
<Action ID="CheckBattery"/>
66
<Action ID="CheckTemperature"/>
7-
</SequenceStar>
7+
</SequenceWithMemory>
88
</BehaviorTree>
99

1010
</root>

examples/test_files/subtrees/Talk.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<root BTCPP_format="4">
22

33
<BehaviorTree ID="SayStuff">
4-
<SequenceStar>
4+
<SequenceWithMemory>
55
<Action ID="SaySomething" message="Hello World"/>
66
<Action ID="SayHello"/>
7-
</SequenceStar>
7+
</SequenceWithMemory>
88
</BehaviorTree>
99

1010
</root>

include/behaviortree_cpp/behavior_tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "behaviortree_cpp/controls/reactive_fallback.h"
2020
#include "behaviortree_cpp/controls/fallback_node.h"
2121
#include "behaviortree_cpp/controls/sequence_node.h"
22-
#include "behaviortree_cpp/controls/sequence_star_node.h"
22+
#include "behaviortree_cpp/controls/sequence_with_memory_node.h"
2323
#include "behaviortree_cpp/controls/switch_node.h"
2424
#include "behaviortree_cpp/controls/if_then_else_node.h"
2525
#include "behaviortree_cpp/controls/while_do_else_node.h"

include/behaviortree_cpp/controls/sequence_star_node.h renamed to include/behaviortree_cpp/controls/sequence_with_memory_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace BT
1919
{
2020
/**
21-
* @brief The SequenceStarNode is used to tick children in an ordered sequence.
21+
* @brief The SequenceWithMemory is used to tick children in an ordered sequence.
2222
* If any child returns RUNNING, previous children are not ticked again.
2323
*
2424
* - If all the children return SUCCESS, this node returns SUCCESS.

include/behaviortree_cpp/tree_node.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ inline Result TreeNode::getInput(const std::string& key, T& destination) const
378378
// address the special case where T is an enum
379379
auto ParseString = [this](const std::string& str) -> T
380380
{
381+
(void)this; // maybe unused
381382
if constexpr (std::is_enum_v<T> && !std::is_same_v<T, NodeStatus>)
382383
{
383384
auto it = config().enums->find(str);

include/behaviortree_cpp/utils/safe_any.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ nonstd::expected<T, std::string> Any::stringToNumber() const
348348
static_assert(std::is_arithmetic_v<T> && !std::is_same_v<T, bool>, "Expecting a numeric type");
349349

350350
const auto str = linb::any_cast<SafeAny::SimpleString>(_any);
351-
#if __has_include(<GL/gl.h>)
351+
#if __cpp_lib_to_chars >= 201611L
352352
T out;
353353
auto [ptr, err] = std::from_chars(str.data(), str.data() + str.size(), out);
354354
if(err == std::errc())

src/controls/sequence_star_node.cpp renamed to src/controls/sequence_with_memory_node.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1212
*/
1313

14-
#include "behaviortree_cpp/controls/sequence_star_node.h"
14+
#include "behaviortree_cpp/controls/sequence_with_memory_node.h"
1515

1616
namespace BT
1717
{
1818
SequenceWithMemory::SequenceWithMemory(const std::string& name) :
1919
ControlNode::ControlNode(name, {}), current_child_idx_(0)
2020
{
21-
setRegistrationID("SequenceStar");
21+
setRegistrationID("SequenceWithMemory");
2222
}
2323

2424
NodeStatus SequenceWithMemory::tick()

src/loggers/groot2_publisher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct Groot2Publisher::PImpl
6565

6666
int timeout_ms = 1000;
6767
server.set(zmq::sockopt::sndtimeo, timeout_ms);
68-
publisher.set(zmq::sockopt::rcvtimeo, timeout_rcv);
68+
publisher.set(zmq::sockopt::sndtimeo, timeout_ms);
6969
}
7070

7171
unsigned server_port = 0;

0 commit comments

Comments
 (0)