A specification for a 3d rotation and translation, optionally with respect to a base frame.
For an overview of configuring stochastic transforms, see Configuring transforms and Configuring distributions.
See Implementing Serialize for implementation details, especially the unusually public member fields.
#include <drake/common/schema/transform.h>
◆ Transform() [1/4]
| Transform |
( |
const Transform & | | ) |
|
|
default |
◆ Transform() [2/4]
| Transform |
( |
Transform && | | ) |
|
|
default |
◆ Transform() [3/4]
Constructs the Identity transform.
◆ Transform() [4/4]
| Transform |
( |
const math::RigidTransformd & | | ) |
|
|
explicit |
Constructs the given transform.
◆ GetDeterministicValue()
| math::RigidTransformd GetDeterministicValue |
( |
| ) |
const |
If this is deterministic, retrieves its value.
- Exceptions
-
| std::exception | if this is not fully deterministic. |
◆ IsDeterministic()
| bool IsDeterministic |
( |
| ) |
const |
Returns true iff this is fully deterministic.
◆ Mean()
| math::RigidTransformd Mean |
( |
| ) |
const |
Returns the mean of this rotation.
If this is deterministic, the result is the same as GetDeterministicValue. If this is random, note that the mean here is simply defined as setting all of the random variables individually to their mean. Various other measures of the resulting RigidTransform (e.g., the distribution of one of the Euler angles) may not necessarily match that measure on the returned value.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Sample()
Samples this Transform.
If this is deterministic, the result is the same as GetDeterministicValue.
◆ SampleAsTransform()
Samples this Transform; the returned value is deterministic and has the same base frame.
◆ Serialize()
template<typename Archive>
| void Serialize |
( |
Archive * | a | ) |
|
◆ set_rotation_rpy_deg()
| void set_rotation_rpy_deg |
( |
const Eigen::Vector3d & | rpy_deg | ) |
|
Sets the rotation field to the given deterministic RPY, in degrees.
◆ ToSymbolic()
Returns the symbolic form of this rotation.
If this is deterministic, the result will contain no variables. If this is random, the result will contain one or more random variables, based on the distributions in use.
◆ base_frame
| std::optional<std::string> base_frame |
An optional base frame name for this transform.
When left unspecified, the default depends on the semantics of the enclosing struct.
◆ rotation
A variant that allows for several ways to specify a rotation.
◆ translation
A translation vector, in meters.
The documentation for this class was generated from the following file: