29 #include <VisionX/interface/core/DataTypes.h>
30 #include <VisionX/interface/components/Calibration.h>
36 #include <Image/ByteImage.h>
37 #include <Calibration/StereoCalibration.h>
39 #include <VirtualRobot/Robot.h>
40 #include <ArmarXSimulation/interface/simulator/SimulatorInterface.h>
46 #include <VirtualRobot/Visualization/CoinVisualization/CoinVisualizationFactory.h>
57 defineOptionalProperty<float>(
"FrameRate", 30.0f,
"Frames per second")
58 .setMatchRegex(
"\\d+(.\\d*)?")
61 defineOptionalProperty<visionx::ImageDimension>(
"ImageSize", visionx::ImageDimension(640, 480),
"Target resolution of the images. Captured images will be converted to this size.")
62 .setCaseInsensitive(
true)
63 .map(
"320x240", visionx::ImageDimension(320, 240))
64 .map(
"640x480", visionx::ImageDimension(640, 480))
65 .map(
"800x600", visionx::ImageDimension(800, 600))
66 .map(
"768x576", visionx::ImageDimension(768, 576))
67 .map(
"1024x768", visionx::ImageDimension(1024, 768))
68 .map(
"1280x960", visionx::ImageDimension(1280, 960))
69 .map(
"1600x1200", visionx::ImageDimension(1600, 1200))
70 .map(
"none", visionx::ImageDimension(0, 0));
72 defineOptionalProperty<std::string>(
"RobotName",
"Armar3",
"The robot");
73 defineOptionalProperty<std::string>(
"RobotNodeLeftCamera",
"EyeLeftCameraSim",
"The coordinate system of the left camera");
74 defineOptionalProperty<std::string>(
"RobotNodeRightCamera",
"EyeRightCameraSim",
"The coordinate system of the right camera");
75 defineOptionalProperty<std::string>(
"CalibrationFile",
"",
"Camera calibration file, will be made available in the SLICE interface");
76 defineOptionalProperty<std::string>(
"ReferenceFrame",
"EyeLeftCameraSim",
"Reference frame in the robot model of this stereo camera system.");
92 virtual public visionx::StereoCalibrationCaptureProviderInterface
97 return "DynamicSimulationImageProvider";
122 bool capture(
void** ppImageBuffers)
override;
138 std::string
getReferenceFrame(const ::Ice::Current& = Ice::emptyCurrent)
override;
149 props->defineOptionalProperty<
float>(
"focalLength", 600,
"The focal length.");