Smooth Path Following

Typically: "How do I... ", "How can I... " questions
Post Reply
mttcest
Posts: 9
Joined: 15 Sep 2021, 08:09

Smooth Path Following

Post 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.

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Smooth Path Following

Post 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

mttcest
Posts: 9
Joined: 15 Sep 2021, 08:09

Re: Smooth Path Following

Post 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! 😀

Post Reply