Memory leak with b0-based simxGetVisionSensorImage
Posted: 15 Jan 2020, 19:09
Hello,
I have a simple Python script that read images from a scene's camera:
import vrep, b0RemoteApi
client = b0RemoteApi.RemoteApiClient('b0RemoteApi_pythonClient','b0RemoteApiAddOn')
wall_camera = client.simxGetObjectHandle('camera_1_rgb', client.simxServiceCall())
while True:
a,resolution,image = client.simxGetVisionSensorImage(wall_camera[1], False, client.simxServiceCall())
d = client.simxGetVisionSensorDepthBuffer(wall_camera[1],True, True, client.simxServiceCall())
that continually increases its memory footprint in the system
The scene has a Vision Sensor in it.
Am I doing something wrong?
Thanks
I have a simple Python script that read images from a scene's camera:
import vrep, b0RemoteApi
client = b0RemoteApi.RemoteApiClient('b0RemoteApi_pythonClient','b0RemoteApiAddOn')
wall_camera = client.simxGetObjectHandle('camera_1_rgb', client.simxServiceCall())
while True:
a,resolution,image = client.simxGetVisionSensorImage(wall_camera[1], False, client.simxServiceCall())
d = client.simxGetVisionSensorDepthBuffer(wall_camera[1],True, True, client.simxServiceCall())
that continually increases its memory footprint in the system
The scene has a Vision Sensor in it.
Am I doing something wrong?
Thanks