Chassis v2.1.1
Chassisはロボコンでの足回り制御を行うためのC++ライブラリである。
|
N個のエンコーダでオドメトリを行うクラス。 More...
#include <Odom.h>
Public Member Functions | |
Odom (const Coordinate &pos={}) | |
コンストラクタ。現在位置を初期化する。 | |
void | integrate (const int(&dif_val)[N]) |
エンコーダの変位の変化量を積分し、自己位置を計算する。 | |
void | set (const Coordinate &pos) noexcept |
自己位置を更新する。 | |
const Coordinate & | get () const &noexcept |
推定された自己位置を返す。 | |
Coordinate | get () &&noexcept |
推定された自己位置を返す。 | |
Static Public Member Functions | |
static constexpr int | size () noexcept |
エンコーダ数を返す。 | |
N個のエンコーダでオドメトリを行うクラス。
N | エンコーダ数。 N > 0 であること。 |
rct::Odom< N >::Odom | ( | const Coordinate & | pos = {} | ) |
|
noexcept |
|
noexcept |