nepfaff / tenaci

Software for a robotic manipulator that can rotate and stack cubes, draw sketches, and prepare a miniature breakfast.
0 stars 0 forks source link

Task space trajecectories connecting more than two waypoints #10

Closed nepfaff closed 2 years ago

nepfaff commented 2 years ago

At the moment, we only plan trajectories between two waypoints. This leads to smooth motion between two waypoints. However, the robot comes to a stop before starting with the next trajectory. It would be better to have an algorithm that takes a sequence of waypoints and computes a smooth trajectory going through all of them. This trajectory should be in task space. The main difference to the current interpolation is probably that we want the velocity at the goal to be non-zero. The velocity at individual waypoints should be determined by the entire waypoint sequence. I think that composite splines could be a method for achieving this (see here and here). image

nepfaff commented 2 years ago

Easy resource on splines

nepfaff commented 2 years ago

Maybe possible to translate this code into MATLAB

nepfaff commented 2 years ago

This now works.

Next step is integrating this into a new main script:

nepfaff commented 2 years ago

Problem with the above plan: How to know when to open and close gripper

=> Use the "Maybe" option from above to group set points into different stages to have a list of structs that has the following attributes:

Create these structs by modifying existing taskSpaceSetPointsFromWaypoints.m

nepfaff commented 2 years ago

All done now