AStarPathPlannerTestComponent.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 RobotComponents::applications::AStarPathPlannerTestApp
17* @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18* @date 2015 Humanoids Group, H2T, KIT
19* @license http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
23#pragma once
24
26
28
29#include <RobotComponents/interface/components/PathPlanner.h>
30
31#include <MemoryX/interface/components/WorkingMemoryInterface.h>
32
33namespace armarx
34{
37 {
38 public:
41 {
43 "WorkingMemoryName", "WorkingMemory", "Name of WorkingMemory component");
45 "DebugDrawerName", "DebugDrawerUpdates", "Name of DebugDrawer component");
47 "AStarPathPlannerName", "AStarPathPlanner", "Name of AStarPathPlanner component");
48 }
49 };
50
51 /**
52 * @brief A test component for the AStarPathPlanner
53 */
55 {
56 public:
57 /**
58 * @see PropertyUser::createPropertyDefinitions()
59 */
66
67 /**
68 * @see armarx::ManagedIceObject::onInitComponent()
69 */
70 void onInitComponent() override;
71
72 /**
73 * @see armarx::ManagedIceObject::onConnectComponent()
74 */
75 void onConnectComponent() override;
76
77 void onExitComponent() override;
78
79 /**
80 * @see armarx::ManagedIceObject::getDefaultName()
81 */
82 std::string
83 getDefaultName() const override
84 {
85 return "AStarPathPlannerTestComponent";
86 }
87
88 private:
89 memoryx::WorkingMemoryInterfacePrx workingMemoryPrx;
91 armarx::AStarPathPlannerBasePrx aStarPathPlannerPrx;
92 };
93} // namespace armarx
A test component for the AStarPathPlanner.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Default component property definition container.
Definition Component.h:70
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Definition Component.cpp:46
Component()
Protected default constructor. Used for virtual inheritance. Use createManagedIceObject() instead.
Definition Component.cpp:66
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition Component.cpp:90
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::DebugDrawerInterface > DebugDrawerInterfacePrx