GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
robot_operator_for_path.h
[詳解]
1
3
4// Copyright(c) 2023-2025 Design Engineering Laboratory, Saitama University
5// Released under the MIT license
6// https://opensource.org/licenses/mit-license.php
7
8#ifndef DESIGNLAB_ROBOT_OPERATOR_FOR_PATH_H_
9#define DESIGNLAB_ROBOT_OPERATOR_FOR_PATH_H_
10
11#include <vector>
12
13#include "math_util.h"
15
16
17namespace designlab
18{
19
23{
24public:
25 explicit RobotOperatorForPath(const std::vector<Vector3>& path);
26
27 RobotOperation Init() const override;
28
29 RobotOperation Update(const RobotStateNode& node) override;
30
31private:
33 static constexpr float kAllowableAngleError{ math_util::ConvertDegToRad(1.2f) };
34
35 std::vector<Vector3> global_route_;
36 int most_near_index_{ 0 };
37};
38
39} // namespace designlab
40
41
42#endif // DESIGNLAB_ROBOT_OPERATOR_FOR_PATH_H_
ロボットの動作を決定する処理のインターフェース.
指定した中継地点を通るようにロボットを動かすクラス.
RobotOperation Update(const RobotStateNode &node) override
ロボットの動作を更新する.
RobotOperation Init() const override
ロボットの動作を初期化する.
constexpr T ConvertDegToRad(const T deg) noexcept
角度を [deg] から [rad] に変換する関数.
Definition math_util.h:126
探索において目標となる座標や角度,評価する値についてまとめた構造体.
グラフ構造のためのノード(頂点).旧名 LNODE