MemoryRGBDOpenPoseEstimation.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
26 #include <VisionX/interface/components/PointCloudAndImageAndCalibrationProviderInterface.h>
27 
28 namespace visionx
29 {
33  {
34  public:
35  std::string getDefaultName() const override
36  {
37  return "RGBDOpenPoseEstimation";
38  }
39 
41 
42  protected:
43  virtual void onInitImageProcessor() override;
44  virtual void onConnectImageProcessor() override;
45  virtual void onDisconnectImageProcessor() override;
46  virtual void onExitImageProcessor() override;
47  virtual void process() override;
48 
49  private:
50  std::string providerName = "";
51 
52  // ImageBuffer und ImageInformations
53  CByteImage** imageBuffer;
54  visionx::ImageProviderInfo imageProviderInfo;
55  armarx::MetaInfoSizeBasePtr imageMetaInfo;
56  unsigned int numImages;
57 
58  // ErrorCounters
59  std::uint64_t timeoutCounter2d{0};
60  std::uint64_t readErrorCounter2d{0};
61  std::uint64_t sucessCounter2d{0};
62  };
63 }
visionx::RGBDOpenPoseEstimation::onExitImageProcessor
virtual void onExitImageProcessor() override
Exit the ImapeProcessor component.
Definition: MemoryRGBDOpenPoseEstimation.cpp:83
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::ImageProcessor
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
Definition: ImageProcessor.h:87
visionx::RGBDOpenPoseEstimation
Definition: MemoryRGBDOpenPoseEstimation.h:30
visionx::RGBDOpenPoseEstimation::onConnectImageProcessor
virtual void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
Definition: MemoryRGBDOpenPoseEstimation.cpp:50
visionx::ImageProviderInfo
Definition: ImageProcessor.h:466
visionx::RGBDOpenPoseEstimation::onInitImageProcessor
virtual void onInitImageProcessor() override
Setup the vision component.
Definition: MemoryRGBDOpenPoseEstimation.cpp:41
ImageProcessor.h
visionx::RGBDOpenPoseEstimation::process
virtual void process() override
Process the vision component.
Definition: MemoryRGBDOpenPoseEstimation.cpp:88
visionx::RGBDOpenPoseEstimation::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: MemoryRGBDOpenPoseEstimation.h:35
IceUtil::Handle< class PropertyDefinitionContainer >
visionx::RGBDOpenPoseEstimation::createPropertyDefinitions
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: MemoryRGBDOpenPoseEstimation.cpp:31
visionx::OpenPose3DDepthImageConverter
Definition: OpenPose3DDepthImageConverter.h:38
visionx::RGBDOpenPoseEstimation::onDisconnectImageProcessor
virtual void onDisconnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component looses network ...
Definition: MemoryRGBDOpenPoseEstimation.cpp:76