ObjectInstanceSegmentWrapper.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <string>
5#include <vector>
6
7#include <VirtualRobot/VirtualRobot.h>
8
9#include <RobotAPI/interface/core/RobotState.h>
10
11#include <MemoryX/interface/components/WorkingMemoryInterface.h>
14
15namespace memoryx
16{
18 {
20 VirtualRobot::ManipulationObjectPtr manipulationObject;
21 };
22
23 /**
24 * @brief Allows access to the objects in the working memory in form of Simox SceneObjects.
25 */
27 {
28 public:
29 void initFromProxies(memoryx::PriorKnowledgeInterfacePrx const& priorKnowledge,
30 memoryx::WorkingMemoryInterfacePrx const& workingMemory,
31 armarx::RobotStateComponentInterfacePrx const& robotStateComponent);
32
33 std::vector<ObjectInstanceWrapper> queryObjects(std::set<std::string> const& ids = {});
34
36
37 private:
40 VirtualRobot::RobotPtr localRobot;
41 memoryx::ObjectInstanceMemorySegmentBasePrx objectInstancesSegment;
42 };
43
44} // namespace memoryx
Allows access to the objects in the working memory in form of Simox SceneObjects.
std::vector< ObjectInstanceWrapper > queryObjects(std::set< std::string > const &ids={})
void initFromProxies(memoryx::PriorKnowledgeInterfacePrx const &priorKnowledge, memoryx::WorkingMemoryInterfacePrx const &workingMemory, armarx::RobotStateComponentInterfacePrx const &robotStateComponent)
std::shared_ptr< class Robot > RobotPtr
Definition Bus.h:19
::IceInternal::ProxyHandle<::IceProxy::armarx::SharedRobotInterface > SharedRobotInterfacePrx
Definition FramedPose.h:59
::IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface > RobotStateComponentInterfacePrx
VirtualRobot headers.
IceInternal::Handle< ObjectInstance > ObjectInstancePtr
VirtualRobot::ManipulationObjectPtr manipulationObject
memoryx::ObjectInstancePtr instanceInMemory