DOCUMENTATION
The Source Code has been written in Java and the interface has been made using OPENGL. In keeping with the Object Oriented Programming technique we have defined the following OBJECTS:
- Point
- Edge
- Road
- Robot
- Obstacle
- Proj (it calls all the classes)
In class Obst following functions are defined
In class Robot following functions are defined
- public Obst( Vector pVect1)
- // To print the coordinates of the obstacles: void print_coordinates()
- // To move the vehicle ahead after 0.1 sec: void move_ahead( double time)
- // The theeta given is the direction of the velocity: double get_poten( double theeta, Point point)
- // To transform the given point
- // calculating the coordinates after rotating the axes by theeta
- // Calculating the index of topmost, lowermost, leftmost and rightmost in new coordinate system
- void makeEdges()
- boolean equal_to( double x, double y)
- //Creates CSpace: void createCObst( Robot robot)
- // To find the topmost point in the robot
- // To find the lowermost point in the obstacle
- // to arrange the edges in the ascending order of their angle with respect to x-axis
- // To find the cs_pVect
- // To print the points of the c_obstacle
In class Proj following functions are defined
- public class Robot
- // pvect1 here is assumed that point A is in the first position and then in clockwise direction
- //Print the coordinates of the robot: void print_coordinates()
- // To move the robot ahead: void move_ahead( double x_dist, double y_dist)
- // Rotating the car (ie. robot)
- // changing the position of the robot
- public static void main( String args[])
- // Initialising the robot
- // To calculate the speed of the robot
- // To calclulate the next position of the robot
- // To print the speed of robot
- // To move the obstacle
- // To print the coordinates of the robot and Obstacles : robot.print_coordinates()
- double get_total_poten( Road roadLeft, Road roadRight, Vector all_obstac le, Point point, double theeta)
/ Introduction / Literature Review / Methodology / Example/ Main Menu / References /