WorldStateSegment.h
Go to the documentation of this file.
1 /*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package MemoryX::WorkingMemory
17 * @author Thomas von der Heyde (tvh242 at hotmail dot com)
18 * @date 2014
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22 
23 #pragma once
24 
26 
29 
30 #include <MemoryX/interface/core/EntityBase.h>
31 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
32 #include <MemoryX/interface/memorytypes/MemorySegments.h>
33 
34 namespace memoryx
35 {
36  /*!
37  * WorldStateSegment stores entities of type ObjectInstance corresponding to environmental entities.
38  */
40  virtual public WorkingMemoryEntitySegment<ObjectInstance>,
41  virtual public WorldStateSegmentBase
42  {
43  public:
45 
46  /*!
47  * Gets the entity with the given ID.
48  * \param id Entity ID.
49  */
50  ObjectInstanceBasePtr getWorldInstanceById(const ::std::string& id, const ::Ice::Current& = Ice::emptyCurrent) const override;
51  /*!
52  * Gets the entity with the given name.
53  * \param name Entity name.
54  */
55  ObjectInstanceBasePtr getWorldInstanceByName(const ::std::string& name, const ::Ice::Current& = Ice::emptyCurrent) const override;
56  /*!
57  * Gets the entities having the given class.
58  * \param className Class name.
59  */
60  ObjectInstanceList getWorldInstancesByClass(const ::std::string& className, const ::Ice::Current& c = Ice::emptyCurrent) const override;
61  /*!
62  * Gets the entities having a class in the given class list.
63  * \param classList List of class names.
64  */
65  ObjectInstanceList getWorldInstancesByClassList(const NameList& classList, const ::Ice::Current& = Ice::emptyCurrent) const override;
66 
67  private:
68 
69  };
70 
72 }
73 
memoryx::WorldStateSegment
Definition: WorldStateSegment.h:39
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::WorkingMemoryEntitySegment
Definition: WorkingMemoryEntitySegment.h:44
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
WorkingMemoryEntitySegment.h
ObjectInstance.h
ImportExportComponent.h