6 #include "knowrob/semweb/Perspective.h"
7 #include "knowrob/integration/python/utils.h"
8 #include "knowrob/knowrob.h"
13 std::map<std::string_view, std::shared_ptr<Perspective>>();
19 static std::shared_ptr<Perspective> egoPerspective;
20 if (egoPerspective ==
nullptr) {
24 return egoPerspective;
34 auto agent = std::make_shared<Perspective>(
iri);
46 class_<Perspective, std::shared_ptr<Perspective>>(
"Perspective", no_init)
static IRIAtomPtr egoIRI()
static std::shared_ptr< Perspective > getEgoPerspective()
static std::shared_ptr< Perspective > get(std::string_view iri)
Perspective(std::string_view iri)
static std::map< std::string_view, std::shared_ptr< Perspective > > perspectiveMap_
static bool isEgoPerspective(std::string_view iri)
void createType< Perspective >()
IRIAtomPtr iri(std::string_view ns, std::string_view name)