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