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>
12
#include <
MemoryX/libraries/helpers/VirtualRobotHelpers/ObjectClassSegmentWrapper.h
>
13
#include <
MemoryX/libraries/memorytypes/entity/ObjectInstance.h
>
14
15
namespace
memoryx
16
{
17
struct
ObjectInstanceWrapper
18
{
19
memoryx::ObjectInstancePtr
instanceInMemory
;
20
VirtualRobot::ManipulationObjectPtr
manipulationObject
;
21
};
22
23
/**
24
* @brief Allows access to the objects in the working memory in form of Simox SceneObjects.
25
*/
26
class
ObjectInstanceSegmentWrapper
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
35
ObjectClassSegmentWrapper
objectClassSegment
;
36
37
private
:
38
armarx::RobotStateComponentInterfacePrx
robotStateComponent;
39
armarx::SharedRobotInterfacePrx
sharedRobot;
40
VirtualRobot::RobotPtr
localRobot;
41
memoryx::ObjectInstanceMemorySegmentBasePrx objectInstancesSegment;
42
};
43
44
}
// namespace memoryx
ObjectClassSegmentWrapper.h
memoryx::ObjectClassSegmentWrapper
Definition:
ObjectClassSegmentWrapper.h:22
memoryx::ObjectInstanceWrapper::instanceInMemory
memoryx::ObjectInstancePtr instanceInMemory
Definition:
ObjectInstanceSegmentWrapper.h:19
memoryx::ObjectInstanceSegmentWrapper::queryObjects
std::vector< ObjectInstanceWrapper > queryObjects(std::set< std::string > const &ids={})
Definition:
ObjectInstanceSegmentWrapper.cpp:37
memoryx
VirtualRobot headers.
Definition:
CommonPlacesTester.cpp:48
IceInternal::Handle< ObjectInstance >
memoryx::ObjectInstanceSegmentWrapper::initFromProxies
void initFromProxies(memoryx::PriorKnowledgeInterfacePrx const &priorKnowledge, memoryx::WorkingMemoryInterfacePrx const &workingMemory, armarx::RobotStateComponentInterfacePrx const &robotStateComponent)
Definition:
ObjectInstanceSegmentWrapper.cpp:19
memoryx::ObjectInstanceSegmentWrapper::objectClassSegment
ObjectClassSegmentWrapper objectClassSegment
Definition:
ObjectInstanceSegmentWrapper.h:35
ObjectInstance.h
IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface >
memoryx::ObjectInstanceWrapper::manipulationObject
VirtualRobot::ManipulationObjectPtr manipulationObject
Definition:
ObjectInstanceSegmentWrapper.h:20
memoryx::ObjectInstanceWrapper
Definition:
ObjectInstanceSegmentWrapper.h:17
memoryx::ObjectInstanceSegmentWrapper
Allows access to the objects in the working memory in form of Simox SceneObjects.
Definition:
ObjectInstanceSegmentWrapper.h:26
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition:
Bus.h:19
MemoryX
libraries
helpers
VirtualRobotHelpers
ObjectInstanceSegmentWrapper.h
Generated by
1.8.17