Page 1 of 1

What is meaning of Interpolated Configuration?

Posted: 17 Dec 2021, 14:26
by shreyas7738
I am trying to build a vehicle to follow the dummied along the path.I am using the Motorbike example from the vehicles.What is the use of sim.getPathInterpolatedConfig in the script?

Re: What is meaning of Interpolated Configuration?

Posted: 20 Dec 2021, 14:09
by coppelia
Hello,

as an example, if you have a path described by 3 points, start, intermediate, and goal (not all aligned), then you can use the mentioned function to get a point somewhere in-between. The function allows to perform linear interpolation, but also bezier-curve interpolation.

Cheers