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

Skip to content

Commit 151a98e

Browse files
committed
Merge branch 'master' of github.com:BehaviorTree/BehaviorTree.CPP
2 parents 674764b + a2a5c19 commit 151a98e

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ endif()
230230
if(ament_cmake_FOUND)
231231
find_package(ament_index_cpp REQUIRED)
232232
ament_target_dependencies(${BEHAVIOR_TREE_LIBRARY} PUBLIC ament_index_cpp)
233+
ament_export_dependencies(ament_index_cpp)
233234

234235
set( BEHAVIOR_TREE_LIB_DESTINATION lib )
235236
set( BEHAVIOR_TREE_INC_DESTINATION include )

docs/tutorial_02_basic_ports.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,13 @@ static value into an entry using the built-in Actions called `SetBlackboard`.
189189

190190
## A complete example
191191

192-
In this example, a Sequence of 5 Actions is executed:
192+
In this example, a Sequence of 4 Actions is executed:
193193

194-
- Actions 1 and 4 read the input `message` from a static string.
194+
- Actions 1 and 2 read the input `message` from a static string (`SaySomething2` is a SimpleActionNode).
195195

196-
- Actions 3 and 5 read the input `message` from an entry in the
197-
blackboard called `the_answer`.
196+
- Action 3 writes something into the entry of the blackboard called `the_answer`.
198197

199-
- Action 2 writes something into the entry of the blackboard called `the_answer`.
200-
201-
`SaySomething2` is a SimpleActionNode.
198+
- Action 4 read the input `message` from an entry in the blackboard called `the_answer`.
202199

203200
```XML
204201
<root main_tree_to_execute = "MainTree" >

docs/tutorial_09_coroutines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class MyAsyncAction: public CoroActionNode
105105
CoroActionNode::halt();
106106
}
107107

108-
Timepoint Now()
108+
TimePoint Now()
109109
{
110110
return std::chrono::high_resolution_clock::now();
111111
};

include/behaviortree_cpp_v3/blackboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ class Blackboard
116116
template <typename T>
117117
void set(const std::string& key, const T& value)
118118
{
119-
std::unique_lock<std::mutex> lock(mutex_);
120119
std::unique_lock<std::mutex> lock_entry(entry_mutex_);
120+
std::unique_lock<std::mutex> lock(mutex_);
121121
auto it = storage_.find(key);
122122

123123
if( auto parent = parent_bb_.lock())

0 commit comments

Comments
 (0)