1.How can I convert my drawing to something which can be programmed on my PIC?
First thing that comes to my head is to:
- Define real world distance match of one pixel of the drawing; say 1px = 1cm.
- Find corners in the path in the image. Now You can get direction and length of the vector (one part of full path)
- When You have all vectors of Your path then You can write these vector coordinates to the uC.
Do I have to make a compiler?
Yes You do. I would call it interpreter rather than compiler.
The idea is good, however it is more complicated than that. Your robot has to have some sort of understanding about where it is, hence it has to have some sort of reference to the outside world. This is necessary to eliminate error buildup. I would suggest using GPS, that way Your robot knows exactly where in the world it is and where it has to be. Or You can use gyro to calculate rotation errors and compensate for them. What is dead necessary for this project is to have wheel shaft encoder, otherwise Your robot will not know how far/fast it is going.
I hope it does make sense.
Good luck.