Sat Aug 04, 2018 9:01 pm
I wrote my first navigation/collision avoidance program in c++...I wrote it on my windows laptop (1.6ghz, 8gb ram, 64 bit, windows 10) in visual studio - intended to end up in my robot. Since it was my own code (based on A Star algorithm) I knew it wouldn't be the most efficient, but it was taking 1-5 minutes to find a path when run from visual studio. I was afraid this would translate to 10-30 minutes on the rpi in my robot, so I uploaded the exact same program to a PI3, added a stopwatch to each, and ran it with the exact same inputs (start, target, simulated obstacles). Much to my surprise, the windows machine was still running and the PI3 found a path almost instantly - way less than a second. I tried a few times and each time, both machines return the same waypoint list, but the pi is faaaaast and the windows machine is like snail-mail (typical - windows 120 seconds, RPI <1 second). I presume this has something to do with visual studio and not the hardware, but I am curious....who knows why this is happening? Is there anything I can do to make the windows machine run the program fast like that? I don't have a bunch of other stuff running except Chrome (that I know of...I have recently run Malwarebytes). This can't all be because of bloatware...can it? The machine runs fine for all my other purposes.
Robotics tips, hacks, book extras https://youtube.com/practicalrobotics