Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
abstract_robot_mecanum_logic.hpp
Go to the documentation of this file.
1#ifndef FANG_ROBOTICS_MCB_CONTROL_CHASSIS_HOLONOMIC_MECANUM_LOGIC_ABSTRACT_ROBOT_MECANUM_LOGIC_HPP
2#define FANG_ROBOTICS_MCB_CONTROL_CHASSIS_HOLONOMIC_MECANUM_LOGIC_ABSTRACT_ROBOT_MECANUM_LOGIC_HPP
5
6namespace fang::chassis
7{
30 {
31 public:
33 void setMotion(const AbstractVelocity2D& translation, double rotationalOffset);
34 void setTranslation(const AbstractVelocity2D& translation);
35 void setRotationOffset(double rotationalOffset);
36
38 double getRotationOffset() const;
40
41 private:
42 double getFrontRightWheelSpeed() const;
43 double getFrontLeftWheelSpeed() const;
44 double getRearLeftWheelSpeed() const;
45 double getRearRightWheelSpeed() const;
46
47 AbstractVelocity2D translation_{0,0};
48 double rotationOffset_{0};
49 };
50}
51#endif
Definition abstract_robot_mecanum_logic.hpp:30
double getRotationOffset() const
Definition abstract_robot_mecanum_logic.cpp:26
void setMotion(const AbstractVelocity2D &translation, double rotationalOffset)
Definition abstract_robot_mecanum_logic.cpp:5
AbstractQuadSpeeds getWheelSpeeds() const
Definition abstract_robot_mecanum_logic.cpp:31
AbstractVelocity2D getTranslation() const
Definition abstract_robot_mecanum_logic.cpp:21
void setRotationOffset(double rotationalOffset)
Definition abstract_robot_mecanum_logic.cpp:16
void setTranslation(const AbstractVelocity2D &translation)
Definition abstract_robot_mecanum_logic.cpp:11
Definition basic_downscaler.cpp:4
math::AbstractVector2D AbstractVelocity2D
Definition abstract_velocity_2d.hpp:6
Definition vector_2d.hpp:8