Search found 1016 matches

by fferri
22 Apr 2024, 09:04
Forum: General questions
Topic: Vision sensor object masks
Replies: 4
Views: 92

Re: Vision sensor object masks

You can achieve something like selective rendering by setting the vision sensor to explicit handling, then adjusting visibility layer of all objects before/after rendering to only "see" the interesting objects. Depth map gives you something almost resembling a binary map (simply apply some...
by fferri
22 Apr 2024, 08:26
Forum: General questions
Topic: Robot strange behavior with OMPL
Replies: 1
Views: 66

Re: Robot strange behavior with OMPL

When the robot is outside the linear guide (in the tree), paths are found that lead to the desired location. When I place the robot inside the linear guide (on the tree) the positions found from there no longer coincide with those intended. I don't really understand any of that; but usually, when s...
by fferri
17 Apr 2024, 11:27
Forum: General questions
Topic: How to create custom ui
Replies: 4
Views: 124

Re: How to create custom ui

From the official sources:

User Manual: https://manual.coppeliarobotics.com

YouTube channel: https://www.youtube.com/user/VirtualRobotPlatform

Provided example content (in <coppeliaSim directory>/scenes/, models/).
by fferri
15 Apr 2024, 10:18
Forum: General questions
Topic: How can I generate path from to write a letter or draw a picture?
Replies: 1
Views: 87

Re: How can I generate path from to write a letter or draw a picture?

You can have a look at the "3D Text Generator" add-on source code (in <coppeliaSim dir>/addOns/), which does something like that.
by fferri
15 Apr 2024, 10:11
Forum: General questions
Topic: Get the error: attempt to call a nil value (field 'getobjectMatrix')
Replies: 2
Views: 74

Re: Get the error: attempt to call a nil value (field 'getobjectMatrix')

Horizon wrote: 13 Apr 2024, 16:04

Code: Select all

Anc=Matrix:vertcat(Matrix(3,4,sim.getobjectMatrix(camera,tip)),Matrix(1,4,{0,0,0,1}))
Also, you can write that as simply:

Code: Select all

Anc=Matrix4x4(sim.getObjectMatrix(camera,tip))
Matrix4x4 initializes from either a 12 or 16 elements array.
by fferri
15 Apr 2024, 10:09
Forum: General questions
Topic: Get the error: attempt to call a nil value (field 'getobjectMatrix')
Replies: 2
Views: 74

Re: Get the error: attempt to call a nil value (field 'getobjectMatrix')

Lua is a case-sensitive language, and so are API function names.

Refer to Regular API reference.
by fferri
15 Apr 2024, 10:05
Forum: General questions
Topic: How to Import a URDF file
Replies: 5
Views: 129

Re: How to Import a URDF file

Force sensors are used for "Fixed joints".
by fferri
11 Apr 2024, 13:37
Forum: General questions
Topic: Rotate an object from API
Replies: 5
Views: 139

Re: Rotate an object from API

Then you want to specify the frame relative to something else than sim.handle_world.
Simply change that parameter when calling sim.setObjectOrientation
by fferri
11 Apr 2024, 13:36
Forum: Feature requests
Topic: I suggest the Drawing Curve should be reversed when screenshooting.
Replies: 2
Views: 235

Re: I suggest the Drawing Curve should be reversed when screenshooting.

You can replace drawing objects with shapes if you want to have them in 3D output.
by fferri
11 Apr 2024, 13:34
Forum: General questions
Topic: How to Import a URDF file
Replies: 5
Views: 129

Re: How to Import a URDF file

Yes, the URDF importer is very finicky about the resources' paths, and often those need to be adjusted...