『差動駆動型ロボット​のパス追従』のドキュ​メントについて

1 visualizzazione (ultimi 30 giorni)
NAOYA ASAOKA
NAOYA ASAOKA il 30 Mag 2018
Commentato: NAOYA ASAOKA il 13 Giu 2018
下記ページの差動駆動型ロボットのパス追従をやってみているのですが、 サンプルコードの通り実行していくと下記エラーで先に進めません。 何がいけないのでしょうか? https://jp.mathworks.com/help/robotics/examples/path-following-for-a-differential-drive-robot.html
【エラー内容】
>> robot = ExampleHelperRobotSimulator('emptyMap',2);
エラー: ExampleHelperRobotSimulator
入力引数が多すぎます。
【実行した内容】
>> rosinit
>> path = [2.00 1.00;
1.25 1.75;
5.25 8.25;
7.25 8.75;
11.75 10.75;
12.00 10.00];
>> robotCurrentLocation = path(1,:);
>> robotGoal = path(end,:);
>> initialOrientation = 0;
>> robotCurrentPose = [robotCurrentLocation initialOrientation];
>> robotRadius = 0.4;
  2 Commenti
michio
michio il 30 Mag 2018
URL,コード部分を編集いたしました。
NAOYA ASAOKA
NAOYA ASAOKA il 30 Mag 2018
ありがとうございます。

Accedi per commentare.

Risposta accettata

Tohru Kikawada
Tohru Kikawada il 30 Mag 2018
Modificato: Tohru Kikawada il 30 Mag 2018
パス追従については下記のURLのサンプルでよろしかったでしょうか。
https://jp.mathworks.com/help/robotics/examples/path-following-for-a-differential-drive-robot.html
エラーの内容を拝見する限りですと、 ExampleHelperRobotSimulator が定義している入力引数よりも多いと判断されているようです。 ExampleHelperRobotSimulator について同名のクラスがあったりしないでしょうか。
下記のコマンドを実行してみると何かわかるかもしれません。
>> which ExampleHelperRobotSimulator
  5 Commenti
Tohru Kikawada
Tohru Kikawada il 12 Giu 2018
Modificato: Tohru Kikawada il 12 Giu 2018
なるほど、R2015aをお使いですね。サンプルコードはバージョンによって変わることがあります。まずはR2015a用の下記のサンプルコードで試してみてください。
NAOYA ASAOKA
NAOYA ASAOKA il 13 Giu 2018
ありがとうございます。
R2015a用のサンプルコードで実行することができました。
バージョン違うだけだったのですね。お恥ずかしい限りです。
本当にありがとうございました。

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!