Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
odometry_2d_interface.hpp
Go to the documentation of this file.
1/*****************************************************************************/
2/********** !!! WARNING: CODE GENERATED BY TAPROOT. DO NOT EDIT !!! **********/
3/*****************************************************************************/
4
5/*
6 * Copyright (c) 2020-2021 Advanced Robotics at the University of Washington <robomstr@uw.edu>
7 *
8 * This file is part of Taproot.
9 *
10 * Taproot is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * Taproot is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Taproot. If not, see <https://www.gnu.org/licenses/>.
22 */
23
24#ifndef TAPROOT_ODOMETRY_2D_INTERFACE_HPP_
25#define TAPROOT_ODOMETRY_2D_INTERFACE_HPP_
26
27// Include instead of forward declare because template uses default arguments
28#include "modm/math/geometry/location_2d.hpp"
29
31{
44{
45public:
49 virtual modm::Location2D<float> getCurrentLocation2D() const = 0;
50
54 virtual modm::Vector2f getCurrentVelocity2D() const = 0;
55
59 virtual float getYaw() const = 0;
60
64 virtual uint32_t getLastComputedOdometryTime() const = 0;
65
66 virtual void overrideOdometryPosition(const float positionX, const float positionY) = 0;
67};
68
69} // namespace tap::algorithms::odometry
70
71#endif // TAPROOT_ODOMETRY_2D_INTERFACE_HPP_
Interface for retrieving the position of a robot chassis in 2 dimensions.
Definition odometry_2d_interface.hpp:44
virtual modm::Location2D< float > getCurrentLocation2D() const =0
virtual uint32_t getLastComputedOdometryTime() const =0
virtual modm::Vector2f getCurrentVelocity2D() const =0
virtual void overrideOdometryPosition(const float positionX, const float positionY)=0
Definition chassis_displacement_observer_interface.hpp:30