RaidZeroLib
Coroutine robot framework for VEX V5
Toggle main menu visibility
Loading...
Searching...
No Matches
Twist.hpp
1
#pragma once
2
#include "RaidZeroLib/api/Units/Units.hpp"
3
4
namespace
rz
{
5
16
class
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
rz::Twist::dX
Length dX() const noexcept
Differential translation along X.
rz::Twist::Twist
Twist(Length dx, Length dy, Angle dtheta) noexcept
Constructs a twist with translational and rotational components.
rz::Twist::isApprox
bool isApprox(const Twist &rhs) const noexcept
Approximate equality check with tight tolerance.
rz::Twist::dTheta
Angle dTheta() const noexcept
Differential rotation about +Z (right-handed, CCW positive).
rz::Twist::dY
Length dY() const noexcept
Differential translation along Y.
rz::Angle
au::QuantityD< au::Radians > Angle
Definition
Units.hpp:13
rz::Length
au::QuantityD< au::Meters > Length
Definition
Units.hpp:9
rz
Definition
DriverControl.hpp:11
RaidZeroLib
api
Geometry
Twist.hpp
Generated by
1.18.0