Main Content

Sensor Models

Calibration and simulation for IMU, GPS, and range sensors

Perform sensor modeling and simulation for accelerometers, magnetometers, gyroscopes, altimeters, GPS, IMU, and range sensors. Analyze sensor readings, sensor noise, environmental conditions and other configuration parameters. Generate trajectories to emulate these sensors traveling through a world and calibrate the performance of your sensors.

To fuse multiple sensors or use other localization algorithms, see Localization and Pose Estimation.

Functions

expand all

accelparamsAccelerometer sensor parameters
allanvarAllan variance
gyroparamsGyroscope sensor parameters
magparamsMagnetometer sensor parameters
magcalMagnetometer calibration coefficients
gnssconstellationSatellite locations at specified time
lookanglesSatellite look angles from receiver and satellite positions
pseudorangesPseudoranges between GNSS receiver and satellites
receiverpositionEstimate GNSS receiver position and velocity
skyplotPlot satellite azimuth and elevation data
extractNMEASentenceVerify and extract NMEA sentence data into string array

Objects

gnssSensorSimulate GNSS to generate position and velocity readings
altimeterSensorAltimeter simulation model
gpsSensorGPS receiver simulation model
imuSensorIMU simulation model
insSensorInertial navigation system and GNSS/GPS simulation model
rangeSensorSimulate range-bearing sensor readings
wheelEncoderUnicycleSimulate wheel encoder sensor readings for unicycle vehicle
wheelEncoderBicycleSimulate wheel encoder sensor readings for bicycle vehicle
wheelEncoderDifferentialDriveSimulate wheel encoder sensor readings for differential drive vehicle
wheelEncoderAckermannSimulate wheel encoder sensor readings for Ackermann vehicle
kinematicTrajectoryRate-driven trajectory generator
timescopeDisplay time-domain signals
waypointTrajectoryWaypoint trajectory generator
nmeaParserParse data from standard and manufacturer-specific NMEA sentences sent from marine electronic devices
gpsdevConnect to a GPS receiver connected to host computer

Blocks

IMUIMU simulation model
INSSimulate INS sensor
GPSSimulate GPS sensor readings with noise

Topics

Model IMU, GPS, and INS/GPS

Model combinations of inertial sensors and GPS

Inertial Sensor Noise Analysis Using Allan Variance

This example shows how to use the Allan variance to determine noise parameters of a MEMS gyroscope.

Wheel Encoder Error Sources

Explore the various error sources of wheel encoders and how they affect the wheel odometry estimate.

Remove Bias from Angular Velocity Measurement

This example shows how to remove gyroscope bias from an IMU using imufilter.

Configure Time Scope MATLAB Object

Customize timescope properties and use measurement tools.

Simulate Inertial Sensor Readings from a Driving Scenario

Generate synthetic sensor data from IMU, GPS, and wheel encoders using driving scenario generation tools from Automated Driving Toolbox™.

Analyze GPS Satellite Visibility

This example shows how to simulate and analyze GPS satellite visibility at specified receiver positions and times.

Simulate GPS Sensor Noise

This example shows how to use the GPS block to add GPS sensor noise to position and velocity inputs in Simulink®.

Simulate INS Block

In this example, you simulate an INS block by using the pose information of a vehicle undertaking a left-turn trajectory.

Featured Examples