{"id":9241,"date":"2024-10-07T10:26:46","date_gmt":"2024-10-07T09:26:46","guid":{"rendered":"https:\/\/dronesonen.usn.no\/?p=9241"},"modified":"2024-10-07T10:26:46","modified_gmt":"2024-10-07T09:26:46","slug":"blog-7-moving-targets-inc","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=9241","title":{"rendered":"Blog 7 \u2013 Moving Targets Inc."},"content":{"rendered":"\n<p>30.09.2024 \u2013 06.10.2024<\/p>\n\n\n\n<p>\u201c<em>The only limit to our realization of tomorrow will be our doubts of today<\/em>\u201d<\/p>\n\n\n\n<p>-Franklin D. Roosevelt<\/p>\n\n\n\n<p><strong>Group Summary<\/strong><\/p>\n\n\n\n<p>Dearly beloved,<\/p>\n\n\n\n<p>the mid-term presentation went smoother than silk, and hopefully Fredriks exam that day went equally the same way. This week has been slightly more laidback than usual, mostly due to different team members having to re-take exams on different days of the week. Naturally an exam will always be given first priority, so we decided to turn down the pace a little so nobody would fall behind. We still have done some practical work though, so we have not all taken a vacation this week (except for our group leader). Hans and Kadir have started designing 3D models of the turret system that will be shooting back at the player using computer vision, while Robin is spending his vacation trying to transfer his simulations into working code.<\/p>\n\n\n\n<p><strong>Individual Summaries<\/strong><\/p>\n\n\n\n<p><strong>Eirik <\/strong>(Data):<\/p>\n\n\n\n<p>Though I have not re-taken any exams this week, I have been focusing more on my other subjects than smart systems this week. However, I have looked at the Histogram of Oriented Gradients (HOG) algorithm that is used to describe images based on gradients directions and magnitudes as can be seen in the illustration. This can be interpreted to recognize an entire human body rather than just the face, which is more practical given the distance between system and player.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"400\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-15.png\" alt=\"\" class=\"wp-image-9243\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-15.png 200w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-15-150x300.png 150w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/figure>\n\n\n\n<p><strong>Robin<\/strong> (Data):<\/p>\n\n\n\n<p>This week I\u2019ve had an exam and are currently on vacation, so my work is heavily affected by those.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"398\" height=\"531\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-16.png\" alt=\"\" class=\"wp-image-9244\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-16.png 398w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-16-225x300.png 225w\" sizes=\"auto, (max-width: 398px) 100vw, 398px\" \/><\/figure>\n\n\n\n<p>So, what I am working on now is transferring the simulations into code that can be used on the real system.<\/p>\n\n\n\n<p>Earlier I have used two parameters that decides how fast and in what direction the target move, however in the real system, we will try to have an origo (0,0) and then count the steps to know the exact position the target will be at when moved. An example of this would be if it starts in position (0,0) and motor A moves 20 steps and motor B moves 10 steps.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"348\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-17.png\" alt=\"\" class=\"wp-image-9245\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-17.png 709w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-17-300x147.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<p>I have also started to investigate methods for creating curves in the movement. One way I\u2019ve thought about doing it starting one engine faster and steadily decrease while the other motor is starting at a lower speed and steadily increasing the speed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"381\" height=\"382\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-18.png\" alt=\"\" class=\"wp-image-9246\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-18.png 381w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-18-300x300.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-18-150x150.png 150w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/figure>\n\n\n\n<p>I have yet to test this, but it could look something like this:<\/p>\n\n\n\n<p>aNrOfSteps = 40<\/p>\n\n\n\n<p>bNrOfSteps = 20<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"539\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-19.png\" alt=\"\" class=\"wp-image-9247\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-19.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-19-300x211.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p>This code is still very flawed, as the time it will travel has not been accounted for, but as a base of concept, I believe I\u2019m on the right path. The safest way of creating this would be to make different arrays for different number of chain points which would be filled with numbers we know work with the amount of chain points.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"357\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-20.png\" alt=\"\" class=\"wp-image-9248\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-20.png 384w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-20-300x279.png 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/figure>\n\n\n\n<p>Next, I would like to change how the boundaries I have implemented works. Right now, they are just listed like below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"458\" height=\"119\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-21.png\" alt=\"\" class=\"wp-image-9249\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-21.png 458w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-21-300x78.png 300w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><\/figure>\n\n\n\n<p>In simulations I just did a check to see if it hit the wall and if the target hit the wall, it would just slide along it. However, a way safer system would be to calculate this into the creation of the target speed, this could ensure it would never hit the wall at all. This might be quite simple to do in a straight vector, as we will know what the different boundaries will be in our real implementation, calculating this in a curve is way more complicated and needs to be further investigated.<\/p>\n\n\n\n<p><strong>Fredrik <\/strong>(Data):<\/p>\n\n\n\n<p>I didn\u2019t do alot this week, due to an exam and other classes.<\/p>\n\n\n\n<p><strong>Vetle <\/strong>(Electrical):<\/p>\n\n\n\n<p>This week I have been busy with exams and assignments, so I have not had a lot of time to spend on the project this week.<\/p>\n\n\n\n<p><strong>Kadir <\/strong>(Mechanical):<\/p>\n\n\n\n<p>This week I worked on the player shooter system. After reviewing several design, we went for a design that is a turret with laser to target the player. Me and Hans also worked together to draw mounts for the new engine and, wheels.<\/p>\n\n\n\n<p>I am also training to simulate and perform Fem analysis.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"348\" height=\"331\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-22.png\" alt=\"\" class=\"wp-image-9250\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-22.png 348w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-22-300x285.png 300w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"339\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-23.png\" alt=\"\" class=\"wp-image-9251\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-23.png 362w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-23-300x281.png 300w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<p>Combined drawing Hans and Kadir :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"477\" height=\"424\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-24.png\" alt=\"\" class=\"wp-image-9252\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-24.png 477w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-24-300x267.png 300w\" sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/figure>\n\n\n\n<p><strong>Hans <\/strong>(Mechanical):<\/p>\n\n\n\n<p>This week we landed on a set of motors for our system.<\/p>\n\n\n\n<p>It has also been drawn new fastening material (With Kadir) that fits the profiles supplied by USN.<br>Working on Fem Analyses.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"261\" height=\"226\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-25.png\" alt=\"\" class=\"wp-image-9253\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"261\" height=\"213\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-26.png\" alt=\"\" class=\"wp-image-9254\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"312\" height=\"657\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-27.png\" alt=\"\" class=\"wp-image-9255\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-27.png 312w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2024\/10\/image-27-142x300.png 142w\" sizes=\"auto, (max-width: 312px) 100vw, 312px\" \/><\/figure>\n\n\n","protected":false},"excerpt":{"rendered":"<p>30.09.2024 \u2013 06.10.2024 \u201cThe only limit to our realization of tomorrow will be our doubts of today\u201d -Franklin D. Roosevelt Group Summary Dearly beloved, the mid-term presentation went smoother than silk, and hopefully Fredriks exam that day went equally the same way. This week has been slightly more laidback than usual, mostly due to different [&hellip;]<\/p>\n","protected":false},"author":106,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9241","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/9241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9241"}],"version-history":[{"count":1,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/9241\/revisions"}],"predecessor-version":[{"id":9256,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/9241\/revisions\/9256"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}