User Tools

Site Tools


eeros_architecture:control_system:available_blocks:pathplannercubic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eeros_architecture:control_system:available_blocks:pathplannercubic [2020/08/31 11:32] – [Path Planner Cubic] ursgrafeeros_architecture:control_system:available_blocks:pathplannercubic [2020/09/03 08:58] (current) ursgraf
Line 1: Line 1:
 ====== Path Planner Cubic ====== ====== Path Planner Cubic ======
-This path planner takes precalculated cubic splines from a file and outputs the resulting values for jerk, acceleration, velocity and position onto its outputs. The file must contain piecewise information about the jerk within a given interval together with the start conditions for acceleration, velocity and position at the beginning of the interval. You must make sure, that these initial values are the results from the last interval. Let's make an example with the following four intervals:+This path planner takes precalculated cubic splines from a file and outputs the resulting values for jerk, acceleration, velocity and position onto its outputs. All these values are given for one dimension. The file must contain piecewise information about the jerk within a given interval together with the start conditions for acceleration, velocity and position at the beginning of the interval. You must make sure, that these initial values are the results from the last interval. Let's make an example with the following four intervals:
 <code> <code>
 //time          //jerk          //acceleration  //velocity      //position //time          //jerk          //acceleration  //velocity      //position
Line 8: Line 8:
 2.4000000e-01  -1.0000000e+04   2.4000000e+03   4.8000000e+02   5.3760000e+01 2.4000000e-01  -1.0000000e+04   2.4000000e+03   4.8000000e+02   5.3760000e+01
 </code> </code>
-The jerk within the second interval is 1e4 while the acceleration, velocity and position are all zero at the beginning of this interval. The jerk is set to zero in the third interval. The acceleration, velocity and position must be set to the values they reached at the end of interval two in order not to cause any discontinuities.  +The jerk within the second interval is 1e4 while the acceleration, velocity and position are all zero at the beginning of this interval. The jerk is set to zero in the third interval. The acceleration, velocity and position must be set to the values they reached at the end of interval two in order not to cause any discontinuities. You have to calculate these values with an external tool
-{{:eeros_architecture:control_system:available_blocks:pathplannercubic.png?400|}} +[{{ :eeros_architecture:control_system:available_blocks:pathplannercubic.png?600 |Path planner output for a given path}}]
- +
-The trajectory may be scaled in time and jerk in order to achieve a positional change +
-within a given time interval. +
  
 +The trajectory file is loaded with 
 +<code cpp>
 +  init(filename);
 +</code>
 +where ''filename'' denotes a file containing the new trajectory. 
 \\ \\
-path planner block has four output signals - jerk, acceleration, velocity, and position+When calling 
-===== Parameters ===== +<code cpp> 
-TODO+  move(startPos); 
 +</code> 
 +you dispatch a new trajectory. The trajectory is taken from the path fileno scaling is made. The trajectory starts from ''startPos'' and moves the distance given in the trajectory path file within the time given in the same file
 +\\ 
 +You can also call  
 +<code cpp> 
 +  move(time, startPos, deltaPos); 
 +</code> 
 +This will take the trajectory from the file and scale it so that it starts at ''startPos'' and moves the distance given by ''deltaPos'' within the desired ''time''
  
-===== Miscellaneous ===== 
-TODO 
eeros_architecture/control_system/available_blocks/pathplannercubic.1598866332.txt.gz · Last modified: 2020/08/31 11:32 by ursgraf