etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
RobotProperty.h
[詳解]
1 
6 #ifndef ROBOT_PROPERTY_H
7 #define ROBOT_PROPERTY_H
8 
9 struct RobotProperty {
10  const float radius_wheel; // 車輪半径
11  const float between_wheels; // 左右車輪の幅(トレッド幅)
12  float dt; // 周期
13 
21  constexpr RobotProperty(float diameter = 100.0f, float tread = 148.0f, float cycle = 0.04f)
22  : radius_wheel(diameter / 2.0f), between_wheels(tread), dt(cycle)
23  {
24  }
25 };
26 
27 #endif
const float between_wheels
Definition: RobotProperty.h:11
const float radius_wheel
Definition: RobotProperty.h:10
constexpr RobotProperty(float diameter=100.0f, float tread=148.0f, float cycle=0.04f)
RobotPropertyのコンストラクタ
Definition: RobotProperty.h:21