LocationLoader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <fstream>
4 #include <string>
5 #include <vector>
6 
7 #include <SimoxUtility/json.h>
8 
10 
12 {
14  {
15  public:
16  static const constexpr auto DEFAULT_FILE_NAME = "locations.json";
17 
18  LocationLoader() = delete;
19 
20  // static std::vector<FramedLocation> LoadFramedLocations(const std::string& dataset,
21  // const nlohmann::json&);
22  // static std::vector<FramedBoxedLocation> LoadBoxedLocations(const std::string& dataset,
23  // const nlohmann::json&);
24  static std::vector<LocationPtr> LoadLocations(const std::string& dataset,
25  const nlohmann::json&);
26 
27  private:
28  static FramedLocationPtr LoadFramedLocation(const std::string& source,
29  const std::string& locationName,
30  const nlohmann::json& j);
31 
32  static FramedBoxedLocationPtr LoadBoxedLocation(const std::string& source,
33  const std::string& locationName,
34  const nlohmann::json& j);
35  };
36 } // namespace armarx::priorknowledge::util
armarx::priorknowledge::util::FramedBoxedLocationPtr
std::unique_ptr< FramedBoxedLocation > FramedBoxedLocationPtr
Definition: Location.h:89
armarx::priorknowledge::util::FramedLocationPtr
std::unique_ptr< FramedLocation > FramedLocationPtr
Definition: Location.h:90
armarx::priorknowledge::util::LocationLoader::LocationLoader
LocationLoader()=delete
boost::source
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Definition: point_cloud_graph.h:681
armarx::priorknowledge::util::LocationLoader::LoadLocations
static std::vector< LocationPtr > LoadLocations(const std::string &dataset, const nlohmann::json &)
Definition: LocationLoader.cpp:143
Location.h
armarx::priorknowledge::util::LocationLoader::DEFAULT_FILE_NAME
static const constexpr auto DEFAULT_FILE_NAME
Definition: LocationLoader.h:16
armarx::priorknowledge::util
Definition: AffordanceLoader.cpp:6
armarx::priorknowledge::util::LocationLoader
Definition: LocationLoader.h:13