|
ROS 2 rclcpp + rcl - kilted
kilted
ROS 2 C++ Client Library with ROS Client Library
|
A collection of entities, indexed by their corresponding handles. More...
#include <rclcpp/executors/executor_entities_collection.hpp>


Public Types | |
| using | Key = const EntityKeyType * |
| Key type of the map. | |
| using | EntityWeakPtr = typename EntityValueType::WeakPtr |
| Weak pointer to entity type. | |
| using | EntitySharedPtr = typename EntityValueType::SharedPtr |
| Shared pointer to entity type. | |
Public Member Functions | |
| void | update (const EntityCollection< EntityKeyType, EntityValueType > &other, std::function< void(const EntitySharedPtr &)> on_added, std::function< void(const EntitySharedPtr &)> on_removed) |
| Update this collection based on the contents of another collection. More... | |
A collection of entities, indexed by their corresponding handles.
Definition at line 99 of file executor_entities_collection.hpp.
|
inline |
Update this collection based on the contents of another collection.
Update the internal state of this collection, firing callbacks when entities have been added or removed.
| [in] | other | Collection to compare to |
| [in] | on_added | Callback for when entities have been added |
| [in] | on_removed | Callback for when entities have been removed |
Definition at line 121 of file executor_entities_collection.hpp.
Referenced by rclcpp::Executor::collect_entities().
