Society of Robots - Robot Forum

Software => Software => Topic started by: Danial on August 31, 2011, 04:55:34 PM

Title: converting paint to hex
Post by: Danial on August 31, 2011, 04:55:34 PM
Hi

I'm planning to make a patrolling robot(it is not remote controlled , I have to draw a way for it to follow). Because I'm not the user of this robot and those who are going to use are not robot programmers I have to design an easy to use GUI. I want to make a program like Microsoft paint so the user just draw the patrolling path and upload the output on the robot.

1.How can I convert my drawing to something which can be programmed on my PIC? Do I have to make a compiler?  ???

2.Because the maps Robot is working on are a bit large I think G codes can be helpful . Dose anyone have a better idea to save my PIC memory?

 in fact the robot is going to be a cleaner ;)
Title: Re: converting paint to hex
Post by: newInRobotics on September 01, 2011, 12:42:40 AM
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:

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.
Title: Re: converting paint to hex
Post by: Danial on September 01, 2011, 04:13:18 PM
I googled for "interpreting C++ to hex" but I couldn't find anything useful(I think it's because of my poor English) Would you help me how to start? am I searching for the right stuff ?
I would suggest using GPS
GPS Module are very expensive in resolution I need, so I'm going to use Compass Modules and of course encoders to eliminate errors as you said.
thank you. 
Title: Re: converting paint to hex
Post by: newInRobotics on September 02, 2011, 12:23:47 AM
I googled for "interpreting C++ to hex" but I couldn't find anything useful(I think it's because of my poor English)
Ha ha  ;D Your English has nothing to do with it. It is simply not very common to translate bitmap to coordinates (atleast not that I know). I doubt You will find software ready made for that task, hence You have to do it Yourself. Can You program in Java/C/C++/C# or anything similar? If so, You have to write an algorithm to do things stated in the previous post.

am I searching for the right stuff ?
I don't know, You tell me  ;D

[...] I'm going to use Compass Modules [...]
Comapss is good solution as well. When I think of it, it is better solution than a gyro.