28#include <Eigen/Geometry>
30#include <VirtualRobot/Robot.h>
35#include <VisionX/interface/components/Calibration.h>
37#include <arviz_godot/lib/ArVizInteractiveInterface.h>
60 virtual public visionx::MonocularCalibrationCapturingProviderInterface
66 return "GodotSimulationImageProvider";
72 return "GodotSimulationImageProvider";
91 bool capture(
void** ppImageBuffers)
override;
94 visionx::MonocularCalibration
101 bool ensureConnected();
104 int renderWidth_ = 640;
105 int renderHeight_ = 480;
106 float focalLength_ = 600.f;
107 float nearClipMeters_ = 0.01f;
108 float farClipMeters_ = 100.f;
109 std::string cameraNodeName_;
110 std::string referenceFrame_;
111 std::string arvizGodotName_;
112 std::string robotStateComponentName_;
113 int renderTimeoutMs_ = 2000;
116 std::vector<std::string> renderLayers_;
123 arviz_interactive_project::components::arviz_interactive::ArVizInteractiveInterfacePrx
128 std::mutex captureMutex_;
A monocular image provider that renders the simulated scene using arviz_godot.
void onStartCapture(float frameRate) override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onStartCapturingImageProvider() override
visionx::MonocularCalibration getCalibration(const Ice::Current &c=Ice::emptyCurrent) override
void onStopCapture() override
void onExitCapturingImageProvider() override
static std::string GetDefaultName()
void onInitCapturingImageProvider() override
std::string getDefaultName() const override
Retrieve default name of component.
The CapturingImageProvider provides a callback function to trigger the capturing of images with diffe...
float frameRate
Required frame rate.
Quaternion< float, 0 > Quaternionf
std::shared_ptr< class Robot > RobotPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::SharedRobotInterface > SharedRobotInterfacePrx