Search found 39 matches
- 16 Sep 2021, 09:17
- Forum: General questions
- Topic: Tasks sequence
- Replies: 9
- Views: 11210
Re: Tasks sequence
Thank you, it works just as I wanted! I'm just struggling on how to merge this model with the task sequence code, because this model allows me to stop and modify orientation, but I need to set conditions in order to trigger the signals. EDIT I'm using the following code: while dist<pathL and dist<pa...
- 15 Sep 2021, 15:44
- Forum: General questions
- Topic: Tasks sequence
- Replies: 9
- Views: 11210
Re: Tasks sequence
Thank you, it works just as I wanted! Even if the original question is now solved, I would like to know if it's possible, using the threated script, to evaluate the position into the path of a point with a command. In other words, the value of 60% that I've set has been found after many tries, and i...
- 14 Sep 2021, 17:06
- Forum: General questions
- Topic: Tasks sequence
- Replies: 9
- Views: 11210
Re: Tasks sequence
Thank you so much! I've an issue with that code, now Bill stops when he has to and waits for the signal from the robot, but when the robot ends its task Bill just "pops" into the final position. He doesn't move from when he stopped, he "desappears" from that position and reappear...
- 13 Sep 2021, 07:59
- Forum: General questions
- Topic: Tasks sequence
- Replies: 9
- Views: 11210
Re: Tasks sequence
Thank you for your quick reply. I tried something similiar using the code from the youBotAndHanoiTower model as a reference, but I was not able to set the path for the walking human, I'll make an other try. In case of the walking human, the best and easiest would probably to rewrite its code to run ...
- 12 Sep 2021, 16:26
- Forum: General questions
- Topic: Tasks sequence
- Replies: 9
- Views: 11210
Tasks sequence
Hi, I got a Bill on path model and a UR10 robot and I would like to develop a sequence of tasks that involve both the models. The Bill model stops when it has followed the 60% of its path, then it sends an integer signal to start the movement of the robot. I was able to get this using the following ...
- 30 Jul 2021, 09:46
- Forum: General questions
- Topic: Speed and stop on path
- Replies: 9
- Views: 11157
Re: Speed and stop on path
Isn't simpler to rewrite your path following script, as suggested? You can use sim.getPathInterpolatedConfig like in the last example of https://www.coppeliarobotics.com/helpFiles/en/paths.htm and provide a timing law for posAlongPath that does exactly what you want. Hi, thanks for your reply. I've...
- 29 Jul 2021, 17:00
- Forum: General questions
- Topic: Speed and stop on path
- Replies: 9
- Views: 11157
Re: Speed and stop on path
Hello, first of all, make sure to use CoppeliaSim V4.2.0. Then, have a look at the child script attached to the model. Around line 160, you could add something like: if currentPosOnPath>pathL*0.5 and walkingDir>0 and not alreadyPausedMiddleWay then alreadyPausedMiddleWay=true pauseUntil=simTime+3 e...
- 28 Jul 2021, 08:30
- Forum: General questions
- Topic: Speed and stop on path
- Replies: 9
- Views: 11157
Re: Speed and stop on path
if you use CoppeliaSim 4.2+, then if you open the hierarchy of the path object , you'll find all the control points there, as dummy objects. Then you could use sim.getClosestPosOnPath to get the position along the path that is closest to a given coordinate. Cheers Hi, thanks for your reply. I tried...
- 27 Jul 2021, 15:46
- Forum: General questions
- Topic: Speed and stop on path
- Replies: 9
- Views: 11157
Re: Speed and stop on path
Hello, first of all, make sure to use CoppeliaSim V4.2.0. Then, have a look at the child script attached to the model. Around line 160, you could add something like: if currentPosOnPath>pathL*0.5 and walkingDir>0 and not alreadyPausedMiddleWay then alreadyPausedMiddleWay=true pauseUntil=simTime+3 e...
- 27 Jul 2021, 09:24
- Forum: General questions
- Topic: Dynamic color change in distance calculation
- Replies: 11
- Views: 11668
Re: Dynamic color change in distance calculation
Try with sim.addDrawingObject(sim.drawing_triangles|sim.drawing_12percenttransparency,...) or something similar. You can't set the precise transparency value, just approximative. You can however combine all 3 sim.drawing_12percenttransparency , sim.drawing_25percenttransparency and sim.drawing_50pe...