1 #ifndef MAP_CLASSES_HPP
2 #define MAP_CLASSES_HPP
7 #include "rclcpp/rclcpp.hpp"
42 auto itX = m_pointsXY.find(x);
43 if(itX == m_pointsXY.end()) {
45 m_pointsXY.insert(std::pair<T, std::vector<T>>(x, std::vector<T>{ y }));
47 itX->second.push_back(y);
50 auto itY = m_pointsYX.find(y);
51 if(itY == m_pointsYX.end()) {
53 m_pointsYX.insert(std::pair<T, std::vector<T>>(y, std::vector<T>{ x }));
56 itY->second.push_back(x);
98 return _m_lastUpdateTime;
100 void update(rclcpp::Time
const& lastUpdate) {
101 _m_lastUpdateTime = lastUpdate;
103 virtual Vector2f get_position_now()
const = 0;
104 virtual Vector3f get_dimensions()
const = 0;
122 return Vector3f(m_sizeCM, m_sizeCM, m_sizeCM);
130 m_positionCM = posCM;