I've come across ARC in my hopeless search for making my AR.Drone do things. And in my googling I saw this program with some really cool projects made in it (all kinds of robots including R2 <3) so I got it right away and started some projects. I managed to control it with the KB, cool! After that I managed to write a little script that made it fly around, cool (when it worked). Now I'm stuck at trying to make it follow things without crashing into every wall/tree on the planet. So I've made a simple project with a Camera control and a movement panel.
-While derping around playing with the camera tracking options I noticed a huge first problem: the camera processing power is too low for no reason. ARC sits around 30% CPU usage in task manager and yet I'm getting around 12fps with color tracking. In HAAR tracking it sits at 1 fps with ~2s latency, again, with <20% cpu usage in task manager.
-I said okay, I can work with 12 FPS, let's give it a try. So I made this basic object tracking script that runs when the camera tracks something:
Link to script
In theory it should work fine with the grid maxed inside (no middle, just top-left, top-right, bottom-left, bottom-right) and 640x480 resolution, or at least I should see the drone struggle at keeping the red pig (my stupid object) in sight. But here's the second problem: the signals sent from the camera module to the Movement Panel are not processed properly, some, well, the majority of them are skipped entirely(confirmed by wireshark). So the drone ended up beating every wall in the room. I don't know if it's a bug or a feature (for not making the pc catch fire) but I felt like I needed to address the issue. Also, the grid lines reset at a weird position after reopening the project.
So, the question: I know I must be doing something wrong but can someone please help me get around these problems? I've tried all sorts of stuff, from urbi to ros and everything seems to spit errors all over the place so you are my last hope in making something really cool out of a toy :3
Below is a SS with pc specs+haar tracking+task manager and the project file