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
28 
30 #include <VisionX/interface/components/PointCloudAndImageAndCalibrationProviderInterface.h>
32 
33 namespace armarx
34 {
39  {
40  public:
41  /// @see armarx::ManagedIceObject::getDefaultName()
42  std::string getDefaultName() const override;
43 
44  /// Get the component's default name.
45  static std::string GetDefaultName();
46 
48 
49  void reportEntities() override;
50 
51  protected:
52  virtual void onInitImageProcessor() override;
53  virtual void onConnectImageProcessor() override;
54  virtual void onDisconnectImageProcessor() override;
55  virtual void onExitImageProcessor() override;
56  virtual void process() override;
57 
58  private:
59  static const std::string defaultName;
60 
61  struct Properties
62  {
63  std::string providerName = "";
64  bool enableMemory = true;
65  armarx::armem::MemoryID humanMemory{"Human/Pose"};
66  } properties;
67 
68  armarx::armem::client::Writer humanMemoryWriter;
69  };
70 } // namespace armarx
Writer.h
armarx::RGBDOpenPoseEstimationComponentPluginUser
Definition: RGBDOpenPoseEstimationComponent.h:36
armarx::RGBDPoseEstimationWithMemoryWriter::onExitImageProcessor
virtual void onExitImageProcessor() override
Exit the ImapeProcessor component.
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:217
visionx::ImageProcessor
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
Definition: ImageProcessor.h:98
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:207
armarx::RGBDPoseEstimationWithMemoryWriter::createPropertyDefinitions
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:48
armarx::RGBDPoseEstimationWithMemoryWriter::onInitImageProcessor
virtual void onInitImageProcessor() override
Setup the vision component.
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:147
armarx::armem::client::plugins::PluginUser
Adds the Memory Name System client component plugin.
Definition: PluginUser.h:27
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:76
armarx::RGBDPoseEstimationWithMemoryWriter::getDefaultName
std::string getDefaultName() const override
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:70
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::RGBDPoseEstimationWithMemoryWriter::process
virtual void process() override
Process the vision component.
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:222
PluginUser.h
armarx::RGBDPoseEstimationWithMemoryWriter::reportEntities
void reportEntities() override
Definition: RGBDPoseEstimationWithMemoryWriter.cpp:82
armarx::RGBDPoseEstimationWithMemoryWriter
Definition: RGBDPoseEstimationWithMemoryWriter.h:35
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:158
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27