BimanualAffordanceArmarX.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/BimanualAffordance.h>
27 
28 #include <VirtualRobot/Visualization/ColorMap.h>
29 
30 #include <Inventor/nodes/SoCoordinate3.h>
31 #include <Inventor/nodes/SoMaterial.h>
32 #include <Inventor/nodes/SoLineSet.h>
33 
35 
36 #include <VirtualRobot/Visualization/ColorMap.h>
37 
38 namespace AffordanceKitArmarX
39 {
40 
42  {
43  public:
44  BimanualAffordanceArmarX(const AffordanceKit::BimanualAffordancePtr& bimanualAffordance);
46 
47  void visualize(const armarx::DebugDrawerInterfacePrx& debugDrawer, const std::string& layerName, const std::string& id, float minExpectedProbability, const AffordanceKit::PrimitivePtr& primitive);
48 
49  void reset();
50 
51  protected:
52  AffordanceKit::BimanualAffordancePtr affordance;
53 
57  SoSeparator* visualizationNode;
58  };
59 
60  using BimanualAffordanceArmarXPtr = std::shared_ptr<BimanualAffordanceArmarX>;
61 
62 
63 }
64 
65 
66 
DebugDrawerComponent.h
AffordanceKitArmarX::BimanualAffordanceArmarX::~BimanualAffordanceArmarX
~BimanualAffordanceArmarX()
Definition: BimanualAffordanceArmarX.cpp:38
AffordanceKitArmarX::BimanualAffordanceArmarX::reset
void reset()
Definition: BimanualAffordanceArmarX.cpp:46
AffordanceKitArmarX::BimanualAffordanceArmarX::visualize
void visualize(const armarx::DebugDrawerInterfacePrx &debugDrawer, const std::string &layerName, const std::string &id, float minExpectedProbability, const AffordanceKit::PrimitivePtr &primitive)
Definition: BimanualAffordanceArmarX.cpp:54
AffordanceKitArmarX::BimanualAffordanceArmarX::visualizationCoordinateNode
SoCoordinate3 * visualizationCoordinateNode
Definition: BimanualAffordanceArmarX.h:54
AffordanceKitArmarX::BimanualAffordanceArmarX
Definition: BimanualAffordanceArmarX.h:41
AffordanceKitArmarX::BimanualAffordanceArmarXPtr
std::shared_ptr< BimanualAffordanceArmarX > BimanualAffordanceArmarXPtr
Definition: BimanualAffordanceArmarX.h:60
AffordanceKitArmarX::BimanualAffordanceArmarX::visualizationMaterialNode
SoMaterial * visualizationMaterialNode
Definition: BimanualAffordanceArmarX.h:55
AffordanceKitArmarX::BimanualAffordanceArmarX::affordance
AffordanceKit::BimanualAffordancePtr affordance
Definition: BimanualAffordanceArmarX.h:52
AffordanceKitArmarX::BimanualAffordanceArmarX::BimanualAffordanceArmarX
BimanualAffordanceArmarX(const AffordanceKit::BimanualAffordancePtr &bimanualAffordance)
Definition: BimanualAffordanceArmarX.cpp:32
IceInternal::ProxyHandle<::IceProxy::armarx::DebugDrawerInterface >
AffordanceKitArmarX
Definition: BimanualAffordanceArmarX.cpp:30
AffordanceKitArmarX::BimanualAffordanceArmarX::visualizationNode
SoSeparator * visualizationNode
Definition: BimanualAffordanceArmarX.h:57
AffordanceKitArmarX::BimanualAffordanceArmarX::visualizationLineSetNode
SoLineSet * visualizationLineSetNode
Definition: BimanualAffordanceArmarX.h:56