|
bitsim
Model, simulate, estimate and control robots in C++
|
Rotation matrices: the elementary rotations, checks, and yaw, pitch and roll angles. Needs bitsim built with Chrono. More...
#include "bitsim/bitsim_config.h"#include "bitsim/bitsim_types.h"#include <chrono/core/ChMatrix33.h>

Go to the source code of this file.
Classes | |
| struct | bitsim::geometry::YawPitchRoll |
| Yaw, pitch and roll angles [rad]: the rotation is \(R_z(\mathrm{yaw})\, R_y(\mathrm{pitch})\, R_x(\mathrm{roll})\). More... | |
Namespaces | |
| namespace | bitsim |
| namespace | bitsim::geometry |
Functions | |
| chrono::ChMatrix33d | bitsim::geometry::rot_x (real_t angle) |
| The rotation by angle [rad] about the x axis. It leaves the x axis unchanged: | |
| chrono::ChMatrix33d | bitsim::geometry::rot_y (real_t angle) |
| The rotation by angle [rad] about the y axis. | |
| chrono::ChMatrix33d | bitsim::geometry::rot_z (real_t angle) |
| The rotation by angle [rad] about the z axis. | |
| bool | bitsim::geometry::is_rotation (const chrono::ChMatrix33d &R, real_t tolerance=1.0e-9) |
| Whether R is a rotation: \(R^T R = I\) and \(\det R = +1\), to within tolerance. An orthogonal matrix with determinant -1 is a mirror image, which no body can do. | |
| bool | bitsim::geometry::same_matrix (const chrono::ChMatrix33d &A, const chrono::ChMatrix33d &B, real_t tolerance=1.0e-9) |
| Whether A and B are equal to within tolerance, in the Frobenius norm. | |
| chrono::ChMatrix33d | bitsim::geometry::from_yaw_pitch_roll (const YawPitchRoll &angles) |
| The rotation \(R_z(\mathrm{yaw})\, R_y(\mathrm{pitch})\, R_x(\mathrm{roll})\). | |
| YawPitchRoll | bitsim::geometry::to_yaw_pitch_roll (const chrono::ChMatrix33d &R) |
| The inverse of from_yaw_pitch_roll, with the pitch in [-90, 90] degrees. It is not defined at a pitch of +-90 degrees, where yaw and roll turn about the same axis (gimbal lock). | |
Rotation matrices: the elementary rotations, checks, and yaw, pitch and roll angles. Needs bitsim built with Chrono.
The convention is that of the frames examples: \(R_{AB}\) is the orientation of frame B expressed in frame A, so that \(R_{WR} R_{RS} = R_{WS}\) and \(R_{WR}\, v_R = v_W\).