Search found 4 matches

by ales_v
22 Feb 2022, 14:34
Forum: General questions
Topic: Save RGB-D image as RGBA
Replies: 1
Views: 525

Save RGB-D image as RGBA

Hello, I would like to ask if there is a way to save 4 channel image with depth information as a 4th channel. I tried to make a custom buffer which get together color image and depth from vision sensor, but I am not successful with transformation to image. colorBuffer = sim.getVisionSensorImage(came...
by ales_v
16 Feb 2022, 13:20
Forum: General questions
Topic: Make object visible only for a set of vision sensors
Replies: 7
Views: 4636

Re: Make object visible only for a set of vision sensors

fferri wrote: 16 Feb 2022, 11:59 Entity to detect can be set via Lua code:

sim.setObjectInt32Param(sensorHandle,sim.proxintparam_entity_to_detect,entityHandle)
Thank you for quick reply, for vision sensor I found better parameter: sim.visionintparam_entity_to_render
by ales_v
16 Feb 2022, 10:38
Forum: General questions
Topic: Make object visible only for a set of vision sensors
Replies: 7
Views: 4636

Re: Make object visible only for a set of vision sensors

Hello, you have several possibilities, but this depends on whether you are talking about cameras , or vision sensors . First, you can set a property for each object in the object common properties : Can be seen by Then, for vision sensors, you also need to have the object flagged as renderable (in ...
by ales_v
12 May 2020, 12:15
Forum: General questions
Topic: Save Greyscale Image from Vision Sensor
Replies: 7
Views: 4013

Re: Save Greyscale Image from Vision Sensor

Hello,

I would like to ask if there is an oportunity to save grayscale image (monocolor or 8bit depth).

My goal is to have a small file but in good quality.

Thank you