DummyWorldStateObserver.cpp
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::ArmarXObjects::DummyWorldStateObserver
17  * @author Peter Kaiser ( peter dot kaiser at kit dot edu )
18  * @date 2016
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
24 
25 
26 namespace armarx
27 {
29  {
30  }
31 
33  {
34  }
35 
37  {
38  }
39 
41  {
42  }
43 
45  {
48  }
49 
50  memoryx::PredicateInstanceList DummyWorldStateObserver::getWorldState(const Ice::Current&)
51  {
52  ARMARX_WARNING << "getWorldState is a stub";
53 
54  std::vector<memoryx::PredicateInstance> result;
55  return result;
56  }
57 
58  bool DummyWorldStateObserver::isObservable(const std::string& predicateName, const Ice::Current&)
59  {
60  ARMARX_WARNING << "isObservable is a stub";
61  return false;
62  }
63 
64  bool DummyWorldStateObserver::updatePredicateValue(const memoryx::PredicateInstance& pi, bool removePredicate, const Ice::Current&)
65  {
66  ARMARX_WARNING << "updatePredicateValue is a stub";
67  return true;
68  }
69 
70  void DummyWorldStateObserver::setPredicateArgumentWhitelist(const memoryx::EntityBaseList& argumentWhitelist, const Ice::Current&)
71  {
72  ARMARX_WARNING << "setPredicateArgumentWhitelist is a stub";
73  }
74 
76  {
77  ARMARX_WARNING << "resetPredicateArgumentWhitelist is a stub";
78  }
79 
80  void DummyWorldStateObserver::addObservablePredicateInstances(const memoryx::PredicateInstanceList& predicates, const Ice::Current&)
81  {
82  ARMARX_WARNING << "addObservablePredicateInstances is a stub";
83  }
84 
85  void DummyWorldStateObserver::registerAsUpdater(const std::string& name, const memoryx::WorldStateUpdaterInterfacePrx& updater, const Ice::Current&)
86  {
87  ARMARX_WARNING << "registerAsUpdater is a stub";
88  }
89 
90  memoryx::WorldStateUpdaterInterfaceList DummyWorldStateObserver::getRegisteredUpdaters(const Ice::Current&)
91  {
92  ARMARX_WARNING << "getRegisteredUpdaters is a stub";
93 
94  std::vector<memoryx::WorldStateUpdaterInterfacePrx> result;
95  return result;
96  }
97 }
armarx::DummyWorldStateObserver::resetPredicateArgumentWhitelist
virtual void resetPredicateArgumentWhitelist(const ::Ice::Current &) override
Definition: DummyWorldStateObserver.cpp:75
armarx::DummyWorldStateObserver::onExitComponent
virtual void onExitComponent() override
Definition: DummyWorldStateObserver.cpp:40
armarx::DummyWorldStateObserver::createPropertyDefinitions
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: DummyWorldStateObserver.cpp:44
armarx::DummyWorldStateObserver::addObservablePredicateInstances
void addObservablePredicateInstances(const memoryx::PredicateInstanceList &predicates, const Ice::Current &) override
Definition: DummyWorldStateObserver.cpp:80
armarx::DummyWorldStateObserver::onInitComponent
virtual void onInitComponent() override
Definition: DummyWorldStateObserver.cpp:28
armarx::DummyWorldStateObserver::setPredicateArgumentWhitelist
virtual void setPredicateArgumentWhitelist(const memoryx::EntityBaseList &argumentWhitelist, const Ice::Current &) override
Definition: DummyWorldStateObserver.cpp:70
armarx::DummyWorldStateObserver::getRegisteredUpdaters
memoryx::WorldStateUpdaterInterfaceList getRegisteredUpdaters(const Ice::Current &) override
Definition: DummyWorldStateObserver.cpp:90
armarx::DummyWorldStateObserver::onDisconnectComponent
virtual void onDisconnectComponent() override
Definition: DummyWorldStateObserver.cpp:36
pi
#define pi
Definition: Transition.cpp:37
armarx::DummyWorldStateObserver::getWorldState
virtual memoryx::PredicateInstanceList getWorldState(const ::Ice::Current &) override
Definition: DummyWorldStateObserver.cpp:50
armarx::DummyWorldStateObserver::updatePredicateValue
virtual bool updatePredicateValue(const memoryx::PredicateInstance &pi, bool removePredicate, const ::Ice::Current &) override
Definition: DummyWorldStateObserver.cpp:64
armarx::DummyWorldStateObserver::onConnectComponent
virtual void onConnectComponent() override
Definition: DummyWorldStateObserver.cpp:32
armarx::DummyWorldStateObserverPropertyDefinitions
Definition: DummyWorldStateObserver.h:35
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:74
IceUtil::Handle< class PropertyDefinitionContainer >
DummyWorldStateObserver.h
ARMARX_WARNING
#define ARMARX_WARNING
Definition: Logging.h:186
armarx::PropertyDefinitionsPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Definition: forward_declarations.h:34
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::DummyWorldStateObserver::registerAsUpdater
void registerAsUpdater(const std::string &name, const memoryx::WorldStateUpdaterInterfacePrx &updater, const Ice::Current &) override
Definition: DummyWorldStateObserver.cpp:85
armarx::DummyWorldStateObserver::isObservable
virtual bool isObservable(const ::std::string &predicateName, const ::Ice::Current &) override
Definition: DummyWorldStateObserver.cpp:58