wheelEncoderOdometryDifferentialDrive
Description
The wheelEncoderOdometryDifferentialDrive
System object™ computes differential-drive vehicle odometry using the wheel encoder
ticks.
To compute differential-drive vehicle odometry:
Create the
wheelEncoderOdometryDifferentialDrive
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Syntax
Description
creates a whlEncOdom
= wheelEncoderOdometryDifferentialDrivewheelEncoderOdometryDifferentialDrive
System object with
default property values.
creates a whlEncOdom
= wheelEncoderOdometryDifferentialDrive(encoder
)wheelEncoderOdometryDifferentialDrive
System object using the
specified wheelEncoderDifferentialDrive
System object, encoder
, to
set properties.
sets Properties using
one or more name-value pairs. Unspecified properties have default values. Enclose each
property name in quotes.whlEncOdom
= wheelEncoderOdometryDifferentialDrive(Name,Value
)
For example, whlEncOdom =
wheelEncoderOdometryDifferentialDrive('SampleRate',100)
sets the sample rate
of the sensor to 100 Hz.
Properties
Usage
Description
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
Examples
Extended Capabilities
Version History
Introduced in R2020b