Motion Profile Turning

When I tried point turning during motion profiling, the robot just stayed there and didn’t move. I read the article about motion profiles not being able to generate sharp paths, and I was just wondering if there were some alternatives to point turning during motion profiling?

PathFinder does not do point turns. It creates “S” paths.
use turnAngle to accomplish that.

here is an example mixing the two

3 Likes

Sorry for being pedantic, but Pathfinder (what OkapiLib uses to generate the motion profiles) doesn’t only generate “S” paths, it can be paths of other shapes as well. I believe it cannot generate profiles for point turns because Pathfinder cannot generate negative velocities.

4 Likes

Correct. I’m pretty sure it generates splines, which can be an I, C, S or complex curve paths (when using waypoints). I used “S” b/c I think that is more understandable w.r.t. to the conversion.

1 Like

One thing to note is that motion profiling (at least in the default OkapiLib sense) is all open-loop, which means that sensor feedback is not used at all. It blindly feeds precalculated wheel velocities to the motors. That’s obviously an inferior way of doing turns when you can at least use the IMEs (integrated motor encoders), which is what the chassis->turnAngle does. Even if Pathfinder could generate point turns, it isn’t really the best option.

2 Likes