Search found 1009 matches

by fferri
23 Apr 2024, 09:46
Forum: General questions
Topic: Control the joint to rotate more than 360 degrees
Replies: 1
Views: 50

Re: Control the joint to rotate more than 360 degrees

If you don't need to use a cyclic joint, simply selecting a joint range larger than 2*pi is enough to make the joint turn more than 1 full revolution when setting a large enough target position (via sim.setJointTargetPosition). If instead you are forced to used a cyclic joint, the solution is to use...
by fferri
22 Apr 2024, 09:25
Forum: General questions
Topic: Vision sensor object masks
Replies: 2
Views: 60

Re: Vision sensor object masks

Actually, even better (and faster) than that, you can set the vision sensor render mode to "color coded handles", then each object is rendered with a unique color corresponding to its handle. Then you can go through all pixels and decode which object it relates to ( handle = unsigned int i...
by fferri
22 Apr 2024, 09:04
Forum: General questions
Topic: Vision sensor object masks
Replies: 2
Views: 60

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: 63

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: 120

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: 83

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: 73

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: 73

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".