etrobocon2018 feat.KatLab
770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
総合概要
諸情報
名前空間
クラス
ファイル
ファイル一覧
ファイルメンバ
全て
クラス
名前空間
ファイル
関数
変数
列挙型
列挙値
フレンド
マクロ定義
ページ
str
apps
include
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
RobotProperty::between_wheels
const float between_wheels
Definition:
RobotProperty.h:11
RobotProperty
Definition:
RobotProperty.h:9
RobotProperty::dt
float dt
Definition:
RobotProperty.h:12
RobotProperty::radius_wheel
const float radius_wheel
Definition:
RobotProperty.h:10
RobotProperty::RobotProperty
constexpr RobotProperty(float diameter=100.0f, float tread=148.0f, float cycle=0.04f)
RobotPropertyのコンストラクタ
Definition:
RobotProperty.h:21
構築:
1.8.6