This weeks meeting consisted of a two hour trial and
error debugging session, I spent a couple days creating a basic frame work for
the animation of Random Motion algorithm.
The problems encountered was basically, that the robot was selecting points towards
the obstacle causing further collision.
The way we fixed this is by using the coordinate system to our advantage. If
the obstacles position and robots position combined through subtraction
produces a negative number than select a random x greater than the current
position.
Same procedure is followed for the x axis. Now the animation works accordingly
for two robots.
Next step is to generalize that animation for N robots.
We need to create an array list of robots as wells an array of current positions
of N*2 dimensions. The reason for this is that currently each Robot has its
owns list of where the robots are being held and each time one moves he calls
the other robots position .
For programming purposes (minimization of memory) we are going to create a
robot class reachable array that is updated with every movement of a robot and
used by each robot to detect collision.
Since Arie and I were having java syntax and logic
errors we decided to continue working on the programming while Mindy began working
on WebPage design. Mindy’s new job was basically
setting up format and structure of the webpage as well as prepping for applet
implementation.
So far the applet can’t be loaded up on a webpage. But we are still working on
it. Our goal before our next meeting is to figure out a way to generalize the
program we have now so that it is applicable for n robots and to further design
the webpage to have functional by late November.