s_curve icon indicating copy to clipboard operation
s_curve copied to clipboard

Support for separate max acceleration and deceleration.

Open novuscy opened this issue 1 year ago • 1 comments

Hello, thanks for this amazing crate!

I was wondering if it would be possible to add support for separate max acceleration and max deceleration, there are situations where slow acceleration but fast deceleration is required.

Thanks again.

novuscy avatar May 25 '23 12:05 novuscy

You are welcome. I am always fascinated that this crate is my most popular one :sweat_smile: I am not actively using this library myself anymore. Therefore, I am not implementing new features. But I am happy to accept PRs. I am using the books "Trajectory Planning for Automatic Machinesand Robots" by Luigi Biagotti and Claudio Melchiorri as help. There is also a chapter about "On-line computation of the double S trajectory". I did not look deeply into it but it seems like there they dont assume a_min = -a_max. Otherwise, it might also be possible to change the current implementation to do that. If you consider working on it, you might want to lift the constraint for the jerk as well

marcbone avatar May 26 '23 06:05 marcbone