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 sir. I am a c/c++ programming expert. I've mastered almost algorithm. I am very interesting in your project and I am sure I can do it. Hope to meet and have a talk. Thank you.
3 фрилансеров(-а) в среднем готовы выполнить эту работу за $20
Dear sir. I am a c++/c programming expert. I've mastered almost data structure and algorithm. I've carefully read your description and I am sure I can do your project perfectly. Hope to meet and have a talk. Thank you.