ObjectCostmapStorage.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <optional>
5#include <string>
6#include <unordered_map>
7#include <vector>
8
10
12
13#include "util.h"
14
16{
27
29 {
30 public:
32
33 void storeObjectCostmap(CachedObjectCostmap cachedObjectCostmap);
34 std::optional<armarx::navigation::algorithms::Costmap>
36 Eigen::Matrix4f objectGlobalPose,
37 JointValuesT jointValues);
38
39 void printOccupancy(bool noSpam = true);
40
41 private:
42 // class ID -> list of cached costmaps for base poses
43 std::unordered_map<std::string, std::vector<CachedObjectCostmap>> objectCostmaps_;
44 };
45} // namespace armarx::navigation::components::adaptive_distance_to_obstacle_costmap_provider
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
Definition ObjectID.h:11
std::optional< armarx::navigation::algorithms::Costmap > getTransformedCostmap(armarx::ObjectID objectID, Eigen::Matrix4f objectGlobalPose, JointValuesT jointValues)