Search found 5864 matches
- 06 Sep 2024, 13:04
- Forum: General questions
- Topic: Best practices for modular and scalable scripting?
- Replies: 1
- Views: 68
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/...
- 06 Sep 2024, 12:55
- Forum: General questions
- Topic: Generic conveyor (belt) speed control
- Replies: 4
- Views: 106
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
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
- 06 Sep 2024, 06:20
- Forum: General questions
- Topic: Multiple threaded scripts
- Replies: 13
- Views: 967
Re: Multiple threaded scripts
If an int signal is 0, it is defined. You need to clear it with sim.clearInt32Signal
Cheers
Cheers
- 05 Sep 2024, 09:22
- Forum: General questions
- Topic: Multiple threaded scripts
- Replies: 13
- Views: 967
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 ...
- 03 Sep 2024, 06:03
- Forum: General questions
- Topic: Soft Body and gripper (MuJoCo)
- Replies: 6
- Views: 681
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...
- 03 Sep 2024, 05:54
- Forum: General questions
- Topic: how to realize compliance control
- Replies: 1
- Views: 230
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 ...
- 30 Aug 2024, 16:09
- Forum: General questions
- Topic: Multiple threaded scripts
- Replies: 13
- Views: 967
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
Having a simple, self-sufficient scene would make things much simpler..
Cheers
- 30 Aug 2024, 07:18
- Forum: General questions
- Topic: Multiple threaded scripts
- Replies: 13
- Views: 967
Re: Multiple threaded scripts
Please add a lot of prints to the script you shared, in order to understand where and when it stops responding. e.g.: function sysCall_init() print("sysCall_init, A") sim = require('sim') Table=sim.getObject('.') count=0 part1=0 Lpd=sim.getInt32Signal('ALPd') corout=coroutine.create(corout...
- 28 Aug 2024, 05:59
- Forum: General questions
- Topic: Multiple threaded scripts
- Replies: 13
- Views: 967
Re: Multiple threaded scripts
The auto-yield delay is 2ms by default. ...but table script neglected it, and didn't execute at all. So that script does not run as expected. Please show us the content of that script. Are there any error messages in the status bar? If you have several scripts operating at the same time and relying ...
- 28 Aug 2024, 05:50
- Forum: Bug reports
- Topic: Registration request error
- Replies: 1
- Views: 422
Re: Registration request error
Hello, please try again. Does it at least work a first time? i.e. the first time you enter the registration code, does it accept it, or reject it? Also, could it be that the user settings folder is somehow overwritten/modified by a third-party application? You can find the location of that folder by...