32 using AmrInfo = std::pair<amr::AmrStaticAbility, AmrKinematics>;
34 static AmrFleet &get() {
return getImpl(); }
36 static void init(
const std::vector<AmrInfo> &infos) { getImpl(infos); }
39 void operator=(
AmrFleet const &) =
delete;
55 static std::string getDefaultTopic() {
return "defaulttopic"; }
58 std::vector<AmrInfo> infos_;
60 static AmrFleet &getImpl(
const std::optional<std::vector<AmrInfo>> &infos = std::nullopt) {
65 explicit AmrFleet(
const std::optional<std::vector<AmrInfo>> &infos) {
66 if (!infos.has_value()) {
67 throw std::runtime_error(
"AmrFleet not initialized");
70 infos_ = infos.value();
std::vector< amr::AmrStaticAbility > getAllExistingAbilities() const
\mathcal{G} = {G1, G2, ...} in thesis
Definition amr_fleet.cpp:80