6 #ifndef CNOID_BODY_PLUGIN_GL_VISION_SIMULATOR_ITEM_H
7 #define CNOID_BODY_PLUGIN_GL_VISION_SIMULATOR_ITEM_H
10 #include "exportdecl.h"
14 class GLVisionSimulatorItemImpl;
25 enum ThreadMode { SINGLE_THREAD_MODE, SENSOR_THREAD_MODE, SCREEN_THREAD_MODE, N_THREAD_MODES };
27 void setTargetBodies(
const std::string& bodyNames);
28 void setTargetSensors(
const std::string& sensorNames);
29 void setMaxFrameRate(
double rate);
30 void setMaxLatency(
double latency);
31 void setVisionDataRecordingEnabled(
bool on);
32 void setThreadMode(
int mode);
33 void setBestEffortMode(
bool on);
34 void setRangeSensorPrecisionRatio(
double r);
35 void setAllSceneObjectsEnabled(
bool on);
36 void setHeadLightEnabled(
bool on);
37 void setAdditionalLightsEnabled(
bool on);
39 virtual bool initializeSimulation(
SimulatorItem* simulatorItem);
40 virtual void finalizeSimulation();
43 void setDedicatedSensorThreadsEnabled(
bool on);
46 virtual Item* doDuplicate()
const;
48 virtual bool store(
Archive& archive);
49 virtual bool restore(
const Archive& archive);
52 GLVisionSimulatorItemImpl* impl;