LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
odomState.hpp
Go to the documentation of this file.
1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 */
6#pragma once
7
11#include <string>
12
13namespace okapi {
14struct OdomState {
15 QLength x{0_m};
16 QLength y{0_m};
17 QAngle theta{0_deg};
18
32 std::string str(QLength idistanceUnit, QAngle iangleUnit) const;
33
48 std::string str(QLength idistanceUnit = meter,
49 std::string distUnitName = "_m",
50 QAngle iangleUnit = degree,
51 std::string angleUnitName = "_deg") const;
52
53 bool operator==(const OdomState &rhs) const;
54
55 bool operator!=(const OdomState &rhs) const;
56};
57} // namespace okapi
constexpr QLength meter(1.0)
constexpr QAngle degree
Definition QAngle.hpp:19
std::string str(QLength idistanceUnit=meter, std::string distUnitName="_m", QAngle iangleUnit=degree, std::string angleUnitName="_deg") const
Get a string for the current odometry state (optionally with the specified units).
bool operator==(const OdomState &rhs) const
std::string str(QLength idistanceUnit, QAngle iangleUnit) const
Get a string for the current odometry state (optionally with the specified units).
bool operator!=(const OdomState &rhs) const