PositionVelocityModel
Description
An PositionVelocityModel
object contains a measurement model that measures
the position and velocity of the target in the defined reference frame. The measurement
convention is: measurement = [position;velocity]
. You can use this model to
define the measurement model for a CustomSensor
object.
Creation
To create an PositionVelocityModel
object, use the sensorMeasurementModel
function with the "position-velocity"
input argument. For example:
measurementModel = sensorMeasurementModel("position-velocity")
Properties
Measurement dimensions, specified as a 1
, 2
, or 3
. This property specifies if the measurement is in 1-D, 2-D or 3-D.
Example: 2
Position of the sensor with respect to the target state reference frame, specified
as a M-by-1 real column vector or a
M-by-N real matrix. M must be
the same as the value specified in the NumMeasurementDimensions
property. Units are in meters.
When specified as a M-by-1 real column vector, the
OriginPosition
takes the form[x;y;z]
.When specified as a M-by-N real matrix, the
OriginPosition
represents sequential frames. For example, if the sensor is mounted on a tower, and you know both the sensor's mounting position relative to the tower and the tower's position relative to the target frame, you can specifyOriginPosition
as[sensorMounting towerPosition]
, wheresensorMounting
is the sensor's mounting position relative to the tower andtowerPosition
is the tower's position relative to the target state's reference frame. The number of the frame, N, must be consistent across theOriginPosition
andOrientation
properties.
Example: [15 20 40]
Velocity of the sensor reference frame with respect to the target state reference
frame, specified as a M-by-1 real column vector or a
M-by-N real matrix. M must be
the same as the value specified in the NumMeasurementDimensions
property. Units are in meters.
When specified as a M-by-1 real column vector, the
OriginVelocity
takes the form[vx;vy;vz]
.When specified as a M-by-N real matrix, the
OriginVelocity
represents sequential frames. For example, if the sensor is mounted on a plane but can move independently of the plane, and you know both the sensor's velocity relative to the plane and the plane's velocity relative to the target frame, you can specifyOriginVelocity
as[sensorMountingVelocity planeVelocity]
, wheresensorMountingVelocity
is the sensor's velocity relative to the plane andplaneVelocity
is the plane's velocity relative to the target state's reference frame. The number of the frame, N, must be consistent across theOriginPosition
,Orientation
andOriginVelocity
properties.
Example: [0 1 0]
Orientation of the sensor with respect to the target state reference frame,
specified as a M-by-M real matrix or a
M-by-M-by-N real matrix.
M must be the same as the value specified in the
NumMeasurementDimensions
property. Units are in degrees.
When specified as a M-by-M real matrix, the
Orientation
represents the sensor's orientation relative to the target state reference frame.When specified as a M-by-M-by-N real matrix, the
Orientation
represents sequential frames. For example, if the sensor is mounted on a tower, and you know both the sensor's mounting orientation relative to the tower and the tower's orientation relative to the target frame, you can specifyOrientation
ascat(3,sensorMountingOrientation,towerOrientation)
, wheresensorMountingOrientation
is the sensor's orientation relative to the tower andtowerOrientation
is the tower's orientation relative to the target state's reference frame. The number of the frame, N, must be consistent across theOriginPosition
andOrientation
properties.
Variance of error in position measurement, specified as a real-valued
M-by-M matrix. M must be
the same as the value specified in the NumMeasurementDimensions
property.
Example: 5*eye(3)
Variance of error in the velocity measurement, specified as a real-valued
M-by-M matrix. M must be the
same as the value specified in the NumMeasurementDimensions
property.
Example: 3*eye(3)
Version History
Introduced in R2025a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)