Page 1 of 1

Smooth Path Following

Posted: 01 Dec 2021, 14:37
by mttcest
Hello CoppeliaSim comunity,

I have a "path" object in my scene and a "dummy" that has to follow it.

I would like to make the dummy follow the path starting with a smooth acceleration, reaching a target constant speed and make it decelerate next to the end in order to stop it smoothly.

My question is .. which is best way to achive this behavior?

Thank you in advance for answering,
Mattia.

Re: Smooth Path Following

Posted: 02 Dec 2021, 10:34
by coppelia
Hello Mattia,

have a look at the demo scene scenes/trajectoryAndMotion/pathToTrajectory.ttt. The idea is to see your path as a one-dimensional task, which is to follow it from its start, until you arrived at its length L. Then you can use sim.moveToConfig
Make sure you also have a look at the other path related functions.

Cheers

Re: Smooth Path Following

Posted: 04 Dec 2021, 17:34
by mttcest
Hello Admin,

Thanks for the tip! 😊

I've used the "constant speed with velocity ramps" and it worked exactly as I wanted to! 😀