Description
|
Retrieves the resolution at which the given vision sensor operates (this might be different from what is indicated in the vision sensor dialog: should your graphic card model be rather old, then only resolutions a 2n will be supported). Useful in combination with sim.getVisionSensorImage/sim.getVisionSensorDepthBuffer
|
C/C++ synopsis
|
simInt simGetVisionSensorResolution(simInt sensorHandle,simInt* resolution)
|
C/C++ parameters |
sensorHandle: handle of the vision sensor
resolution: 2 values for the x and y component
|
C/C++ return value
|
-1 if operation was not successful
|
Lua synopsis
|
int[2] resolution=sim.getVisionSensorResolution(int sensorHandle)
|
Lua parameters |
sensorHandle: handle of the vision sensor
|
Lua return values
|
resolution: table containing the x and y resolution
|
Python synopsis |
list resolution=sim.getVisionSensorResolution(int sensorHandle) |