Creation of Imu geometric model in Matlab In order to generate Synthetic data(Accelerometer and Gyroscope) 6DOF

조회 수: 21 (최근 30일)
I am looking to create a geometric model(using the simulink blocks) of an IMU sensor that is available in Mathworks 'Sensor Fusion Toolbox'. I have to generate synthetic data of the 3-axis accelerometer,3-axis gyroscope(6DOF) in order to calculate the quaternions(to calculate the orientation) using an sensor fusion algorithm(Madgwick Filter or any similar one). I want to do this in Simulink without using real hardware sensors.I am stuck at this point how to go forward.
Looking for any suggestions or references of similar models.
Thanks in advance.

답변 (1개)

Brian Fanous
Brian Fanous 2022년 8월 25일
You can use waypointTrajectory and imuSensor to accomplish this in MATLAB. There is an equivalent Simulink block for imuSensor but you'd have to put the waypointTrajectory code in a MATLAB Function block to handle the trajectory generation portion:
% Simulink IMU data during a trajectory between two random orientations
wp = waypointTrajectory('Waypoints', zeros(2,3), 'Orientation', randrot(2,1), 'TimeOfArrival', [0 1].');
sampleRate = 10;
[~, orient, ~, acceleration, angvel] = lookupPose(wp, 0:(1/sampleRate):1);
imu = imuSensor('SampleRate', sampleRate);
[acc, gyro] = imu(acceleration, angvel, orient);
  댓글 수: 1
Revanth Kumar Adireddy
Revanth Kumar Adireddy 2022년 9월 19일
편집: Revanth Kumar Adireddy 2022년 9월 20일
Hi,
Dear Brian,
I wanted to generate artificial imu data using kinematic trajectory generation.
Trajectory : 0° to 90° and back from 90° to 0°.
Any ideas or piece of code would be helpful.
Thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sensor Models에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by