#pragma once #include #include "Pose2.h" namespace gtsam { class Pose2Config: public std::map { public: Pose2Config() {} Pose2 get(std::string key) const { std::map::const_iterator it = find(key); if (it == end()) throw std::invalid_argument("invalid key"); return it->second; } void insert(const std::string& name, const Pose2& val){ std::map::insert(make_pair(name, val)); } }; } // namespace