GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
stability_margin_renderer.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_STABILITY_MARGIN_RENDERER_H_
9#define DESIGNLAB_STABILITY_MARGIN_RENDERER_H_
10
11#include <memory>
12
16#include "robot_state_node.h"
17
18
19namespace designlab
20{
21
28 public IDxlib3dRenderer,
29 public IDxlibNodeSetter
30{
31public:
33 const std::shared_ptr<const IHexapodCoordinateConverter>& converter_ptr);
35
36 void SetNode(const RobotStateNode& node) override
37 {
38 node_ = node;
39 };
40
41 void Draw() const override;
42
43
44private:
45 const unsigned int kMarginColor;
46
47 const unsigned int kMarginErrorColor;
48
49 const int kAlpha;
50
51
52 const std::shared_ptr<const IHexapodCoordinateConverter> converter_ptr_;
53
54 RobotStateNode node_;
55};
56
57} // namespace designlab
58
59
60#endif // DESIGNLAB_STABILITY_MARGIN_RENDERER_H_
DxLibの描画処理を行うクラスのインターフェース.
DxLibのGuiやRendererでノードのセットを行うためのインターフェース.
ロボットの静的安定余裕(支持脚多角形)を描画するクラス.
void Draw() const override
描画処理を行う. const 関数にしているのは, 描画処理の中でメンバ変数を変更しないようにするため.
void SetNode(const RobotStateNode &node) override
ノードをセットする.
グラフ構造のためのノード(頂点).旧名 LNODE