6 #ifndef WHEEL_ODOMETRY_H
7 #define WHEEL_ODOMETRY_H
23 void update(
float distance,
float angle);
35 WheelOdometry(
float diameter = 99.0,
float tread = 147.5,
float cycle = 0.04)
36 : motor_angle(), property(diameter, tread, cycle), coordinate()
40 float velocity(std::int32_t left_motor, std::int32_t right_motor);
42 float angularVelocity(std::int32_t left_motor, std::int32_t right_motor);
float getPointX()
走行体の位置x座標を返す
float angularVelocity(std::int32_t left_motor, std::int32_t right_motor)
走行体の旋回角速度を求める
const Coordinate & getCoordinate()
走行体の位置情報を返す
float getRotationAngle(std::int32_t left_motor, std::int32_t right_motor)
走行体の回転角度を返す
void reset()
走行体の位置情報を初期化する
const Coordinate & update(std::int32_t left_motor, std::int32_t right_motor)
走行体の位置情報を更新する
float velocity(std::int32_t left_motor, std::int32_t right_motor)
走行体の旋回速度を求める
const Coordinate & reset()
走行体の位置情報を初期化する
左右モータの回転角に関するクラス(旧Distance.h, SelfLocalization内のMotorAngle)
void update(float distance, float angle)
走行体の位置情報を更新する
float getPointY()
走行体の位置y座標を返す
WheelOdometry(float diameter=99.0, float tread=147.5, float cycle=0.04)