Robotic Cartography Part 6: Graphical Display Code

Rover Robot

I used the Processing programming language and IDE to write DisplayPathway, a program that communicates serially with the Arduino Uno and receives the position data recorded during the execution of NavigateObstacles. The program receives data in the form of (distance,angle) pairs that represent the robot’s movement vectors. DisplayPathway then calculates approximate stopping points along the robot’s path and plots lines between the points representing the robot’s approximate path (see Introduction).

Processing is an open source language based on Java, and a free IDE for OS X, Windows, or Linux can be downloaded here. I like Processing because its IDE behaves exactly in the same way as the Arduino IDE, and so learning and using both languages is quite easy. Documentation for the processing language can be found here.

See my github repository for the graphical display code: https://github.com/alexhagiopol/public

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s