Search found 980 matches
- 17 Mar 2024, 13:03
- Forum: General questions
- Topic: Entity exists, but checkCollision is returning entity does not exist error
- Replies: 3
- Views: 61
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.
- 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: 33142
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 ...
- 11 Mar 2024, 12:18
- Forum: General questions
- Topic: vision sensor error
- Replies: 4
- Views: 119
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...
- 11 Mar 2024, 10:07
- Forum: General questions
- Topic: vision sensor error
- Replies: 4
- Views: 119
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...
- 11 Mar 2024, 09:58
- Forum: General questions
- Topic: Designing an Omnidirectional Mobile Robot: Confusion Arising from KUKA Omnirob Model
- Replies: 8
- Views: 184
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...
- 11 Mar 2024, 09:43
- Forum: General questions
- Topic: set an object as model base programmatically
- Replies: 2
- Views: 66
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...
- 06 Mar 2024, 20:28
- Forum: General questions
- Topic: How to obtain handles from objects in scene in plugin
- Replies: 2
- Views: 68
Re: How to obtain handles from objects in scene in plugin
There's a regular API for C/C++ plugins as well.
If in embedded scripts you would use sim.getObject to retrieve the handle of an object, in a plugin you would use simGetObject: https://manual.coppeliarobotics.com/en/ ... ct_cpp.htm
If in embedded scripts you would use sim.getObject to retrieve the handle of an object, in a plugin you would use simGetObject: https://manual.coppeliarobotics.com/en/ ... ct_cpp.htm
- 04 Mar 2024, 10:12
- Forum: General questions
- Topic: graphs
- Replies: 4
- Views: 301
Re: graphs
It is highly recommended to use the ZeroMQ remote API, since it is much easier and flexible. Additionally, you'll have access to many more API functions, than with the legacy remote API.
The legacy remote API is not supported anymore since a long time.
The legacy remote API is not supported anymore since a long time.
- 01 Mar 2024, 15:19
- Forum: Bug reports
- Topic: coppeliaSim.sh not working
- Replies: 2
- Views: 304
Re: coppeliaSim.sh not working
If you search old forum posts you should find someone that eventually succeeded in running under WSL....
- 01 Mar 2024, 14:14
- Forum: General questions
- Topic: graphs
- Replies: 4
- Views: 301
Re: graphs
You can call any function defined in a child script from external programs (e.g. remote API clients). So you can have a Lua function in a child script to make several readings and return a table of values, e.g.: sim = require('sim') function sysCall_init() sensorHandle = sim.getObject('...') sensorD...