{"id":1302,"date":"2010-03-01T17:28:28","date_gmt":"2010-03-02T01:28:28","guid":{"rendered":"https:\/\/mathpirate.net\/log\/?p=1302"},"modified":"2010-03-01T17:28:28","modified_gmt":"2010-03-02T01:28:28","slug":"achievement-unlocked-big-truck-of-fail","status":"publish","type":"post","link":"https:\/\/mathpirate.net\/log\/2010\/03\/01\/achievement-unlocked-big-truck-of-fail\/","title":{"rendered":"Achievement Unlocked: Big Truck Of Fail"},"content":{"rendered":"<p><a href=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/03\/BigTruckOfFail1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1303\" title=\"BigTruckOfFail1\" src=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/03\/BigTruckOfFail1-300x53.jpg\" alt=\"\" width=\"300\" height=\"53\" srcset=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/03\/BigTruckOfFail1-300x53.jpg 300w, https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/03\/BigTruckOfFail1.jpg 540w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>That&#8217;s it.\u00c2\u00a0 I&#8217;m calling it.\u00c2\u00a0 This Crazy Project Weekend is over.<\/p>\n<p>And it&#8217;s a big truck of fail.<\/p>\n<p>The biggest problems are the motors.\u00c2\u00a0 They just don&#8217;t do what I tell them to do.\u00c2\u00a0 If they did, this would be a different story.\u00c2\u00a0 But I&#8217;ve spent over\u00c2\u00a0three days tweaking the motors and the robotics and I just can&#8217;t get it working.\u00c2\u00a0 Maybe I can get a Stelladaptor and try tweaking it with direct feedback.\u00c2\u00a0 Maybe I&#8217;d be able to do continuous smooth motion if I could have tracked all the bombs properly.\u00c2\u00a0 Maybe I just don&#8217;t know what I&#8217;m doing.<\/p>\n<p>At least I was able to identify the playfield elements and get the computer to tell what the next move should be, even if I couldn&#8217;t actually get it to make that move.\u00c2\u00a0 The basic recognition and logic was a lot easier than it was for Pong, mainly because trajectories didn&#8217;t really matter.\u00c2\u00a0 However, I wasn&#8217;t quite able to get the bomb tracking\/prediction logic working, which would have reduced the tendency for the robot to get distracted temporarily and miss a bomb.\u00c2\u00a0 The full tracking also would have made it possible to detect patterns and move smarter.\u00c2\u00a0 I also get the feeling that there&#8217;s something already in OpenCV that would have taken care of the object detection and motion tracking for me.\u00c2\u00a0 That library is so big and I&#8217;m not a computer vision expert, so I don&#8217;t really know what&#8217;s there or how to use it all.\u00c2\u00a0 The book and the documentation aren&#8217;t always enough.<\/p>\n<p>And then that virus.\u00c2\u00a0 Stupid virus.\u00c2\u00a0 Make me waste half a day because the bloody computer stops working.\u00c2\u00a0 THAT WAS AWESOME.<\/p>\n<p>The segmented auto-calibration thing did work.\u00c2\u00a0 I was able to adjust the robot power and swap out gears and the calibration generally figured out the new pixel\/degree ratio.\u00c2\u00a0 If the motors were more consistent, then it probably would have worked better.\u00c2\u00a0 At any rate, that&#8217;s a decent technique that I&#8217;ll have to remember for the future.\u00c2\u00a0 And I&#8217;ll have to clean up the code for it, right now it&#8217;s kinda messy.<\/p>\n<p>In the end, I did not accomplish what I set out to do.\u00c2\u00a0 The best score the robot ever got was 63, and that was a fluke.\u00c2\u00a0 And I didn&#8217;t even get close to trying to get it to play on a real TV.<\/p>\n<p><a href=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/03\/BigTruckOfFail2.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1304\" title=\"BigTruckOfFail2\" src=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/03\/BigTruckOfFail2-300x55.jpg\" alt=\"\" width=\"300\" height=\"55\" srcset=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/03\/BigTruckOfFail2-300x55.jpg 300w, https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/03\/BigTruckOfFail2.jpg 477w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>That&#8217;s it.\u00c2\u00a0 I&#8217;m calling it.\u00c2\u00a0 This Crazy Project Weekend is over. And it&#8217;s a big truck of fail. The biggest problems are the motors.\u00c2\u00a0 They just don&#8217;t do what I tell them to do.\u00c2\u00a0 If they did, this would be a different story.\u00c2\u00a0 But I&#8217;ve spent over\u00c2\u00a0three days tweaking the motors and the robotics and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[125],"tags":[126,17,15,31,14,77,20,19,23,28,238],"_links":{"self":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/1302"}],"collection":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/comments?post=1302"}],"version-history":[{"count":2,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/1302\/revisions"}],"predecessor-version":[{"id":1306,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/1302\/revisions\/1306"}],"wp:attachment":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/media?parent=1302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/categories?post=1302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/tags?post=1302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}