The one concrete RunningCapabilityBase implementation, parameterized by the actual action type a given capability type is run with.
More...
#include <running_capability.hpp>
|
| | RunningCapability (rclcpp::Node &node, const std::string &action_name, std::string robot_name, std::string capability_type, easyfleet_mission_manager::StatusMarkerPublisher &status) |
| void | run (const typename ActionT::Goal &goal, std::chrono::seconds timeout) |
| | Sends goal and starts tracking it.
|
| void | stop () override |
| | Asks the in-flight goal, if any, to stop.
|
| easyfleet::CapabilityState | state () const override |
| void | check_timeout () override |
| | Called periodically (from FleetSession::spin_some()) so a timeout passed to run() actually gets enforced without blocking the caller.
|
template<typename ActionT>
class easyfleet_mission_manager::detail::RunningCapability< ActionT >
The one concrete RunningCapabilityBase implementation, parameterized by the actual action type a given capability type is run with.
◆ RunningCapability()
template<typename ActionT>
- Parameters
-
| node | Node the underlying CapabilityClient is created on. |
| action_name | Resolved action name to call (e.g. "/robot_1/navigation"). |
| robot_name | Robot identity the status marker is shown above. |
| capability_type | Capability type, for status/log lines (e.g. "navigation"). |
| status | Status marker publisher run() publishes through. |
◆ check_timeout()
template<typename ActionT>
Called periodically (from FleetSession::spin_some()) so a timeout passed to run() actually gets enforced without blocking the caller.
Implements RunningCapabilityBase.
◆ run()
template<typename ActionT>
| void run |
( |
const typename ActionT::Goal & | goal, |
|
|
std::chrono::seconds | timeout ) |
|
inline |
Sends goal and starts tracking it.
- Parameters
-
| goal | Goal to send, fully typed – built by hand or via one of mission_helpers.hpp's make_*_goal() convenience overloads. |
| timeout | Stop the goal if it hasn't finished on its own within this long, enforced by check_timeout(). |
◆ state()
template<typename ActionT>
| easyfleet::CapabilityState state |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ stop()
template<typename ActionT>
The documentation for this class was generated from the following file: