|
EasyFleet
A simple-by-default framework for multi-robot, multi-capability fleets built on ROS 2
|
Boilerplate-free CapabilityFactory for any Capability<ActionServerT>. More...
#include <capability_factory.hpp>
Public Member Functions | |
| std::shared_ptr< CapabilityNodeBase > | create (const std::string &capability_name, const rclcpp::NodeOptions &options) const override |
| Constructs and returns one capability node instance ready for the caller to configure()/activate(). | |
Additional Inherited Members | |
| Public Types inherited from CapabilityFactory | |
| using | SharedPtr = std::shared_ptr<CapabilityFactory> |
| Shared pointer to a CapabilityFactory. | |
Boilerplate-free CapabilityFactory for any Capability<ActionServerT>.
A concrete backend needs nothing beyond one line to become plugin-loadable – see the .cpp of any capability implementation for the matching PLUGINLIB_EXPORT_CLASS registration:
|
inlineoverridevirtual |
Constructs and returns one capability node instance ready for the caller to configure()/activate().
| capability_name | Passed straight through to Capability<T>'s own constructor – the node name, the action name, and the capability identity field published on /capabilities. |
| options | Node options Robot::add_capability() has already stamped with this robot's namespace (see robot.hpp), plus whatever parameter overrides the caller supplied. |
Implements CapabilityFactory.