public class VelocityInputProbe extends NumericInputProbe
velocity or targetVelocity property, depending on availability and the setting of the
constructor's useTargetProps argument. For components with orientation
(i.e., Frame), the velocity will be a 6-vector (Twist) giving both
translational and angular velocity.Probe.ExportProps, Probe.ImportExportFileInfoModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibilitymyPropsEXPLICIT_TIME, mySmallDisplayuseOldSaveMethod, writeStartStopTimeInSecondsenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesCOPY_REFERENCES, REST_POSITION| Constructor and Description |
|---|
VelocityInputProbe()
No-args constructor needed for scanning.
|
VelocityInputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
boolean useTargetProps,
double startTime,
double stopTime)
Constructs a VelocityInputProbe for a list of Point or Frame components
specified by
comps. |
VelocityInputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
boolean useTargetProps,
java.lang.String filePath)
Constructs a VelocityInputProbe for a list of Point or Frame
components specified by
comps. |
VelocityInputProbe(java.lang.String name,
ModelComponent comp,
boolean useTargetProps,
double startTime,
double stopTime)
Constructs a VelocityInputProbe for a single Point or Frame as specified
by
comp. |
VelocityInputProbe(java.lang.String name,
ModelComponent comp,
boolean useTargetProps,
java.lang.String filePath)
Constructs a VelocityInputProbe for a single Point or Frame,
as specified by
comp. |
| Modifier and Type | Method and Description |
|---|---|
static VelocityInputProbe |
createInterpolated(java.lang.String name,
NumericProbeBase source,
boolean useTargetProps,
double interval)
Creates a VelocityInputProbe by differentiating the position data in a
source probe.
|
static VelocityInputProbe |
createInterpolated(java.lang.String name,
NumericProbeBase source,
double interval)
Deprecated.
Use
createInterpolated(String,NumericProbeBase,boolean,double) instead. This
method calls that method with useTargetProps set to false, |
static VelocityInputProbe |
createNumeric(java.lang.String name,
NumericProbeBase source,
boolean useTargetProps,
double interval)
Creates a VelocityInputProbe by numerically differentiating the position
data in a source probe.
|
static VelocityInputProbe |
createNumeric(java.lang.String name,
NumericProbeBase source,
double interval)
Deprecated.
Use
createNumeric(String,NumericProbeBase,boolean,double) instead. This
method calls that method with useTargetProps set to false, |
java.util.ArrayList<ModelComponent> |
getPositionComponents()
Returns a list of the position components associated with this probe, in
the order that they appear in the probe's data.
|
void |
transformData(AffineTransform3dBase X)
Apply a rigid or affine transform to all the vector data in this list.
|
addData, addData, addData, addData, addData, addData, apply, clone, copy, createState, getAllPropertyInfo, getCopyReferences, getExtendData, getInput, getState, hasState, isDuplicatable, isEditable, isInput, isSettable, load, loadEmpty, postscan, save, scan, scanItem, set, set, setAttachedFileName, setAttachedFileName, setData, setData, setExtendData, setInputProperties, setState, write, writeItemsaddData, applyDefaultDisplayRanges, clearData, decreaseDisplayRanges, dispose, exportCsvData, exportCsvData, exportData, exportTextData, exportTextData, getAttachedProperties, getData, getData, getDefaultDisplayMax, getDefaultDisplayMin, getDefaultDisplayRange, getDisplay, getDrivers, getExportFileInfo, getExportProps, getFormat, getImportFileInfo, getInterpolation, getInterpolationOrder, getLegend, getMatlabName, getMinMaxValues, getNumericList, getOrderedTraceIndex, getPlotTraceInfo, getRotationRep, getRotationSubvecOffsets, getTraceColor, getTraceLabel, getTraceManager, getValues, getVariables, getVisibleMinMaxValues, getVisibleRange, getVisibleRange, getVsize, importCsvData, importData, importText, importTextData, increaseDisplayRanges, isCloneable, isDisplayable, isEmpty, isPrintable, isSmallDisplayVisible, isTraceVisible, isValidVariableName, isWritable, loadFromMatlab, print, read, removeDisplay, removeLegend, resetTraceColors, resetTraceOrder, saveToMatlab, scaleNumericList, setData, setData, setDefaultDisplayRange, setDefaultDisplayRange, setFormat, setInterpolation, setInterpolationOrder, setLegend, setLegendLabels, setScale, setSmallDisplayVisible, setTraceColor, setTraceLabel, setTraceOrder, setTraceVisible, setValues, setValues, smoothWithMovingAverage, smoothWithSavitzkyGolay, swapPlotTraceOrder, updateDisplays, updateDisplays, updateDisplaysForPropertyChanges, updateDisplaysWithoutAutoRanging, writeTextgetAttachedFile, getAttachedFileName, getChildren, getClippedVirtualTime, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getDuration, getExportFile, getExportFileName, getFileFromPath, getImportFile, getImportFileName, getInitialState, getPathFromFile, getProperty, getScale, getStartTime, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, isAttachedFileRelative, isEventTime, isScalable, nextEventTime, setExportFileName, setImportFileName, setInterval, setName, setScalable, setStartStopTimes, setStartTime, setStopTime, setTrack, setUpdateIntervalfinalize, getModel, initialize, isActive, setActive, setModel, setModelFromComponent, writecheckFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isScanning, isSelected, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferencesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenisWritable, writepublic VelocityInputProbe()
public VelocityInputProbe(java.lang.String name,
ModelComponent comp,
boolean useTargetProps,
double startTime,
double stopTime)
comp. Data must be added after the constructor is called.name - if non-null, gives the name of the probecomp - specifies the Point or FrameuseTargetProps - if true, causes the probe to bind to the
component's targetVelocity property instead of
velocitystartTime - start time of the probestopTime - stop time of the probepublic VelocityInputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
boolean useTargetProps,
double startTime,
double stopTime)
comps. Data must be added after the constructor is
called.name - if non-null, gives the name of the probecomps - specifies the Point or Frame componentsuseTargetProps - if true, causes the probe to bind to the
component's targetVelocity property instead of
velocitystartTime - start time of the probestopTime - stop time of the probepublic VelocityInputProbe(java.lang.String name,
ModelComponent comp,
boolean useTargetProps,
java.lang.String filePath)
throws java.io.IOException
comp. Probe data, plus its interpolation method
and start and stop times, are specified in a probe file.name - if non-null, gives the name of the probecomp - specifies the Point or FrameuseTargetProps - if true, causes the probe to bind to the
component's targetVelocity property instead of
velocityfilePath - path name of the probe data filejava.io.IOException - if a file I/O error occurspublic VelocityInputProbe(java.lang.String name,
java.util.Collection<? extends ModelComponent> comps,
boolean useTargetProps,
java.lang.String filePath)
throws java.io.IOException
comps. Probe data, plus its interpolation
method and start and stop times, are specified in a probe file.name - if non-null, gives the name of the probecomps - specifies the Point or Frame componentsuseTargetProps - if true, causes the probe to bind to the
component's targetVelocity property instead of
velocityfilePath - path name of the probe data filejava.io.IOException - if a file I/O error occurspublic static VelocityInputProbe createNumeric(java.lang.String name, NumericProbeBase source, boolean useTargetProps, double interval)
PositionInputProbe, PositionOutputProbe, or a probe with an
equivalent property/component composition. The differentation is done by
estimating the (linear) derivative at the mid point between each knot,
and then interpolating these values between the mid points.
To have a property/component composition equivalent to a PositionOutputProbe or PositionOutputProbe, the source probe
must reference the position properties of Point
components, or the position and orientation properties of
Frame components. For frame-based components, the orientation property must be associated with rotational subvectors.
name - if non-null, gives the name of the probesource - PositionInputProbe or PositionOutputProbe containing
the position data to differentiateuseTargetProps - if true, causes the probe to bind to the
component's targetVelocity property instead ofinterval - knot time spacing interval, or -1 if knot
times should be determined from the source probepublic static VelocityInputProbe createNumeric(java.lang.String name, NumericProbeBase source, double interval)
createNumeric(String,NumericProbeBase,boolean,double) instead. This
method calls that method with useTargetProps set to false,public static VelocityInputProbe createInterpolated(java.lang.String name, NumericProbeBase source, boolean useTargetProps, double interval)
PositionInputProbe, PositionOutputProbe, or a probe with an
equivalent property/component composition. The differentiation is
performed on the function defined by the source probe's interpolation
method, as returned by by NumericProbeBase.getInterpolation().
To have a property/component composition equivalent equivalent to a
PositionOutputProbe or PositionOutputProbe, the source
probe must reference the position properties of Point
components, or the position and orientation properties of
the Frame components. For frame-based components, the orientation property must be associated with rotational subvectors.
name - if non-null, gives the name of the probesource - PositionInputProbe or PositionOutputProbe containing
the position data to differentiateuseTargetProps - if true, causes the probe to bind to the
component's targetVelocity property instead ofinterval - knot time spacing interval, or -1 if knot
times should be determined from the source probepublic static VelocityInputProbe createInterpolated(java.lang.String name, NumericProbeBase source, double interval)
createInterpolated(String,NumericProbeBase,boolean,double) instead. This
method calls that method with useTargetProps set to false,public void transformData(AffineTransform3dBase X)
X - transform to applypublic java.util.ArrayList<ModelComponent> getPositionComponents()