Search found 5677 matches

by coppelia
05 Mar 2024, 17:16
Forum: Bug reports
Topic: sim.saveImage causes the script to freeze/crash
Replies: 4
Views: 86

Re: sim.saveImage causes the script to freeze/crash

I tried on Windows here too, using CoppeliaSim V4.6 rev. 18.
Is the error message still the same? Can you make sure that the patched sim.saveImage is actually ran, e.g. by adding a print in there?

Cheers
by coppelia
05 Mar 2024, 14:23
Forum: General questions
Topic: How to add Object Detection
Replies: 2
Views: 70

Re: How to add Object Detection

Hello,

have a look at the demo scene scenes/vision/objectTracking.ttt, it should illustrate everything you want to do.

Cheers
by coppelia
05 Mar 2024, 14:09
Forum: Bug reports
Topic: sim.saveImage causes the script to freeze/crash
Replies: 4
Views: 86

Re: sim.saveImage causes the script to freeze/crash

Hello Fabio, indeed, this is a bug! Do following for a workaround: edit file <installFolder>/addOns/ZMQ remote API server.lua by appending following: sim.saveImage = wrap(sim.saveImage, function(origFunc) return function(img, res, opt, nm, q) local ret = origFunc(img, res, opt, nm, q) if type(ret) ~...
by coppelia
04 Mar 2024, 17:02
Forum: General questions
Topic: How to use sim.handleflag_resetforce ?
Replies: 2
Views: 74

Re: How to use sim.handleflag_resetforce ?

Keep in mind that forces/torques are cumulative, but at the start of a new simulation step, those will be reset automatically.

Cheers
by coppelia
14 Feb 2024, 12:41
Forum: General questions
Topic: how to find the center of mass of a assembly
Replies: 9
Views: 527

Re: how to find the center of mass of a assembly

Have also a look at the model models/tools/center of mass visualization tool.ttm

Cheers
by coppelia
07 Feb 2024, 09:06
Forum: General questions
Topic: Serial and parallel motion of multiple robotic arms
Replies: 3
Views: 563

Re: Serial and parallel motion of multiple robotic arms

Not sure I understand: in the mentioned example, there are 3-4 remote API clients, each running in their own thread. Each thread can run e.g. a motion of a robot, while the other threads do the same at the same time. If you want to run two motions one after another, then do that in the same thread, ...
by coppelia
07 Feb 2024, 08:57
Forum: General questions
Topic: Running several scenes in parallel, is possible?
Replies: 10
Views: 26746

Re: Running several scenes in parallel, is possible?

Keep in mind that the c++ and in that case the Python API is not thread-safe: you should only access API functions from within the c++ simulation thread, or from your Python simulation thread (if you work with the CoppeliaSim Python Client application, coppeliaSim.py)

Cheers
by coppelia
07 Feb 2024, 08:51
Forum: General questions
Topic: "sim.setJointTargetVelocity" execution is not in place
Replies: 1
Views: 543

Re: "sim.setJointTargetVelocity" execution is not in place

Hello, sorry for the late reply. What physics engine are you using? The behaviour of a joint is tightly linked to the used physics engine. Most engines do have some kind of limitations, in terms of realistic behaviour. Best is to probably use the MuJoCo engine. Also you mention a joint in free mode ...
by coppelia
07 Feb 2024, 08:45
Forum: Bug reports
Topic: running in headless crash
Replies: 1
Views: 490

Re: running in headless crash

Hello,

please tell us what version you are running, and how exactly you are starting CoppeliaSim, and at what time exactly it crashes. What does following mean? "I have to reset the windows.."

Cheers
by coppelia
02 Feb 2024, 13:47
Forum: General questions
Topic: Serial and parallel motion of multiple robotic arms
Replies: 3
Views: 563

Re: Serial and parallel motion of multiple robotic arms

Hello,

what version of CoppeliaSim are you running? In CoppeliaSim V4.6, simpleMovement is showing how to control the simultaneous motion of 3 robots, via 4 clients. If your movements are sequential, then a single client shoule be enough.

Cheers