Class FrameBodyKinematics
java.lang.Object
com.irurueta.navigation.inertial.calibration.FrameBodyKinematics
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
StandardDeviationFrameBodyKinematics
Contains a body kinematics measurement (accelerometer + gyroscope) along with
the corresponding frame (position, orientation and velocity) where the
kinematics measurement was made.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.irurueta.navigation.frames.ECEFFrame
Contains current body position, velocity (which will typically be zero) and orientation resolved around ECEF axes.private BodyKinematics
Current body kinematics measurement.private com.irurueta.navigation.frames.ECEFFrame
Contains body position, velocity (which will typically be zero) and orientation resolved around ECEF axes of previous IMU measurement.private static final long
Serialization version.private double
Time interval expressed in seconds (s) between IMU measurements used to obtain current frame and previous frame. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.FrameBodyKinematics
(double timeInterval) Constructor.FrameBodyKinematics
(com.irurueta.navigation.frames.ECEFFrame frame) Constructor.FrameBodyKinematics
(com.irurueta.navigation.frames.ECEFFrame frame, com.irurueta.navigation.frames.ECEFFrame previousFrame) Constructor.FrameBodyKinematics
(com.irurueta.navigation.frames.ECEFFrame frame, com.irurueta.navigation.frames.ECEFFrame previousFrame, double timeInterval) Constructor.FrameBodyKinematics
(com.irurueta.navigation.frames.ECEFFrame frame, com.irurueta.navigation.frames.ECEFFrame previousFrame, com.irurueta.units.Time timeInterval) Constructor.FrameBodyKinematics
(com.irurueta.navigation.frames.NEDFrame frame) Constructor.FrameBodyKinematics
(com.irurueta.navigation.frames.NEDFrame frame, com.irurueta.navigation.frames.NEDFrame previousFrame) Constructor.FrameBodyKinematics
(com.irurueta.navigation.frames.NEDFrame frame, com.irurueta.navigation.frames.NEDFrame previousFrame, double timeInterval) Constructor.FrameBodyKinematics
(com.irurueta.navigation.frames.NEDFrame frame, com.irurueta.navigation.frames.NEDFrame previousFrame, com.irurueta.units.Time timeInterval) Constructor.FrameBodyKinematics
(BodyKinematics kinematics) Constructor.FrameBodyKinematics
(BodyKinematics kinematics, com.irurueta.navigation.frames.ECEFFrame frame) Constructor.FrameBodyKinematics
(BodyKinematics kinematics, com.irurueta.navigation.frames.ECEFFrame frame, com.irurueta.navigation.frames.ECEFFrame previousFrame) Constructor.FrameBodyKinematics
(BodyKinematics kinematics, com.irurueta.navigation.frames.ECEFFrame frame, com.irurueta.navigation.frames.ECEFFrame previousFrame, double timeInterval) Constructor.FrameBodyKinematics
(BodyKinematics kinematics, com.irurueta.navigation.frames.ECEFFrame frame, com.irurueta.navigation.frames.ECEFFrame previousFrame, com.irurueta.units.Time timeInterval) Constructor.FrameBodyKinematics
(BodyKinematics kinematics, com.irurueta.navigation.frames.NEDFrame frame) Constructor.FrameBodyKinematics
(BodyKinematics kinematics, com.irurueta.navigation.frames.NEDFrame frame, com.irurueta.navigation.frames.NEDFrame previousFrame) Constructor.FrameBodyKinematics
(BodyKinematics kinematics, com.irurueta.navigation.frames.NEDFrame frame, com.irurueta.navigation.frames.NEDFrame previousFrame, double timeInterval) Constructor.FrameBodyKinematics
(BodyKinematics kinematics, com.irurueta.navigation.frames.NEDFrame frame, com.irurueta.navigation.frames.NEDFrame previousFrame, com.irurueta.units.Time timeInterval) Constructor.Constructor.FrameBodyKinematics
(com.irurueta.units.Time timeInterval) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
Makes a copy of this instance.void
copyFrom
(FrameBodyKinematics input) Copies data of provided instance into this instance.void
copyTo
(FrameBodyKinematics output) Copies this instance data into provided instance.boolean
equals
(FrameBodyKinematics other) Checks if provided instance has exactly the same contents as this instance.boolean
equals
(FrameBodyKinematics other, double threshold) Checks if provided instance has contents similar to this instance up to provided threshold value.boolean
Checks if provided object is a FrameBodyKinematics instance having exactly the same contents as this instance.com.irurueta.navigation.frames.ECEFFrame
getFrame()
Gets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around ECEF axes associated to body kinematics measurement.Gets current body kinematics measurement.com.irurueta.navigation.frames.NEDFrame
Gets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to body kinematics measurement.boolean
getNedFrame
(com.irurueta.navigation.frames.NEDFrame result) Gets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to body kinematics measurement.com.irurueta.navigation.frames.ECEFFrame
Gets previous body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around ECEF axes associated to previous body kinematics measurement.com.irurueta.navigation.frames.NEDFrame
Gets previous body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to previous body kinematics measurement.boolean
getPreviousNedFrame
(com.irurueta.navigation.frames.NEDFrame result) Gets previous body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to previous body kinematics measurement.double
Gets time interval expressed in seconds (s) between IMU measurements used to obtain current frame and previous frame.com.irurueta.units.Time
Gets time interval between IMU measurements used to obtain current frame and previous frame.void
getTimeIntervalAsTime
(com.irurueta.units.Time result) Gets time interval between IMU measurements used to obtain current frame and previous frame.int
hashCode()
Computes and returns hash code for this instance.void
setFrame
(com.irurueta.navigation.frames.ECEFFrame frame) Sets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around ECEF axes associated to body kinematics measurement.void
setKinematics
(BodyKinematics kinematics) Sets current body kinematics measurement.void
setNedFrame
(com.irurueta.navigation.frames.NEDFrame nedFrame) Sets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to body kinematics measurement.void
setPreviousFrame
(com.irurueta.navigation.frames.ECEFFrame previousFrame) Sets previous body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around ECEF axes associated to previous body kinematics measurement.void
setPreviousNedFrame
(com.irurueta.navigation.frames.NEDFrame previousNedFrame) Sets previous body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to previous body kinematics measurement.void
setTimeInterval
(double timeInterval) Sets time interval expressed in seconds (s) between IMU measurements used to obtain current frame and previous frame.void
setTimeInterval
(com.irurueta.units.Time timeInterval) Sets time interval between IMU measurements used to obtain current frame and previous frame.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version. This is used to ensure compatibility of deserialization of permanently stored serialized instances.- See Also:
-
kinematics
Current body kinematics measurement. Contains accelerometer and gyroscope measurements. -
frame
private com.irurueta.navigation.frames.ECEFFrame frameContains current body position, velocity (which will typically be zero) and orientation resolved around ECEF axes. -
previousFrame
private com.irurueta.navigation.frames.ECEFFrame previousFrameContains body position, velocity (which will typically be zero) and orientation resolved around ECEF axes of previous IMU measurement. -
timeInterval
private double timeIntervalTime interval expressed in seconds (s) between IMU measurements used to obtain current frame and previous frame.
-
-
Constructor Details
-
FrameBodyKinematics
public FrameBodyKinematics()Constructor. -
FrameBodyKinematics
public FrameBodyKinematics(double timeInterval) Constructor.- Parameters:
timeInterval
- time interval expressed in seconds (s) between IMU measurements used to obtain current frame and previous frame.- Throws:
IllegalArgumentException
- if provided value is negative.
-
FrameBodyKinematics
public FrameBodyKinematics(com.irurueta.units.Time timeInterval) Constructor.- Parameters:
timeInterval
- time interval between IMU measurements used to obtain current frame and previous frame.- Throws:
IllegalArgumentException
- if provided value is negative.
-
-
Method Details
-
getKinematics
Gets current body kinematics measurement. Contains accelerometer and gyroscope measurements.- Returns:
- current body kinematics measurement.
-
getFrame
public com.irurueta.navigation.frames.ECEFFrame getFrame()Gets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around ECEF axes associated to body kinematics measurement.- Returns:
- current ECEF frame associated to body kinematics measurement or null if not available.
-
getNedFrame
public com.irurueta.navigation.frames.NEDFrame getNedFrame()Gets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to body kinematics measurement.- Returns:
- current NED frame associated to body kinematics measurement or null if not available.
-
getPreviousFrame
public com.irurueta.navigation.frames.ECEFFrame getPreviousFrame()Gets previous body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around ECEF axes associated to previous body kinematics measurement.- Returns:
- previous ECEF frame associated to previous body kinematics measurement or null if not available.
-
getPreviousNedFrame
public com.irurueta.navigation.frames.NEDFrame getPreviousNedFrame()Gets previous body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to previous body kinematics measurement.- Returns:
- previous NED frame associated to previous body kinematics measurement or null if not available.
-
getTimeInterval
public double getTimeInterval()Gets time interval expressed in seconds (s) between IMU measurements used to obtain current frame and previous frame.- Returns:
- time interval expressed in seconds (s) between IMU measurements.
-
setTimeInterval
public void setTimeInterval(double timeInterval) Sets time interval expressed in seconds (s) between IMU measurements used to obtain current frame and previous frame.- Parameters:
timeInterval
- time interval expressed in seconds (s) between IMU measurements.- Throws:
IllegalArgumentException
- if provided value is negative.
-
getTimeIntervalAsTime
public com.irurueta.units.Time getTimeIntervalAsTime()Gets time interval between IMU measurements used to obtain current frame and previous frame.- Returns:
- time interval between IMU measurements.
-
getTimeIntervalAsTime
public void getTimeIntervalAsTime(com.irurueta.units.Time result) Gets time interval between IMU measurements used to obtain current frame and previous frame.- Parameters:
result
- instance where result will be stored.
-
setTimeInterval
public void setTimeInterval(com.irurueta.units.Time timeInterval) Sets time interval between IMU measurements used to obtain current frame and previous frame.- Parameters:
timeInterval
- time interval between IMU measurements to be set.- Throws:
IllegalArgumentException
- if provided value is negative.
-
hashCode
public int hashCode()Computes and returns hash code for this instance. Hash codes are almost unique values that are useful for fast classification and storage of objects in collections. -
equals
Checks if provided object is a FrameBodyKinematics instance having exactly the same contents as this instance. -
clone
Makes a copy of this instance.- Overrides:
clone
in classObject
- Returns:
- a copy of this instance.
- Throws:
CloneNotSupportedException
- if clone fails for some reason.
-