50 "isEnabled",
true,
"enable the capturing process immediately");
60 virtual public CapturingPointCloudProviderInterface
73 void startCapture(
const Ice::Current&
c = Ice::emptyCurrent)
override;
84 const Ice::Current&
c = Ice::emptyCurrent)
override;
90 void stopCapture(
const Ice::Current&
c = Ice::emptyCurrent)
override;
100 const Ice::Current&
c = Ice::emptyCurrent)
override;
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
IceUtil::Handle< RunningTask< T > > pointer_type
Shared pointer type for convenience.
CapturingPointCloudProviderPropertyDefinitions(std::string prefix)
The CapturingPointCloudProvider provides a callback function to trigger the capturing of point clouds...
virtual void onStopCapture()=0
This is called when the point cloud provider capturing has been stopped.
virtual void onInitCapturingPointCloudProvider()=0
This is called when the Component::onInitComponent() is called.
ImageSyncMode pointCloudSyncMode
Point cloud synchronization information.
ImageSyncMode getPointCloudSyncMode()
Returns the point cloud sync mode.
bool isCaptureEnabled(const Ice::Current &c=Ice::emptyCurrent) override
float frameRate
Required frame rate.
virtual void onExitCapturingPointCloudProvider()=0
This is called when the Component::onExitComponent() setup is called.
void stopCapture(const Ice::Current &c=Ice::emptyCurrent) override
Stops point cloud capturing.
void onConnectPointCloudProvider() override
void startCapture(const Ice::Current &c=Ice::emptyCurrent) override
Starts point cloud capturing.
void onInitPointCloudProvider() override
FPSCounter fpsCounter
FPS manager.
std::atomic_bool captureEnabled
Indicates that capturing is enabled and running.
void setPointCloudSyncMode(ImageSyncMode pointCloudSyncMode)
Sets the point cloud synchronization mode.
void startCaptureForNumFrames(int numFrames, const Ice::Current &c=Ice::emptyCurrent) override
Starts point cloud capturing.
virtual void onStartCapture(float framesPerSecond)=0
This is called when the point cloud provider capturing has been started.
void changeFrameRate(Ice::Float framesPerSecond, const Ice::Current &c=Ice::emptyCurrent) override
set a new frame rate
std::mutex captureMutex
mutex for capturing for proper exit
int numFramesToCapture
Number of frames to capture.
void onExitPointCloudProvider() override
virtual bool doCapture()=0
Main capturing function.
armarx::RunningTask< CapturingPointCloudProvider >::pointer_type captureTask
Capture thread.
virtual void onStartCapturingPointCloudProvider()
This is called when the Component::onConnectComponent() setup is called.
The FPSCounter class provides methods for calculating the frames per second (FPS) count in periodic t...
PointCloudProviderPropertyDefinitions(std::string prefix)
PointCloudProvider abstract class defines a component which provide point clouds via ice or shared me...