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 synopsis
|
simInt simGetVisionSensorResolution(simInt sensorHandle,simInt* resolution)
|
C parameters |
sensorHandle: handle of the vision sensor
resolution: 2 values for the x and y component
|
C return value
|
-1 if operation was not successful. In a future release, a more differentiated return value might be available
|
Lua synopsis
|
table_2 resolution=sim.getVisionSensorResolution(number sensorHandle)
|
Lua parameters |
sensorHandle: handle of the vision sensor
|
Lua return values
|
resolution: table containing the x and y resolution, or nil in case of an error
|