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()
230230if (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 )
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`.
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" >
Original file line number Diff line number Diff 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 };
Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments