File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed
include/behaviortree_cpp_v3 Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ endif()
230
230
if (ament_cmake_FOUND )
231
231
find_package (ament_index_cpp REQUIRED )
232
232
ament_target_dependencies (${BEHAVIOR_TREE_LIBRARY} PUBLIC ament_index_cpp )
233
+ ament_export_dependencies (ament_index_cpp )
233
234
234
235
set ( BEHAVIOR_TREE_LIB_DESTINATION lib )
235
236
set ( BEHAVIOR_TREE_INC_DESTINATION include )
Original file line number Diff line number Diff line change @@ -189,16 +189,13 @@ static value into an entry using the built-in Actions called `SetBlackboard`.
189
189
190
190
## A complete example
191
191
192
- In this example, a Sequence of 5 Actions is executed:
192
+ In this example, a Sequence of 4 Actions is executed:
193
193
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) .
195
195
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 ` .
198
197
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 ` .
202
199
203
200
``` XML
204
201
<root main_tree_to_execute = " MainTree" >
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class MyAsyncAction: public CoroActionNode
105
105
CoroActionNode::halt();
106
106
}
107
107
108
- Timepoint Now()
108
+ TimePoint Now()
109
109
{
110
110
return std::chrono::high_resolution_clock::now();
111
111
};
Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ class Blackboard
116
116
template <typename T>
117
117
void set (const std::string& key, const T& value)
118
118
{
119
- std::unique_lock<std::mutex> lock (mutex_);
120
119
std::unique_lock<std::mutex> lock_entry (entry_mutex_);
120
+ std::unique_lock<std::mutex> lock (mutex_);
121
121
auto it = storage_.find (key);
122
122
123
123
if ( auto parent = parent_bb_.lock ())
You can’t perform that action at this time.
0 commit comments