ObjectInstanceSegmentWrapper.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
MemoryX/libraries/helpers/VirtualRobotHelpers/ObjectClassSegmentWrapper.h
>
4
#include <MemoryX/interface/components/WorkingMemoryInterface.h>
5
#include <
MemoryX/libraries/memorytypes/entity/ObjectInstance.h
>
6
#include <RobotAPI/interface/core/RobotState.h>
7
8
#include <VirtualRobot/VirtualRobot.h>
9
10
#include <string>
11
#include <vector>
12
#include <map>
13
14
namespace
memoryx
15
{
16
struct
ObjectInstanceWrapper
17
{
18
memoryx::ObjectInstancePtr
instanceInMemory
;
19
VirtualRobot::ManipulationObjectPtr
manipulationObject
;
20
};
21
22
/**
23
* @brief Allows access to the objects in the working memory in form of Simox SceneObjects.
24
*/
25
class
ObjectInstanceSegmentWrapper
26
{
27
public
:
28
void
initFromProxies
(memoryx::PriorKnowledgeInterfacePrx
const
& priorKnowledge,
29
memoryx::WorkingMemoryInterfacePrx
const
& workingMemory,
30
armarx::RobotStateComponentInterfacePrx
const
& robotStateComponent);
31
32
std::vector<ObjectInstanceWrapper>
queryObjects
(std::set<std::string>
const
& ids = {});
33
34
ObjectClassSegmentWrapper
objectClassSegment
;
35
36
private
:
37
armarx::RobotStateComponentInterfacePrx
robotStateComponent;
38
armarx::SharedRobotInterfacePrx
sharedRobot;
39
VirtualRobot::RobotPtr
localRobot;
40
memoryx::ObjectInstanceMemorySegmentBasePrx objectInstancesSegment;
41
42
};
43
44
}
ObjectClassSegmentWrapper.h
memoryx::ObjectClassSegmentWrapper
Definition:
ObjectClassSegmentWrapper.h:23
memoryx::ObjectInstanceWrapper::instanceInMemory
memoryx::ObjectInstancePtr instanceInMemory
Definition:
ObjectInstanceSegmentWrapper.h:18
memoryx::ObjectInstanceSegmentWrapper::queryObjects
std::vector< ObjectInstanceWrapper > queryObjects(std::set< std::string > const &ids={})
Definition:
ObjectInstanceSegmentWrapper.cpp:35
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:18
memoryx::ObjectInstanceSegmentWrapper::objectClassSegment
ObjectClassSegmentWrapper objectClassSegment
Definition:
ObjectInstanceSegmentWrapper.h:34
ObjectInstance.h
IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface >
memoryx::ObjectInstanceWrapper::manipulationObject
VirtualRobot::ManipulationObjectPtr manipulationObject
Definition:
ObjectInstanceSegmentWrapper.h:19
memoryx::ObjectInstanceWrapper
Definition:
ObjectInstanceSegmentWrapper.h:16
memoryx::ObjectInstanceSegmentWrapper
Allows access to the objects in the working memory in form of Simox SceneObjects.
Definition:
ObjectInstanceSegmentWrapper.h:25
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition:
Bus.h:18
MemoryX
libraries
helpers
VirtualRobotHelpers
ObjectInstanceSegmentWrapper.h
Generated on Sat Oct 12 2024 09:14:05 for armarx_documentation by
1.8.17