8#ifndef DESIGNLAB_MAP_STATE_H_
9#define DESIGNLAB_MAP_STATE_H_
35 explicit MapState(
const std::vector<Vector3>& map_point) : map_point_(map_point) {}
46 assert(index < map_point_.size());
48 return map_point_[index];
55 return map_point_.size();
66 assert(index < map_point_.size());
67 map_point_[index] = point;
81 map_point_.push_back(point);
93 static constexpr float kMapMinZ = { -10000000.0f };
96 std::vector<Vector3> map_point_;
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
脚設置可能点の座標を追加する.