How to get quaternion from the ICRF to the fixed frame ?
47 次查看(过去 30 天)
显示 更早的评论
Dear friends, I am working with the Spacecraft Dynamics block. There are 3 frames used there :
- ICRF which is said to be equal to the ECI coordinate system,
- Fixed frame which is a generic term for the coordinate system that is fixed to the central body. When the Earth is the central body, it is seems to be equal to ICRF and ECI. Is it correct ?
- Body frame.
I did not find the formula how quaternions from the ICRF to the fixed frame are calculated. Thank you !
0 个评论
回答(1 个)
William Rose
2023-8-29
You are right that Matlab's Earth Centered Inertial Frame (ECI) is the International Celestial Reference Frame (ICRF). It is inertial, i.e. fixed with respect to distant stars.
Matlab's Earth-centered Earth-fixed frame is the International Terrestrial Reference Frame (ITRF). The ITRF is NOT equal to the ECI or ICRF, because the ITRF rotates with the Earth - so it is not intertial.
Body frames are fixed in the spacecraft body and therefore are different than the ECI and ICRF and ITRF.
You asked "how quaternions from the ICRF to the fixed frame are calculated"
Please be more specific. A quaternion can represent the difference in orientation of two coordinate systems. This means a quaternion can represent the orientation of ITRF relative to ICEF or vice versa, at a given instant.
To convert position or velocity or acceleraiton from ITRF to ICRF or vice versa, use ecef2eci or eci2ecef. You must specifiy the instant when you want to do the conversion, since the ITRF moves with the earth's rotation and the ICRF does not.
For details on how the conversion happens, see https://gssc.esa.int/navipedia/index.php/Transforming_Celestial_to_Terrestrial_Frames and see https://gssc.esa.int/navipedia/index.php?title=Transformation_between_Celestial_and_Terrestrial_Frames
The documents above use rotation matrices to represent the conversions. Rotation matrices and quaternions can be converted with quat2rotm and rotm2quat.
Good luck.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axes Transformations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!