Touchbot: Fix the imports in the gesture scripts

Previously, when you ran the robot examples and gesture scripts,
python would throw errors about not being able to find modules, etc.
You would have to modify every one to get it to run and change your
environment variable PYTHONPATH.  There was a script already in place
that was trying to get around this "acmescript.sh" but it didn't really
work quite right.  This patch fixes these, so now you can actually run
the example code/gestures.  Additionally, this makes adapting them into
other more useful scripts far easier.  To further simplify the process,
the "examples" and the "gestures" directories have been merged.  They
both used the same acmescript.sh and Makefile and did essentially the
same thing, so instead of fixing each individually, I just merged them
into a single "gestures" directory.

Additionally, now that the libraries are actually getting imported
correctly, a compilation error in program.py was uncovered.  This patch
fixes an indentation error in there too.

BUG=chromium-os:34809
TEST=Connect to robot.  From the platform/touchbot/gestures directory,
run "make" which should make a shell script wrapper for the python
scripts in the folder.  Then run "basic" (one of these generated
scripts) and it should run without error, and the robot should actually
respond, etc.

Change-Id: I98932db8c10996ae6ac36c6b4dc3825bb25d0762
Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/34345
Reviewed-by: Mark Koudritsky <kamrik@chromium.org>
6 files changed
tree: 3ab2314f047180d66e563e52dc36de2de233fba2
  1. README
  2. devices/
  3. documentation/
  4. gestures/
  5. roibot/
  6. test/