8#ifndef DESIGNLAB_MAP_STATE_H_
9#define DESIGNLAB_MAP_STATE_H_
32 explicit MapState(
const std::vector<Vector3>& map_point)
33 : map_point_(map_point) {}
43 assert(index < map_point_.size());
45 return map_point_[index];
59 assert(index < map_point_.size());
60 map_point_[index] = point;
72 map_point_.push_back(point);
80 static constexpr float kMapMinZ = {-10000000.0f};
87 "kMapPointDistanceは正の実数である必要があります.");
size_t GetMapPointSize() const noexcept
脚設置可能点の総数を返す.
void ClearMapPoint() noexcept
脚設置可能点の座標を消去する.
static constexpr float kMapPointDistance
z軸から(上から)みたとき,格子点状に分けられた脚接地可能点の間隔 [mm].
void SetMapPoint(const size_t index, const Vector3 &point) noexcept
脚設置可能点の座標を1つ選び上書きする. 一応作ったけど,使うことはないと思う. 内容を書き換えたいならば Clear した後,AddMapPoint を使うこと.
MapState(const std::vector< Vector3 > &map_point)
void SetMapPointVec(const std::vector< Vector3 > &point) noexcept
脚設置可能点の座標を設定する
static constexpr float kMapMinZ
マップの最低のZ座標
Vector3 GetMapPoint(const size_t index) const noexcept
脚設置可能点の座標を返す.
MapState(MapState &&other) noexcept=default
ムーブコンストラクタ
MapState & operator=(const MapState &other)=default
代入演算子
MapState(const MapState &other)=default
コピーコンストラクタ
void AddMapPoint(const Vector3 &point) noexcept
脚設置可能点の座標を追加する.