Coordinate Transformations and Trajectories
Navigation Toolbox™ provides functions for transforming coordinates and units into the format required for your applications. Use these functions to easily convert specific coordinates from one representation to the other.
Functions
Axis-Angles
axang2quat | Convert axis-angle rotation to quaternion |
axang2rotm | Convert axis-angle rotation to rotation matrix |
axang2tform | Convert axis-angle rotation to homogeneous transformation |
Euler Angles
Quaternions
quaternion | Create a quaternion array |
quat2axang | Convert quaternion to axis-angle rotation |
quat2eul | Convert quaternion to Euler angles |
quat2rotm | Convert quaternion to rotation matrix |
quat2tform | Convert quaternion to homogeneous transformation |
Rotation Matrices
SO3 | SO(3) rotation |
rotm2axang | Convert rotation matrix to axis-angle rotation |
rotm2eul | Convert rotation matrix to Euler angles |
rotm2quat | Convert rotation matrix to quaternion |
rotm2tform | Convert rotation matrix to homogeneous transformation |
Homogeneous Transformations
SE3 | SE(3) homogeneous transformation |
tform2axang | Convert homogeneous transformation to axis-angle rotation |
tform2eul | Extract Euler angles from homogeneous transformation |
tform2quat | Extract quaternion from homogeneous transformation |
tform2rotm | Extract rotation matrix from homogeneous transformation |
tform2trvec | Extract translation vector from homogeneous transformation |
Latitude, Longitude, NED, and ENU
Coordinate Conversions
angdiff | Difference between two angles |
cart2hom | Convert Cartesian coordinates to homogeneous coordinates |
hom2cart | Convert homogeneous coordinates to Cartesian coordinates |
trvec2tform | Convert translation vector to homogeneous transformation |
Trajectory Generation
waypointTrajectory | Waypoint trajectory generator |
kinematicTrajectory | Rate-driven trajectory generator |
Transformations
se2 | SE(2) homogeneous transformation |
se3 | SE(3) homogeneous transformation |
so2 | SO(2) rotation |
so3 | SO(3) rotation |
plotTransforms | Plot 3-D transforms from translations and rotations |
transformMotion | Compute motion quantities between two relatively fixed frames |
Visualization
poseplot | 3-D pose plot |
PosePatch
Properties | Pose plot appearance and behavior |
Blocks
Coordinate Transformation Conversion | Convert to a specified coordinate transformation representation |
Featured Examples
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
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)