In each step, the vehicle can move by rotation or [login to view URL] are given the vehicle shape, its start and target position and orientation, and the list of all [login to view URL] discrete the free space,and find by BFS a path with minimum number of steps from the start to the target position. You show the path you found, as well as the obstacles, in a window using the xlib interface. Choose colors and linewidths to make the graphic output easy to understand. All coordinates are integers.
The name of the input file is a command line argument of your program. The file contains first, a line with the description of the vehicle, of the form:
V (-6 , -3) (-6, 3) (10 , 0)
The center of the vehicle is always assumed to be the point (0,0), and any rotation is performed around that point. The next two lines give the start and target positions, as the translation and rotation of the center:
S (50 , 50) 20
T (70 , 400) 90
This is followed by the list of triangular obstacles:
0 (100 , 100) (100 , 130) (150 , 110)
All the motion and obstacles happen inside a bounding box of 500 by 500.
The programming language is C or C++ and the code must be able to compile using gcc or g++ compiler.
Dear Employer Hello Dear Employer I just have checked the job post and I think I am a right candidate for your job. I have extensive experience working with C/C++/BFS Algorithm, so I am sure that I can help you pe Daha Fazla