SceneArmarX.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 Lesser General Public License as
6  * published by the Free Software Foundation; either version 2 of
7  * the License, or (at your option) any later version.
8  *
9  * ArmarX is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  *
17  * @package AffordanceKitArmarX
18  * @author Peter Kaiser ( peter dot kaiser at kit dot edu )
19  * @date 2016
20  * @copyright http://www.gnu.org/licenses/gpl.txt
21  * GNU General Public License
22  */
23 
24 #pragma once
25 
26 #include <AffordanceKit/Scene.h>
27 
28 #include <MemoryX/interface/components/WorkingMemoryInterface.h>
29 
30 namespace AffordanceKitArmarX
31 {
32 
33  class SceneArmarX : public AffordanceKit::Scene
34  {
35  public:
36  SceneArmarX();
37  SceneArmarX(const AffordanceKit::PrimitiveSetPtr& primitives, const std::vector<AffordanceKit::UnimanualAffordancePtr>& unimanualAffordances, const std::vector<AffordanceKit::BimanualAffordancePtr>& bimanualAffordances);
38  SceneArmarX(memoryx::EnvironmentalPrimitiveSegmentBasePrx& primitiveSegment, memoryx::AffordanceSegmentBasePrx& affordanceSegment);
39 
40  void writeToMemory(const memoryx::EnvironmentalPrimitiveSegmentBasePrx& primitiveSegment, const memoryx::AffordanceSegmentBasePrx& affordanceSegment) const;
41 
42  protected:
44 
45  protected:
46  std::map<std::string, memoryx::AffordanceType> affordanceTypes;
47  };
48 
49  using SceneArmarXPtr = std::shared_ptr<SceneArmarX>;
50 
51 }
52 
53 
54 
AffordanceKitArmarX::SceneArmarX::generateAffordanceTypes
void generateAffordanceTypes()
Definition: SceneArmarX.cpp:347
AffordanceKitArmarX::SceneArmarX::affordanceTypes
std::map< std::string, memoryx::AffordanceType > affordanceTypes
Definition: SceneArmarX.h:46
AffordanceKitArmarX::SceneArmarX::writeToMemory
void writeToMemory(const memoryx::EnvironmentalPrimitiveSegmentBasePrx &primitiveSegment, const memoryx::AffordanceSegmentBasePrx &affordanceSegment) const
Definition: SceneArmarX.cpp:246
AffordanceKitArmarX::SceneArmarX
Definition: SceneArmarX.h:33
AffordanceKitArmarX::SceneArmarX::SceneArmarX
SceneArmarX()
Definition: SceneArmarX.cpp:59
AffordanceKitArmarX::SceneArmarXPtr
std::shared_ptr< SceneArmarX > SceneArmarXPtr
Definition: SceneArmarX.h:49
AffordanceKitArmarX
Definition: BimanualAffordanceArmarX.cpp:30