|
bitsim
Model, simulate, estimate and control robots in C++
|
Classes | |
| class | GenericLine |
| class GenericLine. Represents a generic line with vertex VertexType The equation of a linein l=Ax + By + C More... | |
| class | GeomPoint |
| A class that describes a point with spacedim spatial dimension space. More... | |
| struct | YawPitchRoll |
| Yaw, pitch and roll angles [rad]: the rotation is \(R_z(\mathrm{yaw})\, R_y(\mathrm{pitch})\, R_x(\mathrm{roll})\). More... | |
| class | Circle |
| The Circle class. Models a common circle. More... | |
Functions | |
| template<int spacedim, typename T> | |
| std::ostream & | operator<< (std::ostream &out, const GeomPoint< spacedim, T > &p) |
| free functions that work on the GeomPoint<spacedim,T> class | |
| template<int spacedim, typename T> | |
| const GeomPoint< spacedim, T > | scale (const GeomPoint< spacedim, T > &t, T factor) |
scale the given point by facto and returns a copyr. This function does not change the entries of t. | |
| template<int spacedim, typename T> | |
| const GeomPoint< spacedim, T > | scale (const GeomPoint< spacedim, T > &t, const std::vector< T > &factors) |
| scale the given point by the factors in vector | |
| template<int spacedim, typename T> | |
| const GeomPoint< spacedim, T > | abs (const GeomPoint< spacedim, T > &t) |
| Return a point having the absolute values of the given point object. | |
| template<int spacedim, typename T> | |
| const GeomPoint< spacedim, T > | operator* (T factor, const GeomPoint< spacedim, T > &t) |
| Allow multiplication from left with a factor. | |
| template<int spacedim, typename T> | |
| const GeomPoint< spacedim, T > | operator* (const GeomPoint< spacedim, T > &t, T factor) |
| template<int spacedim, typename T> | |
| const GeomPoint< spacedim, T > | operator/ (const GeomPoint< spacedim, T > &t, T factor) |
| template<int spacedim, typename T> | |
| const GeomPoint< spacedim, T > | operator+ (const GeomPoint< spacedim, T > &t1, const GeomPoint< spacedim, T > &t2) |
| template<int spacedim, typename T> | |
| const GeomPoint< spacedim, T > | operator- (const GeomPoint< spacedim, T > &t1, const GeomPoint< spacedim, T > &t2) |
| template<int spacedim, typename T> | |
| bool | operator== (const GeomPoint< spacedim, T > &t1, const GeomPoint< spacedim, T > &t2) |
| template<int spacedim, typename T> | |
| bool | operator!= (const GeomPoint< spacedim, T > &t1, const GeomPoint< spacedim, T > &t2) |
| chrono::ChMatrix33d | rot_x (real_t angle) |
| The rotation by angle [rad] about the x axis. It leaves the x axis unchanged: | |
| chrono::ChMatrix33d | rot_y (real_t angle) |
| The rotation by angle [rad] about the y axis. | |
| chrono::ChMatrix33d | rot_z (real_t angle) |
| The rotation by angle [rad] about the z axis. | |
| bool | 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 | 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 | from_yaw_pitch_roll (const YawPitchRoll &angles) |
| The rotation \(R_z(\mathrm{yaw})\, R_y(\mathrm{pitch})\, R_x(\mathrm{roll})\). | |
| YawPitchRoll | 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). | |
| const GeomPoint< spacedim, T > bitsim::geometry::abs | ( | const GeomPoint< spacedim, T > & | t | ) |
Return a point having the absolute values of the given point object.
| 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})\).
| bool bitsim::geometry::is_rotation | ( | const chrono::ChMatrix33d & | R, |
| real_t | tolerance ) |
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::operator!= | ( | const GeomPoint< spacedim, T > & | t1, |
| const GeomPoint< spacedim, T > & | t2 ) |
| const GeomPoint< spacedim, T > bitsim::geometry::operator* | ( | const GeomPoint< spacedim, T > & | t, |
| T | factor ) |
| const GeomPoint< spacedim, T > bitsim::geometry::operator* | ( | T | factor, |
| const GeomPoint< spacedim, T > & | t ) |
Allow multiplication from left with a factor.
| const GeomPoint< spacedim, T > bitsim::geometry::operator+ | ( | const GeomPoint< spacedim, T > & | t1, |
| const GeomPoint< spacedim, T > & | t2 ) |
| const GeomPoint< spacedim, T > bitsim::geometry::operator- | ( | const GeomPoint< spacedim, T > & | t1, |
| const GeomPoint< spacedim, T > & | t2 ) |
| const GeomPoint< spacedim, T > bitsim::geometry::operator/ | ( | const GeomPoint< spacedim, T > & | t, |
| T | factor ) |
|
inline |
free functions that work on the GeomPoint<spacedim,T> class
Prints the values of the GeomPoint in the
| bool bitsim::geometry::operator== | ( | const GeomPoint< spacedim, T > & | t1, |
| const GeomPoint< spacedim, T > & | t2 ) |
| chrono::ChMatrix33d bitsim::geometry::rot_x | ( | real_t | angle | ) |
The rotation by angle [rad] about the x axis. It leaves the x axis unchanged:
\[R_x(\theta) = \begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos\theta & -\sin\theta \\ 0 & \sin\theta & \cos\theta \end{bmatrix} \]
| chrono::ChMatrix33d bitsim::geometry::rot_y | ( | real_t | angle | ) |
The rotation by angle [rad] about the y axis.
\[R_y(\theta) = \begin{bmatrix} \cos\theta & 0 & \sin\theta \\ 0 & 1 & 0 \\ -\sin\theta & 0 & \cos\theta \end{bmatrix} \]
| chrono::ChMatrix33d bitsim::geometry::rot_z | ( | real_t | angle | ) |
The rotation by angle [rad] about the z axis.
\[R_z(\theta) = \begin{bmatrix} \cos\theta & -\sin\theta & 0 \\ \sin\theta & \cos\theta & 0 \\ 0 & 0 & 1 \end{bmatrix} \]
| bool bitsim::geometry::same_matrix | ( | const chrono::ChMatrix33d & | A, |
| const chrono::ChMatrix33d & | B, | ||
| real_t | tolerance ) |
Whether A and B are equal to within tolerance, in the Frobenius norm.
| const GeomPoint< spacedim, T > bitsim::geometry::scale | ( | const GeomPoint< spacedim, T > & | t, |
| const std::vector< T > & | factors ) |
scale the given point by the factors in vector
| const GeomPoint< spacedim, T > bitsim::geometry::scale | ( | const GeomPoint< spacedim, T > & | t, |
| T | factor ) |
scale the given point by facto and returns a copyr. This function does not change the entries of t.
| 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).