Program NXT to write/draw in MATLAB

1 回表示 (過去 30 日間)
Nourhan
Nourhan 2014 年 10 月 22 日
コメント済み: Jon Boerner 2014 年 10 月 23 日
Hi guys. I was wondering if anyone knew how to program the NXT to write/draw. I have programmed the NXT motors to drive and the writing arm to go up and down. But I have no idea how to program it to write a word or to make it draw vectorized images. I would really appreciate some help.
Thanks in advance

回答 (1 件)

Jon Boerner
Jon Boerner 2014 年 10 月 23 日
This is a pretty open-ended question that does not have a straightforward answer. The short answer is that you will probably want to create some sort of path planning algorithm that converts the words/images into a set of waypoints. Then you will want to create a controller for that robot that hits all of those waypoints. An example controller might be something like:
  1. Turn so you are facing the next waypoint
  2. Drive straight the correct distance to the waypoint
  3. Go back to (1.) and repeat until all waypoints are reached
The tricky part then is accounting for where the marker or pen is on the robot. If it is at the center of rotation, that would make things easier, otherwise you would have to account for it moving while rotating.

カテゴリ

Help Center および File ExchangeRobotics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by