{"id":492,"date":"2013-06-21T08:36:40","date_gmt":"2013-06-21T08:36:40","guid":{"rendered":"http:\/\/bech.in\/?p=492"},"modified":"2021-10-22T16:02:34","modified_gmt":"2021-10-22T16:02:34","slug":"end-course-project-4","status":"publish","type":"post","link":"http:\/\/bech.in\/?p=492","title":{"rendered":"End-course project 4"},"content":{"rendered":"<p><strong>Date:<\/strong> 6th through 9th of June 2013<br \/>\n<strong>Participating group members:<\/strong> Kenneth Baag\u00f8e, Morten D. Bech and Thomas Winding<br \/>\n<strong>Activity duration: <\/strong>24 hours <\/p>\n<p><strong>Goal<\/strong><br \/>\nComplete the development of the behaviors of the autonomous robots.<\/p>\n<p><strong>Plan<\/strong><br \/>\nImplement the behaviors and test them one by one, then test them when they&#8217;re all running together. We might also try to add sounds to the different behaviors.<\/p>\n<p><strong>Progress<\/strong><br \/>\nAs described in an <a title=\"End-course blog entry 2\" href=\"http:\/\/bech.in\/?p=463\">earlier entry<\/a> [1] we needed five behaviors:<\/p>\n<ul>\n<li>Normal<\/li>\n<li>Hit by player robot<\/li>\n<li>Hunger<\/li>\n<li>Scared of player robot<\/li>\n<li>Avoid edges\/other robots<\/li>\n<\/ul>\n<p>We had already added some behaviors and started implementing their action() methods, which represent the actual functionality of the behaviors. Among them was the normal, hit and avoid behaviors, where the normal behavior and avoid behaviors seemed to work well.<\/p>\n<p><em>The hit behavior<\/em><br \/>\nAs we described in the <a href=\"http:\/\/bech.in\/?p=472\" title=\"End-course blog entry 3\">previous entry<\/a> [2], we had not decided how to implement the behavior of the autonomous robot when it was hit by the player robot. We had, however already implemented a relatively simple behavior where it would spin in place when hit. After some consideration we decided that we would stick with this behavior. The only thing that was changed in the behavior was that the time it would spin in place was extended as it, in its original incarnation, only spun for three seconds which seemed too short. In the end it ended up being &#8220;knocked out&#8221; for a total of eight seconds.<\/p>\n<p>The <code>action()<\/code> method for the hit behavior<\/p>\n<pre lang=\"java\" line=\"1\">\r\npublic void action() {\r\n\tsuppressed = false;\r\n\tactive = true;\r\n\tSound.playSample(new File(\"PacManDies.wav\"), 100);\r\n\tAutAnimal.fastRotation();\r\n\tAutAnimal.pilot.rotateRight();\r\n\tlong startTime = System.currentTimeMillis();\r\n\twhile (!suppressed && startTime + 8000 > System.currentTimeMillis()) Thread.yield();\r\n\tAutAnimal.slowRotation();\r\n\tAutAnimal.pilot.stop();\r\n\tactive = false;\r\n}\r\n<\/pre>\n<p><em>The scared behavior<\/em><br \/>\nWe described a scared behavior in a <a href=\"http:\/\/bech.in\/?p=463\" title=\"End-course blog entry 2\">previous entry<\/a> [1]. The idea stayed much the same as we imagined then.<\/p>\n<p>This behavior was to rely on the infra-red sensor that we mounted on the front of the autonomous robot, as we planned on using an IR ball on the player robot so the autonomous robots could differentiate between it and other autonomous robots. The autonomous robot would then, when it detects the player robot, try to run away as fast it can.<\/p>\n<p>Using the IR sensor was quite reliable as the values it returned were very consistent. After further looking into the functionality of the sensor we were confused by the fact that the sensor could return five different values with <code>getSensorValue(1), getSensorValue(2) ... getSensorValue(5)<\/code>, where we in the first test simply used the one that returned a value that seemed appropriate. After some experimenting we figured out that the sensor has multiple internal IR receivers, most likely placed in an inverted U-shape. This gave us the opportunity to decide how wide of a viewing angle the autonomous robots could have and after additional experimenting we decided to use receivers two, three and four, giving it a relatively wide viewing angle. Using all five receivers made it able to have an extremely wide viewing angle and be able to detect an infra-red source almost directly behind it, which we felt would make it hard to get close to it with the player robot. <\/p>\n<p>We imagine the sensor has viewing angles that resemble what is shown in the figure below.<br \/>\n<div id=\"attachment_555\" style=\"width: 723px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/irSensor-view-angles.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-555\" src=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/irSensor-view-angles.png\" alt=\"How we imagine the approximate viewing angles of the IR sensor are\" width=\"713\" height=\"600\" class=\"size-full wp-image-555\" srcset=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/irSensor-view-angles.png 713w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/irSensor-view-angles-300x252.png 300w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/irSensor-view-angles-356x300.png 356w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/a><p id=\"caption-attachment-555\" class=\"wp-caption-text\">How we imagine the approximate viewing angles of the IR sensor are<\/p><\/div><\/p>\n<p>Thus our <code>takeControl()<\/code> method for the scared behavior ended up the following:<\/p>\n<pre lang=\"java\" line=\"1\">\r\npublic int takeControl() {\r\n\tif (ir.getSensorValue(2) > irThreshold || ir.getSensorValue(3) > irThreshold || ir.getSensorValue(4) > irThreshold) return 200;\r\n\treturn 0;\r\n}\r\n<\/pre>\n<p>The behavior we decided the robot would execute when detecting the player robot was to back off and turn away as fast as it could. It was implemented as shown below.<\/p>\n<pre lang=\"java\" line=\"1\">\r\npublic void action() {\r\n    suppressed = false;\r\n    AutAnimal.fastRotation();\r\n    AutAnimal.fastTravel();\r\n    int turn = Math.random() > 0.5 ? -1 : 1;\r\n    int angle = 100 + random.nextInt(60);\r\n    AutAnimal.pilot.travel(-(20+random.nextInt(30)), true);\r\n    while (!suppressed && AutAnimal.pilot.isMoving()) Thread.yield();\r\n    AutAnimal.pilot.rotate(-turn * angle, true);\r\n    while (!suppressed && AutAnimal.pilot.isMoving()) Thread.yield();\r\n    AutAnimal.slowRotation();\r\n    AutAnimal.slowTravel();\r\n}\r\n<\/pre>\n<p>Running this behavior by itself, it worked as we intended.<\/p>\n<p><em>The hunger behavior<\/em><br \/>\nThis behavior was intended to simulate a level of hunger in the autonomous robots. It would start off with the robot not feeling hunger and then slowly increase over time, at some point overtaking the normal, or idle, behavior of the robot. When this happened, the robot would start looking for food and, upon finding some food, it would eat and become satiated.<\/p>\n<p>We implemented this behavior by adding an internal state on the robot keeping track of the hunger and returning this value as its motivation value up to a max of 100.<\/p>\n<p>The implementation of the hunger state<\/p>\n<pre lang=\"java\" line=\"1\">\r\npublic Hunger() {\r\n\tThread t = new Thread() {\r\n\t\tpublic void run() {\r\n\t\t\twhile (true) {\r\n\t\t\t\thunger++;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(random.nextInt(1000)+3000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tt.setDaemon(true);\r\n\tt.start();\r\n}\r\n<\/pre>\n<p>The <code>takeControl()<\/code> method of the hunger behavior<\/p>\n<pre lang=\"java\" line=\"1\">\r\npublic int takeControl() {\r\n\tif (hunger > 100) {return 100;}\r\n\treturn hunger;\r\n}\r\n<\/pre>\n<p>As can be seen in the thread maintaining the hunger state, the hunger increases every 3-4 seconds, we chose to increase it randomly just to add more randomness to the behavior of the robot. When the robots hunger reaches a threshold, namely when its value becomes greater than that of the normal\/idle behavior, it starts moving forward at a medium pace. If the robot encounters some food it will grab it, turn a bit and move away with it. At the same time it &#8220;eats&#8221; the food, resetting the hunger to 0. The robot detects food with the color sensor mounted on the front of it.<\/p>\n<p>We described an idea of the food in <a href=\"http:\/\/bech.in\/?p=472\" title=\"End-course blog entry 3\">entry 3<\/a> [2] and the basic idea stayed the same. We did, however, choose to make the food circular instead as we tried with the square and it turned out that the robot was not always able to grab the food. This happened if it came upon the food in some specific angles.<\/p>\n<div id=\"attachment_547\" style=\"width: 5918px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0268_2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-547\" src=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0268_2.jpg\" alt=\"The &quot;food&quot; for the autonomous robots\" width=\"5908\" height=\"3264\" class=\"size-full wp-image-547\" srcset=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0268_2.jpg 5908w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0268_2-300x165.jpg 300w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0268_2-1024x565.jpg 1024w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0268_2-500x276.jpg 500w\" sizes=\"auto, (max-width: 5908px) 100vw, 5908px\" \/><\/a><p id=\"caption-attachment-547\" class=\"wp-caption-text\">The &#8220;food&#8221; for the autonomous robots<\/p><\/div>\n<p><em>Testing<\/em><br \/>\nAfter completing the different behaviors and they seemed to work well in isolated tests, we wanted to try running the robots with all behaviors running. The different behaviors should be decided upon by the arbitrator according to the returned motivation values. Inspired by the diagram by Thiemo Krink [4] we made a similar diagram depicting the motivation network in our autonomous robots, see below.<\/p>\n<div id=\"attachment_587\" style=\"width: 1614px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/motivation-network.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-587\" src=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/motivation-network.png\" alt=\"Motivation network for our autonomous robots\" width=\"1604\" height=\"599\" class=\"size-full wp-image-587\" srcset=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/motivation-network.png 1604w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/motivation-network-300x112.png 300w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/motivation-network-1024x382.png 1024w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/motivation-network-500x186.png 500w\" sizes=\"auto, (max-width: 1604px) 100vw, 1604px\" \/><\/a><p id=\"caption-attachment-587\" class=\"wp-caption-text\">Motivation network for our autonomous robots<\/p><\/div>\n<p>Running the autonomous robots we quickly noted that the robots would often get stuck on the edges of the arena and that when the robot was hungry and got to the edge of the arena it would alternate between the hungry behavior and avoid behavior rapidly, meaning that it never completed either behavior.<\/p>\n<p>The solution to the robots getting stuck on the edges of the arena was changing the avoid and scared behaviors. The way these behaviors worked was that they had the robot back off when it saw an obstacle\/the player robot and turning. We changed these behaviors to, instead of backing up and turning, they would turn and move forward. This made the functionality of the robots much more reliable because the initial functionality of the behaviors had the robots &#8220;running blind&#8221; when executing these behaviors as they could not rely on the sensors, which were all front-mounted. Changing the behaviors to have the robot moving forwards instead of backwards enabled the robot to, once again, rely on its sensors so it did not bump into obstacles and get stuck on edges. Essentially we established that the robots should never move backwards as it would basically have no idea what it was doing.<\/p>\n<p>To have the robot not rapidly switch between some behaviors that could interrupt each other we implemented an additional motivation value in some of the behaviors that would be returned when the behavior was already active.<br \/>\nThus we ended up with the following motivation values:<\/p>\n<table>\n<tbody>\n<tr>\n<td>Behavior<\/td>\n<td>Motivation value<\/td>\n<\/tr>\n<tr>\n<td>Normal<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>Scared<\/td>\n<td>0, 200 (IR sensor), 105 (active)<\/td>\n<\/tr>\n<tr>\n<td>Hit<\/td>\n<td>0, 300 (touch sensor), 205 (active)<\/td>\n<\/tr>\n<tr>\n<td>Avoid<\/td>\n<td>0, 125 (ultrasonic\/color sensor), 205 (active)<\/td>\n<\/tr>\n<tr>\n<td>Hunger<\/td>\n<td>0-100<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>After implementing this functionality the problems with &#8220;competing&#8221; behaviors was solved.<\/p>\n<p><em>Problems with the color sensor<\/em><br \/>\nAfter running the autonomous robots successfully multiple times we noticed that the robots were suddenly unable to differentiate between the light area and dark area of the arena which we used to tell when the robots were at the edge. After some experimenting we figured out that the cause of the inconsistencies in the color sensor was caused by a change in lighting in the room, it seemed that it got too light in the room when it was cloudy for the color sensor to be able to tell the light area from the dark. This meant that the robot would simply rotate in place since that was the initial part of the avoid behavior.<\/p>\n<p>To solve this problem we mounted shielding around the color sensor which made the readings of the sensor reliable once again. <\/p>\n<div id=\"attachment_549\" style=\"width: 6530px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0273_2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-549\" src=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0273_2.jpg\" alt=\"The color sensor before and after adding light shielding\" width=\"6520\" height=\"4928\" class=\"size-full wp-image-549\" srcset=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0273_2.jpg 6520w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0273_2-300x226.jpg 300w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0273_2-1024x773.jpg 1024w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0273_2-396x300.jpg 396w\" sizes=\"auto, (max-width: 6520px) 100vw, 6520px\" \/><\/a><p id=\"caption-attachment-549\" class=\"wp-caption-text\">The color sensor before and after adding light shielding<\/p><\/div>\n<p>This, however, presented a new problem: The shielding on the sensor had to be very close to the ground in order to function properly. This meant that the sensor was now not able to hover above the red Lego plates that protruded from the &#8220;food&#8221;, the shielding would hit it. Thus the robot would simply push the food in front of it and never detect it when hungry.<\/p>\n<div id=\"attachment_571\" style=\"width: 2459px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0276_2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-571\" src=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0276_2.jpg\" alt=\"The problem we encountered with the &quot;food&quot; after mounting light-shielding to the colorsensor\" width=\"2449\" height=\"816\" class=\"size-full wp-image-571\" srcset=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0276_2.jpg 2449w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0276_2-300x99.jpg 300w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0276_2-1024x341.jpg 1024w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0276_2-500x166.jpg 500w\" sizes=\"auto, (max-width: 2449px) 100vw, 2449px\" \/><\/a><p id=\"caption-attachment-571\" class=\"wp-caption-text\">The problem we encountered with the &#8220;food&#8221; after mounting light-shielding to the colorsensor<\/p><\/div>\n<p>To solve this new problem we exchanged the protruding Lego disk from the food to one made of cardboard which was thin enough that sensor could once again go over it and detect it.<\/p>\n<div id=\"attachment_548\" style=\"width: 6298px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0270_2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-548\" src=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0270_2.jpg\" alt=\"The &quot;food&quot; for the robots with the Lego base exchanged for one made of cardboard\" width=\"6288\" height=\"3264\" class=\"size-full wp-image-548\" srcset=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0270_2.jpg 6288w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0270_2-300x155.jpg 300w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0270_2-1024x531.jpg 1024w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/DSC_0270_2-500x259.jpg 500w\" sizes=\"auto, (max-width: 6288px) 100vw, 6288px\" \/><\/a><p id=\"caption-attachment-548\" class=\"wp-caption-text\">The &#8220;food&#8221; for the robots with the Lego base exchanged for one made of cardboard<\/p><\/div>\n<p><em>Adding sound<\/em><br \/>\nWe wanted to try adding some sound to the game to make it more entertaining. Playing sound on the NXT is very simple when using wave files as you simply use the <code>Sound.playSample(\"file\")<\/code> method. The largest problem in this regard is the very limited Flash memory of 256KB, where the lejOS firmware seems to take up about 100KB. We tried adding two different small wave files that we found and noted that the NXT brick was only able to play one of them. The cause of this was that the NXT was only able to play 8-bit samples and one of them was, most likely, a 16-bit sample. Also worth mentioning is that the speaker on the NXT does not seem to be of a very good quality and thus good quality sound samples are probably wasted on it. We used this to our advantage, using the program Switch Sound File Converter[3], to reduce the quality, and also size, of sound samples and at the same time converting them to 8-bit samples. This gave us the chance to have multiple sound samples on each robot as the sound samples were usually in the 50-100KB range even if they were less than a second long since drastically reducing the sample rate did the same to the file size, often reducing the file to 5-10KB.<\/p>\n<p>As the NXT seems to play sounds in a separate thread we also did not have to worry about it blocking the program on the robot and thus we could simply add in a sound where we wanted it without needing any major changes in the program. So far we added an eating sound when the robot finds food and a sound when the robot is hit.<\/p>\n<p><strong>Backlog<\/strong><br \/>\nThe autonomous robots are now working as we intended. We might try to find some more sounds to play on the robots when they are executing different behaviors but this will probably not be prioritized. We still need to finish construction on the remote controlled player robot which we will work on next time. The program for the remote controlled robot is mostly working, but we still need to experiment with its &#8220;weapon&#8221; and figure out how much the motor will need to rotate and whether it can properly &#8220;knock out&#8221; the autonomous robots. Additionally we might try to find some sound samples to play on the remote controlled robot.<\/p>\n<p><strong>Lego Digital Designer<\/strong><br \/>\nWe have constructed a model of the autonomous robot in Lego Digital Designer, available at <a href=\"http:\/\/code.bech.in\/digital_control\/lab15\/AutAnimal.lxf\" title=\"LDD of our Autonomous Animal\" target=\"_blank\" rel=\"noopener\">http:\/\/code.bech.in\/digital_control\/lab15\/AutAnimal.lxf<\/a>.<br \/>\n<div id=\"attachment_620\" style=\"width: 1132px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/AutAnimal.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-620\" src=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/AutAnimal.png\" alt=\"The autonomous robot constructed in Lego Digital Designer\" width=\"1122\" height=\"601\" class=\"size-full wp-image-620\" srcset=\"http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/AutAnimal.png 1122w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/AutAnimal-300x160.png 300w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/AutAnimal-1024x548.png 1024w, http:\/\/bech.in\/wp-content\/uploads\/2013\/06\/AutAnimal-500x267.png 500w\" sizes=\"auto, (max-width: 1122px) 100vw, 1122px\" \/><\/a><p id=\"caption-attachment-620\" class=\"wp-caption-text\">The autonomous robot constructed in Lego Digital Designer<\/p><\/div><\/p>\n<p><strong>References<\/strong><br \/>\n[1] <em>End-course project 2<\/em>, <a href=\"http:\/\/bech.in\/?p=463\" title=\"End-course project 2\" target=\"_blank\" rel=\"noopener\">http:\/\/bech.in\/?p=463<\/a><br \/>\n[2] <em>End-course project 3<\/em>, <a href=\"http:\/\/bech.in\/?p=472\" title=\"End-course project 3\" target=\"_blank\" rel=\"noopener\">http:\/\/bech.in\/?p=472<\/a><br \/>\n[3] http:\/\/www.nch.com.au\/switch\/index.html<br \/>\n[4] Thiemo Krink (in prep.), <em><a href=\"http:\/\/legolab.cs.au.dk\/DigitalControl.dir\/Krink.pdf\" target=\"_blank\" rel=\"noopener\">Motivation Networks &#8211; A Biological Model for Autonomous Agent Control<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Date: 6th through 9th of June 2013 Participating group members: Kenneth Baag\u00f8e, Morten D. Bech and Thomas Winding Activity duration: 24 hours Goal Complete the development of the behaviors of the autonomous robots. Plan Implement the behaviors and test them &hellip; <a href=\"http:\/\/bech.in\/?p=492\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-digicon"],"_links":{"self":[{"href":"http:\/\/bech.in\/index.php?rest_route=\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bech.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bech.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bech.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/bech.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=492"}],"version-history":[{"count":53,"href":"http:\/\/bech.in\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions"}],"predecessor-version":[{"id":774,"href":"http:\/\/bech.in\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions\/774"}],"wp:attachment":[{"href":"http:\/\/bech.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bech.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bech.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}