Classes | |
enum | AnimationMode |
class | PointPair |
Public Member Functions | |
void | addPoint (float x, float y, float z) |
void | center () |
void | draw (Canvas c, int step) |
void | draw (Canvas c) |
void | findOscillations () |
float | getMaxAbsCoord () |
int | getMaxStep () |
double | getMinDistance () |
int | getNumSteps () |
void | getTransitionPoints () |
void | merge (Point p1, Point p2) |
void | mergeLines () |
void | mergePoints () |
void | mergeRepeats () |
void | readAsc (java.io.File matlabAsciiFile) throws NumberFormatException, IOException |
void | readAsc (java.io.File matlabAsciiFile, int startLine) throws NumberFormatException, IOException |
void | saveAsc (java.io.File f) throws FileNotFoundException |
void | setLabels (java.io.File ascFile) throws NumberFormatException, IOException |
void | smoothLines () |
Trajectory () | |
void | updateMerge () |
Public Attributes | |
AnimationMode | animationMode = AnimationMode.BuildUp |
int | lineColor = 0xffffffff |
HashMap< Point, Set< Point > > | mergeSet = new HashMap<Point,Set<Point>>() |
double | minDis |
double | minDistance = Double.MAX_VALUE |
int | minStep = 0 |
float | minx |
int | pointColor = 0xffcbcbcb |
Vector< Point > | points |
boolean | pointsAsSpheres = true |
float | pointSize = 0.0f |
float | range |
Protected Member Functions | |
void | resetStats () |
void | updateStats (float x, float y, float z) |
Protected Attributes | |
Hashmap2List< Integer, Drawable > | animationEffects |
Package Attributes | |
float | maxx |
float | maxy |
float | maxz |
float | miny |
float | minz |
int | sphereColor = 0x99ffff00 |
float | sphereSize = 120.0f |
2D or 3D Trajectory
Definition at line 21 of file Trajectory.java.
Definition at line 40 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.addPoint | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Definition at line 65 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.center | ( | ) | [inline] |
centers the trajectory around the mean position
Definition at line 504 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.draw | ( | Canvas | c, |
int | step | ||
) | [inline] |
c | the canvas to draw to |
step | the animation step/frame to draw (0-based index) |
Implements edu.tum.cs.ias.knowrob.vis.DrawableAnimated.
Definition at line 90 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.draw | ( | Canvas | c | ) | [inline] |
Implements edu.tum.cs.ias.knowrob.vis.Drawable.
Definition at line 146 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.findOscillations | ( | ) | [inline] |
Definition at line 460 of file Trajectory.java.
float edu.tum.cs.ias.knowrob.vis.items.Trajectory.getMaxAbsCoord | ( | ) | [inline] |
Definition at line 82 of file Trajectory.java.
int edu.tum.cs.ias.knowrob.vis.items.Trajectory.getMaxStep | ( | ) | [inline] |
the maximum frame (0-based index) that can be drawn
Implements edu.tum.cs.ias.knowrob.vis.DrawableAnimated.
Definition at line 721 of file Trajectory.java.
double edu.tum.cs.ias.knowrob.vis.items.Trajectory.getMinDistance | ( | ) | [inline] |
Definition at line 198 of file Trajectory.java.
int edu.tum.cs.ias.knowrob.vis.items.Trajectory.getNumSteps | ( | ) | [inline] |
Definition at line 142 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.getTransitionPoints | ( | ) | [inline] |
Definition at line 554 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.merge | ( | Point | p1, |
Point | p2 | ||
) | [inline] |
Definition at line 213 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.mergeLines | ( | ) | [inline] |
starts from already merged points and tries to merge their successors
Definition at line 331 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.mergePoints | ( | ) | [inline] |
merges points that are close to each other
Definition at line 244 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.mergeRepeats | ( | ) | [inline] |
looks for small repeats in the trajectory, i.e. small oscillations with only 2 points (z-y-z)
Definition at line 527 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.readAsc | ( | java.io.File | matlabAsciiFile | ) | throws NumberFormatException, IOException [inline] |
Definition at line 168 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.readAsc | ( | java.io.File | matlabAsciiFile, |
int | startLine | ||
) | throws NumberFormatException, IOException [inline] |
matlabAsciiFile | |
startLine | 0-based line index indicating the first line to consider |
NumberFormatException | |
IOException |
Definition at line 178 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.resetStats | ( | ) | [inline, protected] |
Definition at line 46 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.saveAsc | ( | java.io.File | f | ) | throws FileNotFoundException [inline] |
saves the point sequence to a Matlab-style ASCII file
f |
FileNotFoundException |
Definition at line 155 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.setLabels | ( | java.io.File | ascFile | ) | throws NumberFormatException, IOException [inline] |
Definition at line 70 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.smoothLines | ( | ) | [inline] |
Detects straight lines in the isomap and smoothes them
Definition at line 415 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.updateMerge | ( | ) | [inline] |
updates the mergeSet of the trajectory
Definition at line 401 of file Trajectory.java.
void edu.tum.cs.ias.knowrob.vis.items.Trajectory.updateStats | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline, protected] |
Definition at line 52 of file Trajectory.java.
Hashmap2List<Integer, Drawable> edu.tum.cs.ias.knowrob.vis.items.Trajectory.animationEffects [protected] |
Definition at line 36 of file Trajectory.java.
Definition at line 33 of file Trajectory.java.
int edu.tum.cs.ias.knowrob.vis.items.Trajectory.lineColor = 0xffffffff |
Definition at line 32 of file Trajectory.java.
float edu.tum.cs.ias.knowrob.vis.items.Trajectory.maxx [package] |
Definition at line 29 of file Trajectory.java.
float edu.tum.cs.ias.knowrob.vis.items.Trajectory.maxy [package] |
Definition at line 29 of file Trajectory.java.
float edu.tum.cs.ias.knowrob.vis.items.Trajectory.maxz [package] |
Definition at line 29 of file Trajectory.java.
HashMap<Point,Set<Point> > edu.tum.cs.ias.knowrob.vis.items.Trajectory.mergeSet = new HashMap<Point,Set<Point>>() |
Definition at line 24 of file Trajectory.java.
Definition at line 31 of file Trajectory.java.
double edu.tum.cs.ias.knowrob.vis.items.Trajectory.minDistance = Double.MAX_VALUE |
Definition at line 25 of file Trajectory.java.
Definition at line 34 of file Trajectory.java.
Definition at line 29 of file Trajectory.java.
float edu.tum.cs.ias.knowrob.vis.items.Trajectory.miny [package] |
Definition at line 29 of file Trajectory.java.
float edu.tum.cs.ias.knowrob.vis.items.Trajectory.minz [package] |
Definition at line 29 of file Trajectory.java.
int edu.tum.cs.ias.knowrob.vis.items.Trajectory.pointColor = 0xffcbcbcb |
Definition at line 28 of file Trajectory.java.
Definition at line 23 of file Trajectory.java.
boolean edu.tum.cs.ias.knowrob.vis.items.Trajectory.pointsAsSpheres = true |
Definition at line 27 of file Trajectory.java.
Definition at line 26 of file Trajectory.java.
Definition at line 30 of file Trajectory.java.
int edu.tum.cs.ias.knowrob.vis.items.Trajectory.sphereColor = 0x99ffff00 [package] |
Definition at line 28 of file Trajectory.java.
float edu.tum.cs.ias.knowrob.vis.items.Trajectory.sphereSize = 120.0f [package] |
Definition at line 26 of file Trajectory.java.