EasyFleet
A simple-by-default framework for multi-robot, multi-capability fleets built on ROS 2
Loading...
Searching...
No Matches
capability_info.hpp
1// Copyright 2026 Intelligent Robotics Lab
2//
3// This file is part of the project EasyFleet
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#ifndef EASYFLEET_MISSION_MANAGER__CAPABILITY_INFO_HPP_
17#define EASYFLEET_MISSION_MANAGER__CAPABILITY_INFO_HPP_
18
19#include <string>
20
21#include "nlohmann/json.hpp"
22
23namespace easyfleet_mission_manager
24{
25
33{
35 std::string robot;
37 std::string capability;
39 std::string action_name;
43 nlohmann::json description_json;
48 bool active{false};
53 bool busy{false};
54};
55
58void print_capability_info(const CapabilityInfo & info);
59
61void print_capability_summary_line(const CapabilityInfo & info);
62
63} // namespace easyfleet_mission_manager
64
65#endif // EASYFLEET_MISSION_MANAGER__CAPABILITY_INFO_HPP_
Everything known about one running capability instance, gathered from its /capabilities (easyfleet_in...
Definition capability_info.hpp:33
bool active
Whether this capability was announced on /capabilities at all, at discovery time.
Definition capability_info.hpp:48
nlohmann::json description_json
description_json_raw, parsed – empty if parsing failed.
Definition capability_info.hpp:43
std::string description_json_raw
Raw JSON text of the capability description, as published.
Definition capability_info.hpp:41
std::string capability
Capability type (e.g. "navigation").
Definition capability_info.hpp:37
bool description_json_valid
Whether description_json_raw parsed successfully as JSON.
Definition capability_info.hpp:45
std::string robot
Robot identity this capability was announced under (e.g. "robot1").
Definition capability_info.hpp:35
bool busy
True while the capability has a goal currently executing (from the latest CapabilityStatus heartbeat ...
Definition capability_info.hpp:53
std::string action_name
Fully-qualified action name (e.g. "/robot1/navigation").
Definition capability_info.hpp:39