RGBDPoseEstimationWithMemoryWriter.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 VisionX::RGBDOpenPoseEstimation
17  * @author Fabian Peller <fabian.peller@kit.edu>
18  * @date 2020
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 #pragma once
23 
24 // ArmarX
27 #include <VisionX/interface/components/PointCloudAndImageAndCalibrationProviderInterface.h>
28 
30 
33 
34 namespace armarx
35 {
40  {
41  public:
42 
43  /// @see armarx::ManagedIceObject::getDefaultName()
44  std::string getDefaultName() const override;
45 
46  /// Get the component's default name.
47  static std::string GetDefaultName();
48 
50 
51  void reportEntities() override;
52 
53  protected:
54  virtual void onInitImageProcessor() override;
55  virtual void onConnectImageProcessor() override;
56  virtual void onDisconnectImageProcessor() override;
57  virtual void onExitImageProcessor() override;
58  virtual void process() override;
59 
60  private:
61 
62  static const std::string defaultName;
63 
64  struct Properties
65  {
66  std::string providerName = "";
67  bool enableMemory = true;
68  armarx::armem::MemoryID humanMemory{"Human/Pose"};
69  } properties;
70 
71  armarx::armem::client::Writer humanMemoryWriter;
72  };
73 }
Writer.h
armarx::RGBDOpenPoseEstimationComponentPluginUser
Definition: RGBDOpenPoseEstimationComponent.h:36
armarx::RGBDPoseEstimationWithMemoryWriter::onExitImageProcessor
virtual void onExitImageProcessor() override
Exit the ImapeProcessor component.
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:199
visionx::ImageProcessor
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
Definition: ImageProcessor.h:87
MemoryID.h
armarx::RGBDPoseEstimationWithMemoryWriter::onDisconnectImageProcessor
virtual void onDisconnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component looses network ...
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:190
armarx::RGBDPoseEstimationWithMemoryWriter::createPropertyDefinitions
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:44
armarx::RGBDPoseEstimationWithMemoryWriter::onInitImageProcessor
virtual void onInitImageProcessor() override
Setup the vision component.
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:133
armarx::armem::client::plugins::PluginUser
Adds the Memory Name System client component plugin.
Definition: PluginUser.h:29
armarx::armem::MemoryID
A memory ID.
Definition: MemoryID.h:47
ImageProcessor.h
armarx::armem::client::Writer
Helps a memory client sending data to a memory.
Definition: Writer.h:22
RGBDOpenPoseEstimationComponent.h
armarx::RGBDPoseEstimationWithMemoryWriter::GetDefaultName
static std::string GetDefaultName()
Get the component's default name.
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:67
armarx::RGBDPoseEstimationWithMemoryWriter::getDefaultName
std::string getDefaultName() const override
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:60
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::RGBDPoseEstimationWithMemoryWriter::process
virtual void process() override
Process the vision component.
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:203
PluginUser.h
armarx::RGBDPoseEstimationWithMemoryWriter::reportEntities
void reportEntities() override
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:74
armarx::RGBDPoseEstimationWithMemoryWriter
Definition: RGBDPoseEstimationWithMemoryWriter.h:36
armarx::RGBDPoseEstimationWithMemoryWriter::onConnectImageProcessor
virtual void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:143
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28