MotionMemory.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 RobotAPI::ArmarXObjects::ExampleMemory
17  * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18  * @date 2020
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #include "MotionMemory.h"
24 
25 
26 namespace armarx
27 {
29  {
31 
32  setMemoryName("Motion");
33 
34  const std::string prefix = "mem.";
35  mdbMotions.defineProperties(defs, prefix + "mdbmotions.");
36  motionPrimitive.defineProperties(defs, prefix + "trajs.");
37  return defs;
38  }
39 
40 
42  mdbMotions(iceAdapter()),
43  motionPrimitive(iceAdapter())
44  {
45  }
46 
47 
48  std::string MotionMemory::getDefaultName() const
49  {
50  return "MotionMemory";
51  }
52 
53 
55  {
56  mdbMotions.init();
57  motionPrimitive.init();
58  }
59 
60 
62  {
63  mdbMotions.onConnect();
64  motionPrimitive.onConnect();
65  }
66 
67 
69  {
70  }
71 
72 
74  {
75  }
76 
77 }
armarx::armem::server::motions::mdb::segment::MDBMotionSegment::onConnect
virtual void onConnect()
Definition: MotionSegment.cpp:46
armarx::armem::server::motions::mdb::segment::MDBMotionSegment::defineProperties
virtual void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
Definition: MotionSegment.cpp:28
armarx::armem::server::motions::mps::segment::MPSegment::init
virtual void init() override
Definition: Segment.cpp:35
armarx::armem::server::plugins::ReadWritePluginUser::setMemoryName
void setMemoryName(const std::string &memoryName)
Definition: ReadWritePluginUser.cpp:25
armarx::MotionMemory::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: MotionMemory.cpp:54
armarx::MotionMemory::getDefaultName
std::string getDefaultName() const override
Definition: MotionMemory.cpp:48
MotionMemory.h
armarx::armem::server::motions::mdb::segment::MDBMotionSegment::init
virtual void init() override
Definition: MotionSegment.cpp:36
armarx::MotionMemory::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: MotionMemory.cpp:61
armarx::MotionMemory::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: MotionMemory.cpp:73
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:74
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::MotionMemory::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: MotionMemory.cpp:28
armarx::armem::server::motions::mps::segment::MPSegment::defineProperties
virtual void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
Definition: Segment.cpp:27
armarx::MotionMemory::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: MotionMemory.cpp:68
armarx::armem::server::motions::mps::segment::MPSegment::onConnect
virtual void onConnect()
Definition: Segment.cpp:45
armarx::MotionMemory::MotionMemory
MotionMemory()
Definition: MotionMemory.cpp:41
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28