Non linearly spaced points using a time vector in MATLAB
3 次查看(过去 30 天)
显示 更早的评论
I have a vector which contains a trajectory for an end effector of a robot. During each sample the next point in the trajectory is sent to the device. In other words, the trajectory vector only contains the points in 3D-space which are spaced linearly using linspace().
I, on the other hand, don't want them to be spaced linearly. I want to create a time vector which defines the spacing of the points. So if I would use a non linear curve (S-Curve for example) the beginning and the end of the trajectory should be spaced closer to each other whereas the points in between have a larger spacing. This should result in slower and smoother movements of the robot at the beginning and the end of the trajectory.
Is there a function in MATLAB similar to linspace which accepts, for example, a time vector and based on that generates a vector of non-linearly spaced points?
If not, how would I go about creating something like this?
2 个评论
Pham Dang
2016-8-11
Hi, if I well understand, you send the target position at equally spaced instants to your system. This can not be changed and you want to change its speed by computing the proper unequally spaced positions. Am I wrong ?
If I'm right, did you consider integrating the target speed vector with cumsum ?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Coordinate Transformations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!