Search found 974 matches

by fferri
18 Mar 2024, 16:43
Forum: General questions
Topic: path following object
Replies: 4
Views: 42

Re: path following object

NandanUmrikar wrote: 18 Mar 2024, 11:08

Code: Select all

--lua
    sim.setObjectPose(simTarget, {-k * centerX, k * centerY, 0, 0, 0, 0, 1}, simTip)
you are setting position of simTarget relative to simTip's reference frame.
by fferri
18 Mar 2024, 09:00
Forum: General questions
Topic: The data in the graph will be lost.
Replies: 1
Views: 30

Re: The data in the graph will be lost.

Probably you need to set a larger buffer size in the graph dialog.
by fferri
17 Mar 2024, 13:09
Forum: General questions
Topic: IK failed: {'notwithintolerance'}
Replies: 1
Views: 29

Re: IK failed: {'notwithintolerance'}

When driving the tip towards the target which initially is not close you'd get a "not within tolerance error".
You can pass allowError=true in that first stage to allow IK to continue handle it anyways, until it goes within tolerance, then you won't need allowError anymore.
by fferri
17 Mar 2024, 13:03
Forum: General questions
Topic: Entity exists, but checkCollision is returning entity does not exist error
Replies: 3
Views: 45

Re: Entity exists, but checkCollision is returning entity does not exist error

You can check collision only between shapes or collection of shapes, not with drawing objects.
by fferri
11 Mar 2024, 22:53
Forum: General questions
Topic: Why the Revolute joint break when the acceleration happens to the child object of the joint?
Replies: 6
Views: 31480

Re: Why the Revolute joint break when the acceleration happens to the child object of the joint?

Precisely because joints are modeled as ideal kinematic constraints, they do not allow any motion except those granted by the joint degree of freedom. For a revolute joint, that is rotation about the axis, no other motion should happen between the two bodies. Only in an "ideal" world. In ...
by fferri
11 Mar 2024, 12:18
Forum: General questions
Topic: vision sensor error
Replies: 4
Views: 110

Re: vision sensor error

So, does print not work at all? Try in a simple script, e.g.: function sysCall_init() print('Hello') end if it works, then you have some other kind of issue in your code. But you posted incomplete code which is not possible to debug for us. Btw, in your code, if numBlobs is 0 , that print (depthV) l...
by fferri
11 Mar 2024, 10:07
Forum: General questions
Topic: vision sensor error
Replies: 4
Views: 110

Re: vision sensor error

the code gives error saying 'attempt to perform arithmetics on a nil value' which traces back to depth=nearClip+(farClip-nearClip)*depthV[1] (traceback of the error to this function) it means one of those values (either nearClip , farClip or depthV[1] ) is nil. Also, I'm unable to see the output in...
by fferri
11 Mar 2024, 09:58
Forum: General questions
Topic: Designing an Omnidirectional Mobile Robot: Confusion Arising from KUKA Omnirob Model
Replies: 8
Views: 162

Re: Designing an Omnidirectional Mobile Robot: Confusion Arising from KUKA Omnirob Model

Not sure about the kinematics of the real robot, but in that CoppeliaSim model that seems to implement the solid axle , i.e. a rigid axle with a perpendicular joint allowing for axle roll, which is generally used to ensure better contact with terrain (otherwise, with rigid body simulation engines, t...
by fferri
11 Mar 2024, 09:43
Forum: General questions
Topic: set an object as model base programmatically
Replies: 2
Views: 59

Re: set an object as model base programmatically

Hi, you can set an object as model by removing the sim.modelproperty_not_model bit, e.g.: modelProp = sim.getModelProperty(objectHandle) modelProp = modelProp & ~sim.modelproperty_not_model sim.setModelProperty(objectHandle, modelProp) or you can compose (with bitwise "or", e.g. sim.mo...