Search found 5867 matches

by coppelia
20 Sep 2024, 14:31
Forum: General questions
Topic: ZMQ server: abort execution
Replies: 1
Views: 139

Re: ZMQ server: abort execution

Hello, can you try with simAssimp.importShapes instead? e.g.: client = RemoteAPIClient() sim = client.require('sim') simAssimp = client.require('simAssimp') file_path = r'D:\coppeliaRobotics\coppeliaSim\cadFiles\redundantManipulator.stl' shapeHandle, *_ = simAssimp.importShapes(file_path) vertices, ...
by coppelia
10 Sep 2024, 05:54
Forum: Bug reports
Topic: CoppeliaSim Crashed after the 'empty areas are transparent' was cheaked
Replies: 4
Views: 346

Re: CoppeliaSim Crashed after the 'empty areas are transparent' was cheaked

Indeed, in 4.6, use this instead: sim = require 'sim' function sysCall_info() return {autoStart = false, menu = 'Tools\nScreenshot tool'} end function sysCall_init() simUI = require 'simUI' sim.addLog( sim.verbosity_scriptinfos, "Select the camera or vision sensor you wish to generate a high re...
by coppelia
09 Sep 2024, 14:46
Forum: Bug reports
Topic: CoppeliaSim Crashed after the 'empty areas are transparent' was cheaked
Replies: 4
Views: 346

Re: CoppeliaSim Crashed after the 'empty areas are transparent' was cheaked

Hello,

indeed, there was a problem. Please download the updated add-on (bug fix here).

Thanks for the mention!

Cheers
by coppelia
06 Sep 2024, 13:04
Forum: General questions
Topic: Best practices for modular and scalable scripting?
Replies: 1
Views: 196

Re: Best practices for modular and scalable scripting?

Hello, for code you want to reuse, it is really best to have a separate *.lua file and to include that file via a require directive. With the require directive you can include the whole code, or just specific code and still have a script body inside of the script object. You can of course also save/...
by coppelia
06 Sep 2024, 12:55
Forum: General questions
Topic: Generic conveyor (belt) speed control
Replies: 4
Views: 303

Re: Generic conveyor (belt) speed control

Hello,

what version of CoppeliaSim do you run?
Also, the conveyor will not immediately stop, it will gradually slow-down then stop. If you want it to react faster, modify its Acceleration property upwards.

Cheers
by coppelia
06 Sep 2024, 06:20
Forum: General questions
Topic: Multiple threaded scripts
Replies: 15
Views: 1475

Re: Multiple threaded scripts

If an int signal is 0, it is defined. You need to clear it with sim.clearInt32Signal

Cheers
by coppelia
05 Sep 2024, 09:22
Forum: General questions
Topic: Multiple threaded scripts
Replies: 15
Views: 1475

Re: Multiple threaded scripts

Yes, you can easily control which script and when will execute. You however need to distinguish between threaded and non-threaded scripts : Non-threaded scripts follow a precise execution order Threaded script actually also follow above script execution order for resuming a thread. The simplest way ...
by coppelia
03 Sep 2024, 06:03
Forum: General questions
Topic: Soft Body and gripper (MuJoCo)
Replies: 7
Views: 931

Re: Soft Body and gripper (MuJoCo)

Try to modify the soft body by using more spherical nodes and/or modifying the radius of those nodes. Another more complex approach would be to attach a soft body to a rigid body object and try to grasp that one. Have a look at how to attach a soft body to a shape in the demo scene scenes/mujoco/com...
by coppelia
03 Sep 2024, 05:54
Forum: General questions
Topic: how to realize compliance control
Replies: 1
Views: 361

Re: how to realize compliance control

Hello, do you see similar force sensor readings with the other engines? Also, each engine has its specific way of working, accuracy, etc. You can modify the engine specific properties for shapes by clicking Engine properties in the Shape dynamics dialog . Details on the meaning of all the displayed ...
by coppelia
30 Aug 2024, 16:09
Forum: General questions
Topic: Multiple threaded scripts
Replies: 15
Views: 1475

Re: Multiple threaded scripts

Please add sim.setStepping(true) in the init section and try again. What is the output?
Having a simple, self-sufficient scene would make things much simpler..

Cheers