Search found 121 matches

by zhy149
08 Jul 2021, 15:47
Forum: General questions
Topic: Reset Scene and start a new loop
Replies: 9
Views: 7693

Re: Reset Scene and start a new loop

From a threaded customization script , you'd do things like: function sysCall_init() corout=coroutine.create(coroutineMain) end function sysCall_actuation() resumeThread() end function sysCall_nonSimulation() resumeThread() end function resumeThread() if coroutine.status(corout)~='dead' then local ...
by zhy149
08 Jul 2021, 15:29
Forum: General questions
Topic: Reset Scene and start a new loop
Replies: 9
Views: 7693

Re: Reset Scene and start a new loop

From a threaded customization script , you'd do things like: function sysCall_init() corout=coroutine.create(coroutineMain) end function sysCall_actuation() resumeThread() end function sysCall_nonSimulation() resumeThread() end function resumeThread() if coroutine.status(corout)~='dead' then local ...
by zhy149
07 Jul 2021, 13:08
Forum: General questions
Topic: Reset Scene and start a new loop
Replies: 9
Views: 7693

Re: Reset Scene and start a new loop

Please show us the relevant part of your customization script . Cheers function sysCall_init() -- do some initialization here i = 1 while i < 3 do i = i+1 sim.startSimulation() sim.stopSimulation() end end function sysCall_nonSimulation() -- is executed when simulation is not running end function s...
by zhy149
06 Jul 2021, 20:14
Forum: General questions
Topic: Surface Friction Control
Replies: 1
Views: 3107

Surface Friction Control

Hello, I'd like to know how to control the surface friction properly. I know some Physics, and I know that I can change "friction" in dynamic properties material section. However, I found that increasing the friction individually can make the case look very weird; for example, I want to us...
by zhy149
06 Jul 2021, 17:42
Forum: General questions
Topic: Coppeliasim Child Scripts File IO
Replies: 9
Views: 7349

Re: Coppeliasim Child Scripts File IO

you need to prefix the file name with the correct path: local file=sim.getStringParameter(sim.stringparam_scene_path)..'/sample1.txt' Cheers Hi, I've fixed the issue by setting the root path to be where the coppeliasim.exe stays. However, one interesting thing is that sim.stringparam_scene_path giv...
by zhy149
06 Jul 2021, 17:33
Forum: General questions
Topic: Choose Coppeliasim version during runtime
Replies: 4
Views: 4624

Re: Choose Coppeliasim version during runtime

You'll have to be careful not to mix-up files created with 4.2 and with 4.1. Best in that case would be to use only scene files from V4.1.0, and not save in V4.2.0 Any special reason why you want the two versions side-by-side? Is it only a question of compatibility with PyRep? Cheers Hi Coppelia. Y...
by zhy149
06 Jul 2021, 16:27
Forum: General questions
Topic: Reset Scene and start a new loop
Replies: 9
Views: 7693

Re: Reset Scene and start a new loop

Hello, the easiest would be to make a loop in which you start and stop the simulation for each of the experiment. You'd have to do that from a customization script or an add-on , and call sim.startSimulation , sim.stopSimulation , and probably also set-up a simple custom dialog to start the overall...
by zhy149
06 Jul 2021, 14:08
Forum: General questions
Topic: Remote API communication frequency configuration
Replies: 3
Views: 3582

Re: Remote API communication frequency configuration

Hello, when you run remotely, you normally run asynchronously. So you have two options: run CoppeliaSim in real-time mode (check the corresponding toolbar button). This will not be a perfect synchronous operation, but better than nothing. Both sides will approximately run in real-time (if the scene...
by zhy149
06 Jul 2021, 13:54
Forum: General questions
Topic: Control Robotiq85 Gripper
Replies: 2
Views: 3332

Re: Control Robotiq85 Gripper

Hello, that gripper is quite complex and you won't have many options for controlling it. But have a look at its attached child script : you'll see you have a few possibilities in adjusting the opening/closing velocity. Cheers Thank you! I'm using Baxter 2 finger gripper to do my task now, if I want...
by zhy149
05 Jul 2021, 01:26
Forum: General questions
Topic: Control Robotiq85 Gripper
Replies: 2
Views: 3332

Control Robotiq85 Gripper

Is there a tutorial how I can control the robotiq85 gripper? Such as the closing velocity, interval and force as well as opening process? Thank you very much!