Search found 1017 matches

by fferri
29 Jul 2021, 15:43
Forum: General questions
Topic: Get the first layer of Depth Image
Replies: 1
Views: 4139

Re: Get the first layer of Depth Image

What does "top layer" mean?
by fferri
29 Jul 2021, 15:41
Forum: General questions
Topic: Process Depth Image taken from a perspective vision sensor
Replies: 3
Views: 6130

Re: Process Depth Image taken from a perspective vision sensor

Perhaps depth info is disabled in the object properties of the vision sensor? Or objects are not renderable?
by fferri
27 Jul 2021, 10:00
Forum: General questions
Topic: model's distance recording
Replies: 2
Views: 4189

Re: model's distance recording

You can accumulate traveled distance (distance d between current position and previous position) in a child script like so: function sysCall_init() self=sim.getObjectHandle('.') distance=0 lastPosition=sim.getObjectPosition(self,-1) end function sysCall_sensing() local p=sim.getObjectPosition(self,-...
by fferri
26 Jul 2021, 10:47
Forum: General questions
Topic: An object and its visible part
Replies: 1
Views: 3994

Re: An object and its visible part

Visual parts are more detailed. Dynamic parts are simplified representations of the visual part, which are more stable in simulation (because are pure, or at least convex) and compute faster, with only a minimal representation error with respect to the visual counterpart. See also: Building a clean ...
by fferri
26 Jul 2021, 10:43
Forum: General questions
Topic: Save image from Vision Sensor into .png or .npy
Replies: 2
Views: 4536

Re: Save image from Vision Sensor into .png or .npy

sim.getVisionSensorImage gives you the binary image data.

Use sim.saveImage to save the image data to various formats.
by fferri
22 Jul 2021, 07:54
Forum: General questions
Topic: How to make paint nozzle?
Replies: 14
Views: 18191

Re: How to make paint nozzle?

elizakh wrote: 21 Jul 2021, 10:54 18: Illegal object name. (in function 'sim.setObjectName')
That may happen when some object already exists with that name.
by fferri
20 Jul 2021, 07:05
Forum: General questions
Topic: can't connect the joystick
Replies: 11
Views: 7350

Re: can't connect the joystick

You need to open the project file with Visual Studio and build it. The built plugin will be placed into a subdirectory, e.g. Release\x64 or Debug\x64 and will have the correct extension (.dll).
by fferri
17 Jul 2021, 17:28
Forum: General questions
Topic: Dynamic color change in distance calculation
Replies: 11
Views: 11668

Re: Dynamic color change in distance calculation

Yes You have various item types , e.g. pixel-sized points, pixel-sized lines, triangles, "triangle points", "rectangle points", "disc points", "cube points", "sphere points". Additionally, you can dynamically create and destroy primitive shapes and m...
by fferri
17 Jul 2021, 17:24
Forum: General questions
Topic: Remote Control Frequency and In Scene child Script
Replies: 1
Views: 2275

Re: Remote Control Frequency and In Scene child Script

Hi,

maybe you are looking for synchronous operation mode of Remote API.
by fferri
16 Jul 2021, 14:22
Forum: General questions
Topic: How to make paint nozzle?
Replies: 14
Views: 18191

Re: How to make paint nozzle?

So I've deleted all the functions relative to the dialog of the paint nozzle and in sysCall_init() I specify the paint item (i.e: mode=sim.drawing_lines). However, the dialog stills appearing when I click the dummy "PaintNozzle" and the paint item only changes If I change It in the dialog...