RaidZeroLib
Coroutine robot framework for VEX V5
Loading...
Searching...
No Matches
Twist.hpp
1#pragma once
2#include "RaidZeroLib/api/Units/Units.hpp"
3
4namespace rz {
5
16class Twist {
17 public:
25 Twist(Length dx, Length dy, Angle dtheta) noexcept;
26
32 Length dX() const noexcept;
33
39 Length dY() const noexcept;
40
46 Angle dTheta() const noexcept;
47
58 bool isApprox(const Twist& rhs) const noexcept;
59
60 private:
61 Length dx = au::ZERO;
62 Length dy = au::ZERO;
63 Angle dtheta = au::ZERO;
64};
65
66} // namespace rz
Length dX() const noexcept
Differential translation along X.
Twist(Length dx, Length dy, Angle dtheta) noexcept
Constructs a twist with translational and rotational components.
bool isApprox(const Twist &rhs) const noexcept
Approximate equality check with tight tolerance.
Angle dTheta() const noexcept
Differential rotation about +Z (right-handed, CCW positive).
Length dY() const noexcept
Differential translation along Y.
au::QuantityD< au::Radians > Angle
Definition Units.hpp:13
au::QuantityD< au::Meters > Length
Definition Units.hpp:9
Definition DriverControl.hpp:11