Skip to content

Commit

Permalink
🔄 synced local 'docs/ai' with remote 'docs'
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo committed Dec 1, 2024
1 parent 4b5061e commit 7c4a637
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/ai/skill.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Kick : public SkillBase<RobotCommandWrapperPosition>
オプションとしてprint関数を実装することもできる。
```c++
Status update([[maybe_unused]] const ConsaiVisualizerWrapper::SharedPtr & visualizer) override
Status update() override
{
// メンバーのcommandを使ってロボットを動かす
Point pos{0,0};
Expand Down Expand Up @@ -73,13 +73,13 @@ public:
{
// ステートごとのupdate関数を登録する
addStateFunction(TestState::STATE_1,
[this]([[maybe_unused]] const ConsaiVisualizerWrapper::SharedPtr & visualizer) -> Status {
[this]() -> Status {
// STATE_1の処理
return Status::RUNNING;
});

addStateFunction(TestState::STATE_2,
[this]([[maybe_unused]] const ConsaiVisualizerWrapper::SharedPtr & visualizer) -> Status {
[this]() -> Status {
// STATE_2の処理
return Status::RUNNING;
});
Expand Down Expand Up @@ -181,7 +181,7 @@ public:
: context_int(getContextReference<Point>("context_int"))
{}

Status update([[maybe_unused]] const ConsaiVisualizerWrapper::SharedPtr & visualizer) override
Status update() override
{
// コンテキストの値を変更する(普通の変数同様に読み書きしてOK)
context_int = 1;
Expand Down

0 comments on commit 7c4a637

Please sign in to comment.