WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
Pose3d.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <algorithm>
8#include <initializer_list>
9#include <span>
10#include <stdexcept>
11#include <type_traits>
12#include <utility>
13
14#include <Eigen/Core>
15#include <wpi/SymbolExports.h>
16#include <wpi/json_fwd.h>
17
18#include "frc/ct_matrix.h"
19#include "frc/geometry/Pose2d.h"
23
24namespace frc {
25
26class Transform3d;
27
28/**
29 * Represents a 3D pose containing translational and rotational elements.
30 */
32 public:
33 /**
34 * Constructs a pose at the origin facing toward the positive X axis.
35 */
36 constexpr Pose3d() = default;
37
38 /**
39 * Constructs a pose with the specified translation and rotation.
40 *
41 * @param translation The translational component of the pose.
42 * @param rotation The rotational component of the pose.
43 */
44 constexpr Pose3d(Translation3d translation, Rotation3d rotation)
45 : m_translation{std::move(translation)},
46 m_rotation{std::move(rotation)} {}
47
48 /**
49 * Constructs a pose with x, y, and z translations instead of a separate
50 * Translation3d.
51 *
52 * @param x The x component of the translational component of the pose.
53 * @param y The y component of the translational component of the pose.
54 * @param z The z component of the translational component of the pose.
55 * @param rotation The rotational component of the pose.
56 */
57 constexpr Pose3d(units::meter_t x, units::meter_t y, units::meter_t z,
58 Rotation3d rotation)
59 : m_translation{x, y, z}, m_rotation{std::move(rotation)} {}
60
61 /**
62 * Constructs a pose with the specified affine transformation matrix.
63 *
64 * @param matrix The affine transformation matrix.
65 * @throws std::domain_error if the affine transformation matrix is invalid.
66 */
67 constexpr explicit Pose3d(const Eigen::Matrix4d& matrix)
68 : m_translation{Eigen::Vector3d{
69 {matrix(0, 3)}, {matrix(1, 3)}, {matrix(2, 3)}}},
70 m_rotation{
71 Eigen::Matrix3d{{matrix(0, 0), matrix(0, 1), matrix(0, 2)},
72 {matrix(1, 0), matrix(1, 1), matrix(1, 2)},
73 {matrix(2, 0), matrix(2, 1), matrix(2, 2)}}} {
74 if (matrix(3, 0) != 0.0 || matrix(3, 1) != 0.0 || matrix(3, 2) != 0.0 ||
75 matrix(3, 3) != 1.0) {
76 throw std::domain_error("Affine transformation matrix is invalid");
77 }
78 }
79
80 /**
81 * Constructs a 3D pose from a 2D pose in the X-Y plane.
82 *
83 * @param pose The 2D pose.
84 * @see Rotation3d(Rotation2d)
85 * @see Translation3d(Translation2d)
86 */
87 constexpr explicit Pose3d(const Pose2d& pose)
88 : m_translation{pose.X(), pose.Y(), 0_m},
89 m_rotation{0_rad, 0_rad, pose.Rotation().Radians()} {}
90
91 /**
92 * Transforms the pose by the given transformation and returns the new
93 * transformed pose. The transform is applied relative to the pose's frame.
94 * Note that this differs from Pose3d::RotateBy(const Rotation3d&), which is
95 * applied relative to the global frame and around the origin.
96 *
97 * @param other The transform to transform the pose by.
98 *
99 * @return The transformed pose.
100 */
101 constexpr Pose3d operator+(const Transform3d& other) const {
102 return TransformBy(other);
103 }
104
105 /**
106 * Returns the Transform3d that maps the one pose to another.
107 *
108 * @param other The initial pose of the transformation.
109 * @return The transform that maps the other pose to the current pose.
110 */
111 constexpr Transform3d operator-(const Pose3d& other) const;
112
113 /**
114 * Checks equality between this Pose3d and another object.
115 */
116 constexpr bool operator==(const Pose3d&) const = default;
117
118 /**
119 * Returns the underlying translation.
120 *
121 * @return Reference to the translational component of the pose.
122 */
123 constexpr const Translation3d& Translation() const { return m_translation; }
124
125 /**
126 * Returns the X component of the pose's translation.
127 *
128 * @return The x component of the pose's translation.
129 */
130 constexpr units::meter_t X() const { return m_translation.X(); }
131
132 /**
133 * Returns the Y component of the pose's translation.
134 *
135 * @return The y component of the pose's translation.
136 */
137 constexpr units::meter_t Y() const { return m_translation.Y(); }
138
139 /**
140 * Returns the Z component of the pose's translation.
141 *
142 * @return The z component of the pose's translation.
143 */
144 constexpr units::meter_t Z() const { return m_translation.Z(); }
145
146 /**
147 * Returns the underlying rotation.
148 *
149 * @return Reference to the rotational component of the pose.
150 */
151 constexpr const Rotation3d& Rotation() const { return m_rotation; }
152
153 /**
154 * Multiplies the current pose by a scalar.
155 *
156 * @param scalar The scalar.
157 *
158 * @return The new scaled Pose2d.
159 */
160 constexpr Pose3d operator*(double scalar) const {
161 return Pose3d{m_translation * scalar, m_rotation * scalar};
162 }
163
164 /**
165 * Divides the current pose by a scalar.
166 *
167 * @param scalar The scalar.
168 *
169 * @return The new scaled Pose2d.
170 */
171 constexpr Pose3d operator/(double scalar) const {
172 return *this * (1.0 / scalar);
173 }
174
175 /**
176 * Rotates the pose around the origin and returns the new pose.
177 *
178 * @param other The rotation to transform the pose by, which is applied
179 * extrinsically (from the global frame).
180 *
181 * @return The rotated pose.
182 */
183 constexpr Pose3d RotateBy(const Rotation3d& other) const {
184 return {m_translation.RotateBy(other), m_rotation.RotateBy(other)};
185 }
186
187 /**
188 * Transforms the pose by the given transformation and returns the new
189 * transformed pose. The transform is applied relative to the pose's frame.
190 * Note that this differs from Pose3d::RotateBy(const Rotation3d&), which is
191 * applied relative to the global frame and around the origin.
192 *
193 * @param other The transform to transform the pose by.
194 *
195 * @return The transformed pose.
196 */
197 constexpr Pose3d TransformBy(const Transform3d& other) const;
198
199 /**
200 * Returns the current pose relative to the given pose.
201 *
202 * This function can often be used for trajectory tracking or pose
203 * stabilization algorithms to get the error between the reference and the
204 * current pose.
205 *
206 * @param other The pose that is the origin of the new coordinate frame that
207 * the current pose will be converted into.
208 *
209 * @return The current pose relative to the new origin pose.
210 */
211 constexpr Pose3d RelativeTo(const Pose3d& other) const;
212
213 /**
214 * Rotates the current pose around a point in 3D space.
215 *
216 * @param point The point in 3D space to rotate around.
217 * @param rot The rotation to rotate the pose by.
218 *
219 * @return The new rotated pose.
220 */
221 constexpr Pose3d RotateAround(const Translation3d& point,
222 const Rotation3d& rot) const {
223 return {m_translation.RotateAround(point, rot), m_rotation.RotateBy(rot)};
224 }
225
226 /**
227 * Obtain a new Pose3d from a (constant curvature) velocity.
228 *
229 * The twist is a change in pose in the robot's coordinate frame since the
230 * previous pose update. When the user runs exp() on the previous known
231 * field-relative pose with the argument being the twist, the user will
232 * receive the new field-relative pose.
233 *
234 * "Exp" represents the pose exponential, which is solving a differential
235 * equation moving the pose forward in time.
236 *
237 * @param twist The change in pose in the robot's coordinate frame since the
238 * previous pose update. For example, if a non-holonomic robot moves forward
239 * 0.01 meters and changes angle by 0.5 degrees since the previous pose
240 * update, the twist would be Twist3d{0.01_m, 0_m, 0_m, Rotation3d{0.0, 0.0,
241 * 0.5_deg}}.
242 *
243 * @return The new pose of the robot.
244 */
245 constexpr Pose3d Exp(const Twist3d& twist) const;
246
247 /**
248 * Returns a Twist3d that maps this pose to the end pose. If c is the output
249 * of a.Log(b), then a.Exp(c) would yield b.
250 *
251 * @param end The end pose for the transformation.
252 *
253 * @return The twist that maps this to end.
254 */
255 constexpr Twist3d Log(const Pose3d& end) const;
256
257 /**
258 * Returns an affine transformation matrix representation of this pose.
259 */
260 constexpr Eigen::Matrix4d ToMatrix() const {
261 auto vec = m_translation.ToVector();
262 auto mat = m_rotation.ToMatrix();
263 return Eigen::Matrix4d{{mat(0, 0), mat(0, 1), mat(0, 2), vec(0)},
264 {mat(1, 0), mat(1, 1), mat(1, 2), vec(1)},
265 {mat(2, 0), mat(2, 1), mat(2, 2), vec(2)},
266 {0.0, 0.0, 0.0, 1.0}};
267 }
268
269 /**
270 * Returns a Pose2d representing this Pose3d projected into the X-Y plane.
271 */
272 constexpr Pose2d ToPose2d() const {
273 return Pose2d{m_translation.X(), m_translation.Y(), m_rotation.Z()};
274 }
275
276 /**
277 * Returns the nearest Pose3d from a collection of poses.
278 *
279 * If two or more poses in the collection have the same distance from this
280 * pose, return the one with the closest rotation component.
281 *
282 * @param poses The collection of poses.
283 * @return The nearest Pose3d from the collection.
284 */
285 constexpr Pose3d Nearest(std::span<const Pose3d> poses) const {
286 return *std::min_element(
287 poses.begin(), poses.end(), [this](const Pose3d& a, const Pose3d& b) {
288 auto aDistance = this->Translation().Distance(a.Translation());
289 auto bDistance = this->Translation().Distance(b.Translation());
290
291 // If the distances are equal sort by difference in rotation
292 if (aDistance == bDistance) {
293 return gcem::abs(
294 (this->Rotation() - a.Rotation()).Angle().value()) <
295 gcem::abs((this->Rotation() - b.Rotation()).Angle().value());
296 }
297 return aDistance < bDistance;
298 });
299 }
300
301 /**
302 * Returns the nearest Pose3d from a collection of poses.
303 *
304 * If two or more poses in the collection have the same distance from this
305 * pose, return the one with the closest rotation component.
306 *
307 * @param poses The collection of poses.
308 * @return The nearest Pose3d from the collection.
309 */
310 constexpr Pose3d Nearest(std::initializer_list<Pose3d> poses) const {
311 return *std::min_element(
312 poses.begin(), poses.end(), [this](const Pose3d& a, const Pose3d& b) {
313 auto aDistance = this->Translation().Distance(a.Translation());
314 auto bDistance = this->Translation().Distance(b.Translation());
315
316 // If the distances are equal sort by difference in rotation
317 if (aDistance == bDistance) {
318 return gcem::abs(
319 (this->Rotation() - a.Rotation()).Angle().value()) <
320 gcem::abs((this->Rotation() - b.Rotation()).Angle().value());
321 }
322 return aDistance < bDistance;
323 });
324 }
325
326 private:
327 Translation3d m_translation;
328 Rotation3d m_rotation;
329};
330
332void to_json(wpi::json& json, const Pose3d& pose);
333
335void from_json(const wpi::json& json, Pose3d& pose);
336
337} // namespace frc
338
341
343
344namespace frc {
345
346namespace detail {
347
348/**
349 * Applies the hat operator to a rotation vector.
350 *
351 * It takes a rotation vector and returns the corresponding matrix
352 * representation of the Lie algebra element (a 3x3 rotation matrix).
353 *
354 * @param rotation The rotation vector.
355 * @return The rotation vector as a 3x3 rotation matrix.
356 */
358 // Given a rotation vector <a, b, c>,
359 // [ 0 -c b]
360 // Omega = [ c 0 -a]
361 // [-b a 0]
362 return ct_matrix3d{{0.0, -rotation(2), rotation(1)},
363 {rotation(2), 0.0, -rotation(0)},
364 {-rotation(1), rotation(0), 0.0}};
365}
366
367/**
368 * Applies the hat operator to a rotation vector.
369 *
370 * It takes a rotation vector and returns the corresponding matrix
371 * representation of the Lie algebra element (a 3x3 rotation matrix).
372 *
373 * @param rotation The rotation vector.
374 * @return The rotation vector as a 3x3 rotation matrix.
375 */
376constexpr Eigen::Matrix3d RotationVectorToMatrix(
377 const Eigen::Vector3d& rotation) {
378 // Given a rotation vector <a, b, c>,
379 // [ 0 -c b]
380 // Omega = [ c 0 -a]
381 // [-b a 0]
382 return Eigen::Matrix3d{{0.0, -rotation(2), rotation(1)},
383 {rotation(2), 0.0, -rotation(0)},
384 {-rotation(1), rotation(0), 0.0}};
385}
386
387} // namespace detail
388
389constexpr Transform3d Pose3d::operator-(const Pose3d& other) const {
390 const auto pose = this->RelativeTo(other);
391 return Transform3d{pose.Translation(), pose.Rotation()};
392}
393
394constexpr Pose3d Pose3d::TransformBy(const Transform3d& other) const {
395 return {m_translation + (other.Translation().RotateBy(m_rotation)),
396 other.Rotation() + m_rotation};
397}
398
399constexpr Pose3d Pose3d::RelativeTo(const Pose3d& other) const {
400 const Transform3d transform{other, *this};
401 return {transform.Translation(), transform.Rotation()};
402}
403
404constexpr Pose3d Pose3d::Exp(const Twist3d& twist) const {
405 // Implementation from Section 3.2 of https://ethaneade.org/lie.pdf
406
407 auto impl = [this]<typename Matrix3d, typename Vector3d>(
408 const Twist3d& twist) -> Pose3d {
409 Vector3d u{{twist.dx.value(), twist.dy.value(), twist.dz.value()}};
410 Vector3d rvec{{twist.rx.value(), twist.ry.value(), twist.rz.value()}};
411 Matrix3d omega = detail::RotationVectorToMatrix(rvec);
412 Matrix3d omegaSq = omega * omega;
413 double theta = rvec.norm();
414 double thetaSq = theta * theta;
415
416 double A;
417 double B;
418 double C;
419 if (gcem::abs(theta) < 1E-7) {
420 // Taylor Expansions around θ = 0
421 // A = 1/1! - θ²/3! + θ⁴/5!
422 // B = 1/2! - θ²/4! + θ⁴/6!
423 // C = 1/3! - θ²/5! + θ⁴/7!
424 // sources:
425 // A:
426 // https://www.wolframalpha.com/input?i2d=true&i=series+expansion+of+Divide%5Bsin%5C%2840%29x%5C%2841%29%2Cx%5D+at+x%3D0
427 // B:
428 // https://www.wolframalpha.com/input?i2d=true&i=series+expansion+of+Divide%5B1-cos%5C%2840%29x%5C%2841%29%2CPower%5Bx%2C2%5D%5D+at+x%3D0
429 // C:
430 // https://www.wolframalpha.com/input?i2d=true&i=series+expansion+of+Divide%5B1-Divide%5Bsin%5C%2840%29x%5C%2841%29%2Cx%5D%2CPower%5Bx%2C2%5D%5D+at+x%3D0
431 A = 1 - thetaSq / 6 + thetaSq * thetaSq / 120;
432 B = 1 / 2.0 - thetaSq / 24 + thetaSq * thetaSq / 720;
433 C = 1 / 6.0 - thetaSq / 120 + thetaSq * thetaSq / 5040;
434 } else {
435 // A = std::sin(θ)/θ
436 // B = (1 - std::cos(θ)) / θ²
437 // C = (1 - A) / θ²
438 A = gcem::sin(theta) / theta;
439 B = (1 - gcem::cos(theta)) / thetaSq;
440 C = (1 - A) / thetaSq;
441 }
442
443 Matrix3d R = Matrix3d::Identity() + A * omega + B * omegaSq;
444 Matrix3d V = Matrix3d::Identity() + B * omega + C * omegaSq;
445
446 Vector3d translation_component = V * u;
447
448 const Transform3d transform{
449 Translation3d{units::meter_t{translation_component(0)},
450 units::meter_t{translation_component(1)},
451 units::meter_t{translation_component(2)}},
452 Rotation3d{R}};
453
454 return *this + transform;
455 };
456
457 if (std::is_constant_evaluated()) {
458 return impl.template operator()<ct_matrix3d, ct_vector3d>(twist);
459 } else {
460 return impl.template operator()<Eigen::Matrix3d, Eigen::Vector3d>(twist);
461 }
462}
463
464constexpr Twist3d Pose3d::Log(const Pose3d& end) const {
465 // Implementation from Section 3.2 of https://ethaneade.org/lie.pdf
466
467 auto impl = [this]<typename Matrix3d, typename Vector3d>(
468 const Pose3d& end) -> Twist3d {
469 const auto transform = end.RelativeTo(*this);
470
471 Vector3d u{
472 {transform.X().value(), transform.Y().value(), transform.Z().value()}};
473 Vector3d rvec = transform.Rotation().ToVector();
474 Matrix3d omega = detail::RotationVectorToMatrix(rvec);
475 Matrix3d omegaSq = omega * omega;
476 double theta = rvec.norm();
477 double thetaSq = theta * theta;
478
479 double C;
480 if (gcem::abs(theta) < 1E-7) {
481 // Taylor Expansions around θ = 0
482 // A = 1/1! - θ²/3! + θ⁴/5!
483 // B = 1/2! - θ²/4! + θ⁴/6!
484 // C = 1/6 * (1/2 + θ²/5! + θ⁴/7!)
485 // sources:
486 // A:
487 // https://www.wolframalpha.com/input?i2d=true&i=series+expansion+of+Divide%5Bsin%5C%2840%29x%5C%2841%29%2Cx%5D+at+x%3D0
488 // B:
489 // https://www.wolframalpha.com/input?i2d=true&i=series+expansion+of+Divide%5B1-cos%5C%2840%29x%5C%2841%29%2CPower%5Bx%2C2%5D%5D+at+x%3D0
490 // C:
491 // https://www.wolframalpha.com/input?i2d=true&i=series+expansion+of+Divide%5B1-Divide%5BDivide%5Bsin%5C%2840%29x%5C%2841%29%2Cx%5D%2C2Divide%5B1-cos%5C%2840%29x%5C%2841%29%2CPower%5Bx%2C2%5D%5D%5D%2CPower%5Bx%2C2%5D%5D+at+x%3D0
492 C = 1 / 12.0 + thetaSq / 720 + thetaSq * thetaSq / 30240;
493 } else {
494 // A = std::sin(θ)/θ
495 // B = (1 - std::cos(θ)) / θ²
496 // C = (1 - A/(2*B)) / θ²
497 double A = gcem::sin(theta) / theta;
498 double B = (1 - gcem::cos(theta)) / thetaSq;
499 C = (1 - A / (2 * B)) / thetaSq;
500 }
501
502 Matrix3d V_inv = Matrix3d::Identity() - 0.5 * omega + C * omegaSq;
503
504 Vector3d translation_component = V_inv * u;
505
506 return Twist3d{units::meter_t{translation_component(0)},
507 units::meter_t{translation_component(1)},
508 units::meter_t{translation_component(2)},
509 units::radian_t{rvec(0)},
510 units::radian_t{rvec(1)},
511 units::radian_t{rvec(2)}};
512 };
513
514 if (std::is_constant_evaluated()) {
515 return impl.template operator()<ct_matrix3d, ct_vector3d>(end);
516 } else {
517 return impl.template operator()<Eigen::Matrix3d, Eigen::Vector3d>(end);
518 }
519}
520
521} // namespace frc
#define WPILIB_DLLEXPORT
Definition SymbolExports.h:36
namespace for Niels Lohmann
Definition json.h:99
Represents a 2D pose containing translational and rotational elements.
Definition Pose2d.h:28
Represents a 3D pose containing translational and rotational elements.
Definition Pose3d.h:31
constexpr Pose3d(const Pose2d &pose)
Constructs a 3D pose from a 2D pose in the X-Y plane.
Definition Pose3d.h:87
constexpr Pose3d(units::meter_t x, units::meter_t y, units::meter_t z, Rotation3d rotation)
Constructs a pose with x, y, and z translations instead of a separate Translation3d.
Definition Pose3d.h:57
constexpr Pose3d TransformBy(const Transform3d &other) const
Transforms the pose by the given transformation and returns the new transformed pose.
Definition Pose3d.h:394
constexpr Pose3d RotateBy(const Rotation3d &other) const
Rotates the pose around the origin and returns the new pose.
Definition Pose3d.h:183
constexpr const Translation3d & Translation() const
Returns the underlying translation.
Definition Pose3d.h:123
constexpr Pose3d(Translation3d translation, Rotation3d rotation)
Constructs a pose with the specified translation and rotation.
Definition Pose3d.h:44
constexpr Twist3d Log(const Pose3d &end) const
Returns a Twist3d that maps this pose to the end pose.
Definition Pose3d.h:464
constexpr units::meter_t Z() const
Returns the Z component of the pose's translation.
Definition Pose3d.h:144
constexpr Pose3d operator/(double scalar) const
Divides the current pose by a scalar.
Definition Pose3d.h:171
constexpr Eigen::Matrix4d ToMatrix() const
Returns an affine transformation matrix representation of this pose.
Definition Pose3d.h:260
constexpr Pose3d RotateAround(const Translation3d &point, const Rotation3d &rot) const
Rotates the current pose around a point in 3D space.
Definition Pose3d.h:221
constexpr Pose2d ToPose2d() const
Returns a Pose2d representing this Pose3d projected into the X-Y plane.
Definition Pose3d.h:272
constexpr Pose3d Nearest(std::initializer_list< Pose3d > poses) const
Returns the nearest Pose3d from a collection of poses.
Definition Pose3d.h:310
constexpr const Rotation3d & Rotation() const
Returns the underlying rotation.
Definition Pose3d.h:151
constexpr units::meter_t Y() const
Returns the Y component of the pose's translation.
Definition Pose3d.h:137
constexpr Pose3d operator*(double scalar) const
Multiplies the current pose by a scalar.
Definition Pose3d.h:160
constexpr Pose3d RelativeTo(const Pose3d &other) const
Returns the current pose relative to the given pose.
Definition Pose3d.h:399
constexpr Pose3d(const Eigen::Matrix4d &matrix)
Constructs a pose with the specified affine transformation matrix.
Definition Pose3d.h:67
constexpr bool operator==(const Pose3d &) const =default
Checks equality between this Pose3d and another object.
constexpr Transform3d operator-(const Pose3d &other) const
Returns the Transform3d that maps the one pose to another.
Definition Pose3d.h:389
constexpr Pose3d Nearest(std::span< const Pose3d > poses) const
Returns the nearest Pose3d from a collection of poses.
Definition Pose3d.h:285
constexpr Pose3d operator+(const Transform3d &other) const
Transforms the pose by the given transformation and returns the new transformed pose.
Definition Pose3d.h:101
constexpr Pose3d()=default
Constructs a pose at the origin facing toward the positive X axis.
constexpr Pose3d Exp(const Twist3d &twist) const
Obtain a new Pose3d from a (constant curvature) velocity.
Definition Pose3d.h:404
constexpr units::meter_t X() const
Returns the X component of the pose's translation.
Definition Pose3d.h:130
A rotation in a 3D coordinate frame represented by a quaternion.
Definition Rotation3d.h:29
Represents a transformation for a Pose3d in the pose's frame.
Definition Transform3d.h:21
Represents a translation in 3D space.
Definition Translation3d.h:30
Compile-time wrapper for Eigen::Matrix.
Definition ct_matrix.h:26
Definition variable.hpp:735
detail namespace with internal helper functions
Definition input_adapters.h:32
constexpr ct_matrix3d RotationVectorToMatrix(const ct_vector3d &rotation)
Applies the hat operator to a rotation vector.
Definition Pose3d.h:357
Definition SystemServer.h:9
WPILIB_DLLEXPORT void to_json(wpi::json &json, const Rotation3d &rotation)
ct_matrix< double, 3, 3 > ct_matrix3d
Definition ct_matrix.h:385
constexpr T abs(const T x) noexcept
Compile-time absolute value function.
Definition abs.hpp:40
constexpr return_t< T > cos(const T x) noexcept
Compile-time cosine function.
Definition cos.hpp:83
constexpr return_t< T > sin(const T x) noexcept
Compile-time sine function.
Definition sin.hpp:85
Definition PointerIntPair.h:280
A change in distance along a 3D arc since the last pose update.
Definition Twist3d.h:22
units::meter_t dx
Linear "dx" component.
Definition Twist3d.h:26
units::radian_t ry
Rotation vector y component.
Definition Twist3d.h:46
units::meter_t dy
Linear "dy" component.
Definition Twist3d.h:31
units::radian_t rz
Rotation vector z component.
Definition Twist3d.h:51
units::meter_t dz
Linear "dz" component.
Definition Twist3d.h:36
units::radian_t rx
Rotation vector x component.
Definition Twist3d.h:41
Type representing an arbitrary unit.
Definition base.h:888