<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Siddhant Shrivastava</title>
  <link href="https://sidcode.github.io/feeds/all.atom.xml" rel="self"/>
  <link href="https://sidcode.github.io/"/>
  <id>https://sidcode.github.io/feeds/all.atom.xml</id>
  <updated>2026-11-15T16:00:00.000Z</updated>
  <author><name>Siddhant Shrivastava</name><uri>https://sidcode.github.io/</uri></author>
  <entry>
    <title>RobotX 2026</title>
    <link href="https://sidcode.github.io/letters/robotx-2026/"/>
    <id>https://sidcode.github.io/letters/robotx-2026/</id>
    <published>2026-11-15T16:00:00.000Z</published>
    <updated>2026-11-15T16:00:00.000Z</updated>
    <category term="robotics"/><category term="singapore"/><category term="competitions"/>
    <summary>Team MARVL from SUTD went into the 2026 Maritime RobotX Challenge in Singapore with only its BlueBoat and finished 4th out of 22 teams. How the week went, and how the boat works.</summary>
    <content type="html">&lt;p&gt;The &lt;a href=&quot;https://robotx.org/&quot; class=&quot;external&quot;&gt;Maritime RobotX Challenge&lt;/a&gt; is a competition for autonomous boats, drones and underwater robots, run by RoboNation. The 2026 edition was at Marina Bay in Singapore, from 8 to 14 November. Our team, &lt;span class=&quot;smallcaps-auto&quot;&gt;MARVL&lt;/span&gt; from &lt;span class=&quot;smallcaps-auto&quot;&gt;SUTD&lt;/span&gt;, went in with only our BlueBoat &lt;span class=&quot;smallcaps-auto&quot;&gt;USV&lt;/span&gt; and ended up 4th overall out of 22 teams, and 2nd among the teams from Singapore. I co-led the team with A Manicka Praveen, and Prof. Malika Meghjani was our advisor.&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/letters/robotx-2026/team.jpg&quot; alt=&quot;The team in white MARVL T-shirts around the red BlueBoat, the blue BlueROV2 and the quadrotor, with Marina Bay Sands behind them&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;The team at Marina Bay with the BlueBoat, the BlueROV2 and the quadrotor.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;the-tasks&quot;&gt;The tasks&lt;a class=&quot;h-anchor&quot; href=&quot;#the-tasks&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This year’s scenario was a storm response at a coastal port, split into four tasks. Most of them are meant for more than one vehicle, so we had planned for three: the BlueBoat on the surface, a BlueROV2 underwater and a quadrotor in the air. The pool we test in closed for the year, and the quadrotor missed its qualification by a few hours. So only the boat went to the course.&lt;/p&gt;
&lt;p&gt;We picked the parts of the tasks that a boat can do alone:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Task 1, safe passage.&lt;/strong&gt; Find the buoys that carry lights, circle the entry buoy, cross the field with the red lights to starboard and the green ones to port, then circle the exit buoy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Task 3, coordinated logistics.&lt;/strong&gt; Find the dock, read which of its three bays shows a green light, dock there, and put out a fire (a lit window at the back of the bay) with a water cannon.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Task 4, dynamic incident response.&lt;/strong&gt; During a run the judges’ system can send alerts about a moving object crossing the course. The boat has to acknowledge them and stay out of the object’s way.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Every task has three tiers: Core, Advanced and Disruptive. We went for Task 3 Core, Task 1 Core and Task 4 Disruptive. Task 2 is the underwater one, so we left it out.&lt;/p&gt;
&lt;h2 id=&quot;the-week&quot;&gt;The week&lt;a class=&quot;h-anchor&quot; href=&quot;#the-week&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;First we had to pass safety validation at the event. The boat went through the physical safety checks, such as the kill switch and the status light. Our software had to pass a test against RoboCommand, the judges’ system that starts every run and receives every report from the vehicles.&lt;/p&gt;
&lt;p&gt;We were ranked 5th in design documentation (the technical report, the team website and the video we sent in before the event). That gave us a chance to book our slots on the water early.&lt;/p&gt;
&lt;p&gt;Then came the scoring rounds. At the end of them we were the top wildcard team, the next one after the top four. A wildcard team could still become a finalist by scoring 600 points in a qualifier.&lt;/p&gt;
&lt;p&gt;We passed the qualifier, after some drama. In one run we missed the moving obstacle by 5 metres, and the judges had to review that run again properly before we knew the result.&lt;/p&gt;
&lt;p&gt;After that we had a great run in our finals slot, with parts of all three tasks in it, and finished 4th out of 22.&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/letters/robotx-2026/finals-run.jpg&quot; alt=&quot;Map of one run in the finals slot: the boat&amp;#x27;s track from RunStart to the dock, then into the buoy field&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;invert&quot;&gt;&lt;figcaption&gt;One run from our finals slot, drawn from the boat&#39;s own log. It found the green bay 23 seconds after RunStart, docked at 52 seconds, reported the fire out at 81 seconds and then went on to Task 1.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;how-the-boat-works&quot;&gt;How the boat works&lt;a class=&quot;h-anchor&quot; href=&quot;#how-the-boat-works&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The boat is a Blue Robotics BlueBoat running ArduRover. It carries a Jetson Orin NX, a &lt;span class=&quot;smallcaps-auto&quot;&gt;ZED&lt;/span&gt; 2 stereo camera, a RoboSense lidar, and a water cannon on two servos with a pump.&lt;/p&gt;
&lt;p&gt;All of our code on the boat runs as one program, which we call the console. It talks to ArduRover over MAVLink, keeps a map of what the sensors see, runs the tasks and serves web pages. We open those pages on a laptop on shore to start a run and to see what the boat sees. A small second program on the laptop, the bridge, passes messages between the boat and RoboCommand.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Seeing.&lt;/strong&gt; The camera says what a thing is and what colour its light is. The lidar says where it is. Minh-Long Pham trained the detection models, and trained them again during the week on images from the course. They run as TensorRT engines on the Jetson, which took the buoy model from 374 ms a frame to 99 ms. The lidar finds buoys by their size and finds the dock by fitting its piers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Planning.&lt;/strong&gt; A grid planner (A*) finds a way through the map and keeps a clearance around every buoy. Before each move, a guard checks the boat’s path against the lidar’s own points, and turns, slows or stops the boat if something is there.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Task 3.&lt;/strong&gt; The boat finds the dock with the lidar, lines up in front of it, reads the three bay lights until one is clearly green, docks and sends its docking report. Then it sprays. The cannon fires in bursts of 5 seconds on and 5 seconds off, because the camera can only read the window while the water is off. Kaustubh Singh worked out the maths for aiming the jet.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Task 1.&lt;/strong&gt; The boat reads each buoy’s light from a still position, finds the entry and exit buoys, and plans the crossing between the red and green ones.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Task 4.&lt;/strong&gt; A moving object goes on the map as a long shape, from where it is now to where it will be in 20 seconds. Every planner treats that shape as a wall.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Simulation.&lt;/strong&gt; At home we ran the same console against ArduRover’s simulator and RoboNation’s own test server. We rehearsed a whole run there before trying it on the water. The code also has about 950 automated tests.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;what-we-fixed-during-the-week&quot;&gt;What we fixed during the week&lt;a class=&quot;h-anchor&quot; href=&quot;#what-we-fixed-during-the-week&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Most fixes came from reading the logs of the last slot before the next one. A few of them:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;People in orange vests and red flags on the pontoon behind the buoys were read as red lights. One recording had 796 red reads. We changed the boat to read a light only at the top of a buoy and to reject orange. That left 169, nearly all of them real.&lt;/li&gt;
&lt;li&gt;The boat docked in a red bay more than once. Its check on the way into the green bay said the bay was blocked, so it went to the middle bay. We fixed the check the same day.&lt;/li&gt;
&lt;li&gt;Only one task’s models fit on the Jetson’s &lt;span class=&quot;smallcaps-auto&quot;&gt;GPU&lt;/span&gt; at a time, and the buoy model takes about half a minute to load. The boat now starts loading it while it is still backing out of the dock.&lt;/li&gt;
&lt;li&gt;In the finals slot, alerts for the moving object came about twice a second, and the boat acknowledged each one more than once. The bridge sends two messages a second, so our docking report waited behind the acknowledgements and left minutes late. Between two runs we changed the boat to acknowledge the first alert and then one every 5 seconds. In the next run the docking report went out a second after docking. That is the run in the figure above.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;thanks&quot;&gt;Thanks&lt;a class=&quot;h-anchor&quot; href=&quot;#thanks&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Prof. Malika summed up our week in one word: grit. I agree with her.&lt;/p&gt;
&lt;p&gt;Thank you to my co-lead A Manicka Praveen. Divyesh Saraf had an answer to every technical problem we brought him. Minh-Long Pham did the computer vision, and Kaustubh Singh the maths for the water cannon. Jun Jie Hoo, Christopher Quah and Chester Chen looked after the hardware. Sefomi led the props, and Marc Choo and Surya led the &lt;span class=&quot;smallcaps-auto&quot;&gt;UAV&lt;/span&gt;. Thank you to Prof. Malika Meghjani for advising us, and to RoboNation, the judges, the sponsors and the partners for running the event.&lt;/p&gt;
&lt;p&gt;The team’s website, with the vehicles and the rest of our design, is at &lt;a href=&quot;https://marvl-research-lab.github.io/robotx2026/&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;marvl-research-lab.github.io/robotx2026&lt;/a&gt;.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Condo Breakeven</title>
    <link href="https://sidcode.github.io/letters/condo-breakeven/"/>
    <id>https://sidcode.github.io/letters/condo-breakeven/</id>
    <published>2026-10-31T16:00:00.000Z</published>
    <updated>2026-10-31T16:00:00.000Z</updated>
    <category term="singapore"/><category term="property"/><category term="tools"/>
    <summary>A calculator for a rented condo in Singapore. It counts stamp duty, interest, upkeep, tax, agent fees and rent, and gives the lowest price you can sell for without a loss, and when selling costs less. It runs in your browser and is open source.</summary>
    <content type="html">&lt;p&gt;If you bought a condo in Singapore (or any city with similar laws) and rented it out, there are many hidden costs to consider before deciding on an expected selling price- initial buying cost, stamp duty, monthly interest, maintenance, property tax and tax on the rent. Every new lease cost an agent fee, and something in the unit might always need fixing. The rent came in against all of that. Then when you sell, the agent, the lawyers and sometimes &lt;span class=&quot;smallcaps-auto&quot;&gt;IRAS&lt;/span&gt; take their share.&lt;/p&gt;
&lt;p&gt;I made Condo Breakeven as a fun experiment to help friends factor all this in easily. You type in your own figures, and it tells you the lowest price you can sell for without losing money. &lt;a href=&quot;https://sidcode.github.io/condo-breakeven/&quot; class=&quot;external&quot;&gt;Use it here&lt;/a&gt;. It starts with figures for a made-up unit, so you see results before you type anything.&lt;/p&gt;
&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/condo-breakeven/slider.mp4&quot; poster=&quot;/letters/condo-breakeven/slider.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;634&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Drag the price and the profit or loss changes. These are the made-up example figures, like every number on this page.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The made-up unit cost S$1,180,000 in August 2022. To sell it on 31 March 2027 without a loss, it needs at least S$1,239,188. That’s S$59,188 more than it cost, even after S$243,300 of rent.&lt;/p&gt;
&lt;h2 id=&quot;what-it-counts&quot;&gt;What it counts&lt;a class=&quot;h-anchor&quot; href=&quot;#what-it-counts&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Buying:&lt;/strong&gt; the price, buyer’s stamp duty (from the &lt;span class=&quot;smallcaps-auto&quot;&gt;IRAS&lt;/span&gt; rates), &lt;span class=&quot;smallcaps-auto&quot;&gt;ABSD&lt;/span&gt; if you paid any, and the agent, legal and valuation fees.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The loan:&lt;/strong&gt; interest, worked out month by month. Add a row each time the bank repriced your loan, and it uses the new rate from that month. Repayments of the loan itself aren’t a cost, because the sale pays off whatever is left.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Running costs:&lt;/strong&gt; maintenance, property tax, income tax on the rent, insurance, the agent fee for each lease, and one-off spending such as furniture, repairs and repainting between tenants.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rent:&lt;/strong&gt; whole months only, and only the months before the sale.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Selling:&lt;/strong&gt; the agent’s commission with &lt;span class=&quot;smallcaps-auto&quot;&gt;GST&lt;/span&gt;, legal fees, seller’s stamp duty, and the bank’s penalty if you sell before your loan’s lock-in ends.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first chart shows how each of these moves the breakeven price up or down from what you paid. For the example unit, interest is the biggest cost, and the rent covers about four fifths of all the costs.&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/letters/condo-breakeven/waterfall.jpg&quot; alt=&quot;Waterfall chart from the price paid to the breakeven price for the example unit&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;From the price paid to breakeven. Rent is the one bar that pulls it down.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;when-to-sell&quot;&gt;When to sell&lt;a class=&quot;h-anchor&quot; href=&quot;#when-to-sell&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The date can matter as much as the price. Seller’s stamp duty depends on how long you’ve owned the unit. If you bought between 11 March 2017 and 3 July 2025, it’s 12% of the price if you sell in the first year, 8% in the second and 4% in the third. If you bought on or after 4 July 2025, it’s 16%, 12%, 8% and 4% over four years. The calculator counts from the day you exercised your option to purchase.&lt;/p&gt;
&lt;p&gt;Moving the sale date shows what that costs. Selling the example unit on 30 April 2025, still in its third year, needs S$1,346,136. A month later, on 31 May 2025, it needs S$1,288,109. Waiting that one month is worth S$58,027, and almost all of it is the 4% duty. At a price of S$1,320,000, the first sale makes a loss of S$24,521 and the second a profit of S$31,196.&lt;/p&gt;
&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/condo-breakeven/saledate.mp4&quot; poster=&quot;/letters/condo-breakeven/saledate.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;634&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;The example unit’s sale date, moved one month at a time. Its third year ends on 9 May 2025.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The loan works the same way. Most banks charge a penalty if you pay off the loan during its lock-in period, often 1.5% of what you still owe. The example unit’s lock-in ends in August 2027, so selling it in March 2027 costs a S$11,533 penalty.&lt;/p&gt;
&lt;p&gt;A sale takes a few weeks to go through, and the calculator uses one date for all of it. If your date is close to one of these lines, ask your lawyer which date counts, and leave some time to spare.&lt;/p&gt;
&lt;h2 id=&quot;reading-the-charts&quot;&gt;Reading the charts&lt;a class=&quot;h-anchor&quot; href=&quot;#reading-the-charts&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The profit chart shows the profit or loss at every price around breakeven. Move the mouse over it, or drag a finger across it on a phone, to read off any price. The same numbers are also in a table under it.&lt;/p&gt;
&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/condo-breakeven/curve.mp4&quot; poster=&quot;/letters/condo-breakeven/curve.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;556&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Reading prices off the profit chart.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The bar chart puts each year’s rent next to that year’s running costs. Under it, the ledger lists every sum. It also shows how much cash reaches your bank account after the loan is paid off and your &lt;span class=&quot;smallcaps-auto&quot;&gt;CPF&lt;/span&gt; money goes back to your &lt;span class=&quot;smallcaps-auto&quot;&gt;CPF&lt;/span&gt; account. That refund isn’t counted as a cost, because the money is still yours.&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/letters/condo-breakeven/yearly.jpg&quot; alt=&quot;Rent and running costs by year for the example unit&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Rent and running costs by year. 2022 and 2027 are part years.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;what-it-leaves-out&quot;&gt;What it leaves out&lt;a class=&quot;h-anchor&quot; href=&quot;#what-it-leaves-out&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;It doesn’t count what your downpayment could have earned if you had put it somewhere else, or the interest &lt;span class=&quot;smallcaps-auto&quot;&gt;CPF&lt;/span&gt; adds to the money you took from it. It also takes your bills as you typed them. If you try an earlier sale date, remove the bills you wouldn’t have paid by then.&lt;/p&gt;
&lt;h2 id=&quot;your-figures-stay-in-your-browser&quot;&gt;Your figures stay in your browser&lt;a class=&quot;h-anchor&quot; href=&quot;#your-figures-stay-in-your-browser&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The calculator is a single &lt;span class=&quot;smallcaps-auto&quot;&gt;HTML&lt;/span&gt; file with no libraries and no server. It runs in your browser and saves your figures only in that browser, so you can close the tab and come back later. Nothing is sent anywhere. Even the fonts come from the same place as the page.&lt;/p&gt;
&lt;p&gt;The code is open source under the &lt;span class=&quot;smallcaps-auto&quot;&gt;MIT&lt;/span&gt; licence, at &lt;a href=&quot;https://github.com/sidcode/condo-breakeven&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;github.com/sidcode/condo-breakeven&lt;/a&gt;. It comes with an Excel workbook that does the same sums with formulas you can check, and a short Python script that builds the workbook, from the example or from a file of your own figures. On the example, the calculator and the workbook agree to the cent.&lt;/p&gt;
&lt;p&gt;Tax rates change. The ones here were right in November 2026, but check them with &lt;a href=&quot;https://www.iras.gov.sg/taxes/stamp-duty/for-property&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;IRAS&lt;/span&gt;&lt;/a&gt; and your bank before you decide anything. This is a calculator, not financial advice.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Makan Nation</title>
    <link href="https://sidcode.github.io/letters/makan-nation/"/>
    <id>https://sidcode.github.io/letters/makan-nation/</id>
    <published>2026-10-11T16:00:00.000Z</published>
    <updated>2026-10-11T16:00:00.000Z</updated>
    <category term="singapore"/><category term="games"/><category term="makeathon"/>
    <summary>A co-op hawker kitchen game that runs from the street stalls of the 1950s to 2065, lunch at any of NEA&#39;s 129 hawker centres, and four small apps that feed it. Made for the Common Ground Makeathon in Singapore.</summary>
    <content type="html">&lt;p&gt;Singapore is a nation that queues for its food, argues over the best chicken rice or bak chor mee and saves/chopes a table with a packet of tissue. Makan Nation is a game about celebrating that hawker culture across generations. &lt;em&gt;Makan&lt;/em&gt; is Malay for “eat”. I made it for the Culture × Tech track of the Common Ground Makeathon in Singapore: a co-op hawker kitchen that runs from the street stalls of the 1950s to Singapore’s hundredth birthday in 2065, and a customer mode where you walk into any of &lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt;’s 129 hawker centres at lunch.&lt;/p&gt;
&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/hero-maxwell.mp4&quot; poster=&quot;/letters/makan-nation/hero-maxwell.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Lunch at Maxwell Food Centre. Every clip on this page is the game, filmed in Chrome.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;It runs in the browser, on a laptop or a phone. &lt;a href=&quot;https://sidcode.github.io/makan-nation/hawker/&quot; class=&quot;external&quot;&gt;Play it here&lt;/a&gt;, or start at the &lt;a href=&quot;https://sidcode.github.io/makan-nation/&quot; class=&quot;external&quot;&gt;Common Ground lobby&lt;/a&gt;, which has the game and four smaller apps that help feed it with audio design and worldbuilding. There’s a &lt;a href=&quot;#the-film&quot; class=&quot;internal&quot;&gt;three minute film&lt;/a&gt; at the end of this letter.&lt;/p&gt;
&lt;p&gt;In 2020, Hawker Culture in Singapore was inscribed on &lt;span class=&quot;smallcaps-auto&quot;&gt;UNESCO&lt;/span&gt;’s Representative List of the Intangible Cultural Heritage of Humanity.&lt;sup&gt;&lt;a href=&quot;#fn-unesco&quot; id=&quot;fnref-unesco&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; A hawker centre is where the island’s cultures share a table, and what happens there changes with every generation. That’s what the game tries to show.&lt;/p&gt;
&lt;h2 id=&quot;revolution-of-hawker-culture&quot;&gt;(R)evolution of Hawker Culture&lt;a class=&quot;h-anchor&quot; href=&quot;#revolution-of-hawker-culture&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Every prototype I made for the makeathon reads a slice of Singapore culture in three tenses: what the archives kept, what we do with it now, and what we leave for later. In Makan Nation the tenses are eras. Each one changes the look, the prices, one rule of the kitchen and the music on the stall radio.&lt;/p&gt;
&lt;div class=&quot;width-wide&quot;&gt;&lt;div class=&quot;columns&quot; style=&quot;--cols:2&quot;&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/era-1950s-kitchen.mp4&quot; poster=&quot;/letters/makan-nation/era-1950s-kitchen.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Five-foot way, 1950s to 60s. Washing up happens in a pail, so it takes longer.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/era-1980s-kitchen.mp4&quot; poster=&quot;/letters/makan-nation/era-1980s-kitchen.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;First hawker centres, 1970s to 80s. Running water at last.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/era-today-kitchen.mp4&quot; poster=&quot;/letters/makan-nation/era-today-kitchen.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Today. Customers bring their trays back, so dirty plates arrive at tray return.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/era-2065-kitchen.mp4&quot; poster=&quot;/letters/makan-nation/era-2065-kitchen.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;SG100, 2065. A robot at the sink washes plates by itself, slowly.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Prices follow Singapore’s food inflation. SingStat’s price index puts 2024 food prices at about 5.5 times 1961’s, so a plate in the 1950s kitchen costs about a fifth of what it costs today.&lt;sup&gt;&lt;a href=&quot;#fn-cpi&quot; id=&quot;fnref-cpi&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;2&lt;/a&gt;&lt;/sup&gt; 2065 is a projection, and like everything else in that era, the game labels it as a guess. Every round opens with a dated fact from the archives, never one from later than the round’s era: in the 1980s you learn that by the end of 1986 there were 113 hawker centres, and that the last 80 street hawkers moved in that year.&lt;/p&gt;
&lt;h2 id=&quot;cooking-a-lunch-rush&quot;&gt;Cooking a lunch rush&lt;a class=&quot;h-anchor&quot; href=&quot;#cooking-a-lunch-rush&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The kitchen is co-op, in the style of games such as Overcooked and PlateUp. Tickets come in, and you chop, cook, plate and serve before the queue loses patience. There are 14 stalls and 48 dishes and drinks, from chicken rice (steamed, roasted or soya sauce) to char kway teow and kaya toast, and eight chefs to pick from, across Singapore’s communities.&lt;/p&gt;
&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/cook-coop.mp4&quot; poster=&quot;/letters/makan-nation/cook-coop.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Old Airport Road. This kitchen is playing itself: the game’s own guide does the cooking.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Two people can share a keyboard, up to four gamepads work, and phones get a stick with Grab, Chop, Dash and Throw buttons. To cook with friends, host a game and they scan a QR code or type a four letter code. Online play goes peer to peer, so it works from a static site with no game server.&lt;/p&gt;
&lt;p&gt;Hire help for one job each (a washer, a slicer, a wok cook, a kopi uncle) and their wages come out of your takings, along with the rent. Every round ends with a profit and loss. That cost lens comes from &lt;a href=&quot;https://www.hack.gov.sg/2025/hawkernomics/&quot; class=&quot;external&quot;&gt;Hawkernomics&lt;/a&gt;, a game about hawker economics from Hack for Public Good 2025, and the game credits it. Hiring every helper runs at a loss, on purpose.&lt;/p&gt;
&lt;div class=&quot;width-wide&quot;&gt;&lt;div class=&quot;columns&quot; style=&quot;--cols:2&quot;&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/cook-helpers.mp4&quot; poster=&quot;/letters/makan-nation/cook-helpers.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Hired help at Chinatown Complex.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/cook-books.mp4&quot; poster=&quot;/letters/makan-nation/cook-books.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;The books at the end of a round, and a memory for the next cook.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The results screen also has a rojak meter: whose recipes you cooked, Hainanese, Hokkien, Teochew, Malay, Indian Muslim, Peranakan and more. Then you can leave a short memory about a dish. It goes into the recipe book and comes back as something a customer says in a later round, so playing the game slowly collects an oral history.&lt;/p&gt;
&lt;h2 id=&quot;six-languages-at-the-counter&quot;&gt;Six languages at the counter&lt;a class=&quot;h-anchor&quot; href=&quot;#six-languages-at-the-counter&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Customers order in Singlish, Malay, Mandarin, Cantonese, Hokkien or Tamil. Each ticket shows the phrase, how to say it and what it means, and every phrase is checked against Wiktionary. The language changes the job: a customer who asks for &lt;em&gt;bungkus&lt;/em&gt; (Malay) or &lt;em&gt;dǎbāo&lt;/em&gt; (Mandarin) wants a takeaway box, and you have to build the order in one.&lt;/p&gt;
&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/cook-orders.mp4&quot; poster=&quot;/letters/makan-nation/cook-orders.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Orders arrive as speech bubbles, each with a translation.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;One order, the way the game’s customers say it:&lt;/p&gt;








































&lt;div class=&quot;table-wrap&quot; tabindex=&quot;0&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Language&lt;/th&gt;&lt;th&gt;They say&lt;/th&gt;&lt;th&gt;It means&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Singlish&lt;/td&gt;&lt;td&gt;No chilli, hor.&lt;/td&gt;&lt;td&gt;No chilli, remember.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Malay&lt;/td&gt;&lt;td&gt;Jangan pedas.&lt;/td&gt;&lt;td&gt;Don’t make it spicy.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Mandarin&lt;/td&gt;&lt;td&gt;不要辣 (bùyào là)&lt;/td&gt;&lt;td&gt;Not spicy, please.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Cantonese&lt;/td&gt;&lt;td&gt;走辣 (zau2 laat6)&lt;/td&gt;&lt;td&gt;Leave out the chilli.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Hokkien&lt;/td&gt;&lt;td&gt;毋愛薟 (m̄-ài hiam)&lt;/td&gt;&lt;td&gt;Don’t want it spicy.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Tamil&lt;/td&gt;&lt;td&gt;காரம் வேண்டாம் (kāram vēṇṭām)&lt;/td&gt;&lt;td&gt;No spice, please.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Drink orders arrive in kopitiam code, like &lt;code&gt;kopi-o kosong peng&lt;/code&gt;, and each ticket links to the &lt;a href=&quot;#four-small-apps-that-feed-it&quot; class=&quot;internal&quot;&gt;Kopi Compiler&lt;/a&gt; to explain it.&lt;/p&gt;
&lt;p&gt;Customers speak their lines too. A browser can only speak with the voices its device has, and none of them has Hokkien, so the game ships its own clips: Hokkien from A*&lt;span class=&quot;smallcaps-auto&quot;&gt;STAR&lt;/span&gt;’s MERaLiON model, and Malay, Mandarin, Cantonese and Tamil from OmniVoice.&lt;sup&gt;&lt;a href=&quot;#fn-voices&quot; id=&quot;fnref-voices&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;3&lt;/a&gt;&lt;/sup&gt; Singlish was harder, because no open model has a Singapore accent. I made synthetic Singapore voices and kept only the takes an accent classifier heard as Singaporean or Malaysian. The women’s voices passed. No man’s voice did, so men’s Singlish lines show as words in a bubble, and recording consenting Singaporean voices is the next step.&lt;/p&gt;
&lt;h2 id=&quot;three-looks&quot;&gt;Three looks&lt;a class=&quot;h-anchor&quot; href=&quot;#three-looks&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The same game has three looks, and they switch mid-round without a reload. Graphics tiers (Auto, Low, Medium, High) let it run on a school laptop: Auto starts phones on Medium and steps down if the frame rate drags.&lt;/p&gt;
&lt;div class=&quot;width-wide&quot;&gt;&lt;div class=&quot;columns&quot; style=&quot;--cols:2&quot;&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/look-toon.mp4&quot; poster=&quot;/letters/makan-nation/look-toon.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Cartoon: flat colour with ink lines.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/look-soft.mp4&quot; poster=&quot;/letters/makan-nation/look-soft.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Soft: lit like a photo.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/look-real.mp4&quot; poster=&quot;/letters/makan-nation/look-real.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Real: photographed tiles, steel, wood and terrazzo.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/look-low.mp4&quot; poster=&quot;/letters/makan-nation/look-low.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Low graphics, for older laptops and phones.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;famous-centres&quot;&gt;Famous centres&lt;a class=&quot;h-anchor&quot; href=&quot;#famous-centres&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Nineteen well known centres have their own building, sign, colours, time of day and surroundings, built from archive research. Lau Pa Sat is a cast-iron octagon with a clock tower, Tiong Bahru Market is art deco, and Newton serves its &lt;span class=&quot;smallcaps-auto&quot;&gt;BBQ&lt;/span&gt; stingray and carrot cake. Their famous dishes come up more often in the orders. Try &lt;a href=&quot;https://sidcode.github.io/makan-nation/hawker/?at=lau-pa-sat&quot; class=&quot;external&quot;&gt;Lau Pa Sat&lt;/a&gt; or &lt;a href=&quot;https://sidcode.github.io/makan-nation/hawker/?at=newton-food-centre&quot; class=&quot;external&quot;&gt;Newton&lt;/a&gt;, then Free play.&lt;/p&gt;
&lt;div class=&quot;columns&quot; style=&quot;--cols:2&quot;&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/famous-laupasat.mp4&quot; poster=&quot;/letters/makan-nation/famous-laupasat.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;640&quot; height=&quot;360&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Lau Pa Sat&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/famous-newton.mp4&quot; poster=&quot;/letters/makan-nation/famous-newton.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;640&quot; height=&quot;360&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Newton Food Centre&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/famous-tiongbahru.mp4&quot; poster=&quot;/letters/makan-nation/famous-tiongbahru.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;640&quot; height=&quot;360&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Tiong Bahru Market&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/famous-tekka.mp4&quot; poster=&quot;/letters/makan-nation/famous-tekka.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;640&quot; height=&quot;360&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Tekka Centre&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Where sources disagree on when a centre opened (Maxwell, Tekka, Tiong Bahru, Whampoa, Old Airport Road), the game keeps both years.&lt;/p&gt;
&lt;h2 id=&quot;lunch-at-any-of-neas-129-centres&quot;&gt;Lunch at any of NEA’s 129 centres&lt;a class=&quot;h-anchor&quot; href=&quot;#lunch-at-any-of-neas-129-centres&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In the customer mode you are the one queuing. Pick any of &lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt;’s 129 hawker centres from a list or a map, look at the real place first, then walk in. The building outlines are real, from OpenStreetMap, and so are &lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt;’s stall counts. The inside is arranged by the game in hawker centre patterns, and the game says which is which.&lt;/p&gt;
&lt;div class=&quot;width-wide&quot;&gt;&lt;div class=&quot;columns&quot; style=&quot;--cols:2&quot;&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/picker-map.mp4&quot; poster=&quot;/letters/makan-nation/picker-map.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;All 129 centres on a map of Singapore.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/picker-photos.mp4&quot; poster=&quot;/letters/makan-nation/picker-photos.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;A photo of the real centre and street-level photos from KartaView.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Then lunch, the way it’s done:&lt;/p&gt;
&lt;div class=&quot;width-wide&quot;&gt;&lt;div class=&quot;columns&quot; style=&quot;--cols:3&quot;&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/lunch-chope.mp4&quot; poster=&quot;/letters/makan-nation/lunch-chope.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;1. Chope a table with a packet of tissue.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/lunch-queue.mp4&quot; poster=&quot;/letters/makan-nation/lunch-queue.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;2. Queue at the famous stall.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/lunch-menu.mp4&quot; poster=&quot;/letters/makan-nation/lunch-menu.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;3. Order from the menu, with the real stall’s dated price.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/lunch-order.mp4&quot; poster=&quot;/letters/makan-nation/lunch-order.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;4. Order the drink in kopi code.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/lunch-makan.mp4&quot; poster=&quot;/letters/makan-nation/lunch-makan.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;5. Makan.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/lunch-tray.mp4&quot; poster=&quot;/letters/makan-nation/lunch-tray.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;6. Return the tray, as &lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt; has enforced since 1 September 2021.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;A card says the next step, a dotted path shows where, and Go walks you there and joins the queue. There are three views: from above, over the shoulder, and through your own eyes. The rush is busy: parties of one to four, about 93% of tables taken, a long queue at the famous stall, and GrabFood and foodpanda riders in it with you. When nothing is free, the guide takes you to a table that’s nearly done and counts it down. Each hawker does the work of the dish you ordered (the wok and its flames, the cleaver, pulling kopi, fanning the satay) and calls your order back in the stall’s language.&lt;/p&gt;
&lt;p&gt;Older eras have their own manners, taken from the archives. In the 1950s the centre is a street of pushcarts, nobody chopes, and the hawker clears up. In the 1980s nobody chopes either, and some tables belong to a stall whose hawker shoos you off. In 2065 a robot washes the plates.&lt;/p&gt;
&lt;div class=&quot;width-wide&quot;&gt;&lt;div class=&quot;columns&quot; style=&quot;--cols:3&quot;&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/era-1950s-walk.mp4&quot; poster=&quot;/letters/makan-nation/era-1950s-walk.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;The 1950s, a street of pushcarts.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/era-1980s-walk.mp4&quot; poster=&quot;/letters/makan-nation/era-1980s-walk.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Chomp Chomp in the 1980s.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/era-2065-walk.mp4&quot; poster=&quot;/letters/makan-nation/era-2065-walk.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Old Airport Road in 2065.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Most hawker centres stand in &lt;span class=&quot;smallcaps-auto&quot;&gt;HDB&lt;/span&gt; estates, and 82 of the 129 are &lt;span class=&quot;smallcaps-auto&quot;&gt;HDB&lt;/span&gt; blocks themselves. The estate round each one is real: the &lt;span class=&quot;smallcaps-auto&quot;&gt;HDB&lt;/span&gt; blocks nearby stand at their real height with their block numbers painted on, and the flats built over Chinatown Complex, Albert Centre and Hong Lim rise above the roof.&lt;/p&gt;
&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/people-hdb.mp4&quot; poster=&quot;/letters/makan-nation/people-hdb.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;A hawker centre in its &lt;span class=&quot;smallcaps-auto&quot;&gt;HDB&lt;/span&gt; estate.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;You can open any centre straight from a link. This one starts at &lt;a href=&quot;https://sidcode.github.io/makan-nation/hawker/?makan=119469&quot; class=&quot;external&quot;&gt;Maxwell&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;hawker-passport-and-the-centre-manager&quot;&gt;Hawker Passport and the Centre Manager&lt;a class=&quot;h-anchor&quot; href=&quot;#hawker-passport-and-the-centre-manager&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The Passport is the campaign. You start as an apprentice at a 1950s street stall and work through nine stops to 2065, on a map of &lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt;’s centres. Seven of the stops are real centres from the right era: Maxwell, Tiong Bahru, Newton, Chinatown Complex, Tekka, Old Airport Road and Geylang Serai. A mentor introduces each stop’s dish, you cook a round, and a one question quiz with a source earns the stamp. At the end you choose which recipes to pass on.&lt;/p&gt;
&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/passport-map.mp4&quot; poster=&quot;/letters/makan-nation/passport-map.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Nine stops on a map of &lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt;’s centres.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The Centre Manager is the advanced mode. You run one of the 129 real centres for 14 days, breakfast, lunch and dinner: set menus and prices, order stock that spoils, hire help, pay rent and cleaning, and pair retiring hawkers with apprentices. If a hawker retires with no apprentice, the stall closes and its dishes leave the centre. Every number has a ”?” that explains it. Succession runs through the whole game: mentors hand you the ladle era by era, and in 2065 you pass it on.&lt;/p&gt;
&lt;div class=&quot;width-wide&quot;&gt;&lt;div class=&quot;columns&quot; style=&quot;--cols:2&quot;&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/passport-stop.mp4&quot; poster=&quot;/letters/makan-nation/passport-stop.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;A Passport stop at Old Airport Road, with its mentor.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/manager.mp4&quot; poster=&quot;/letters/makan-nation/manager.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Menus, prices and helpers in the Centre Manager.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The recipe book has a card for each of the 48 dishes, past, present and future: a photo, what it cost then and now, cooking videos, the phrases customers use, and the memories players have left. Every fact on a card links to its source.&lt;/p&gt;
&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/book.mp4&quot; poster=&quot;/letters/makan-nation/book.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;The recipe book.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;four-small-apps-that-feed-it&quot;&gt;Four small apps that feed it&lt;a class=&quot;h-anchor&quot; href=&quot;#four-small-apps-that-feed-it&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Four smaller prototypes came from the same three tenses. Three of them feed the game.&lt;/p&gt;
&lt;div class=&quot;width-wide&quot;&gt;&lt;div class=&quot;columns&quot; style=&quot;--cols:2&quot;&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/radio-dial.mp4&quot; poster=&quot;/letters/makan-nation/radio-dial.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Time Capsule Radio&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/kopi-type.mp4&quot; poster=&quot;/letters/makan-nation/kopi-type.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Kopi Compiler&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/block.mp4&quot; poster=&quot;/letters/makan-nation/block.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Block Birthday&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;embed embed-local-video&quot;&gt;&lt;video src=&quot;https://sidcode.github.io/letters/makan-nation/musication.mp4&quot; poster=&quot;/letters/makan-nation/musication.jpg&quot; preload=&quot;none&quot; playsinline loop muted data-motion=&quot;true&quot; width=&quot;960&quot; height=&quot;540&quot;&gt;&lt;/video&gt;&lt;figcaption&gt;Musication&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;https://sidcode.github.io/makan-nation/radio/&quot; class=&quot;external&quot;&gt;Time Capsule Radio&lt;/a&gt; is one dial from 1905 to 2065. The past is 17 shellac 78s from the Internet Archive (1905 to 1957) and 8 Rediffusion dialect dramas in Hokkien, Teochew, Cantonese and Mandarin. The present is live Singapore radio in four languages. The future is songs sealed in a butter cookie tin until 2030, 2040, 2050 or 2065, which play muffled, as if through the lid. The radio plays on the game’s stall radio, and a song sealed for 2065 plays in the future kitchen.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://sidcode.github.io/makan-nation/kopi/&quot; class=&quot;external&quot;&gt;Kopi Compiler&lt;/a&gt; treats kopitiam orders as a programming language. Type &lt;code&gt;kopi-o kosong peng&lt;/code&gt; and it parses the order (black coffee, no sugar, iced), shows each word with the language it came from, and pours it. It writes the game’s drink orders, and reads every one of its 1,880 built-in orders out loud in the voice of a Malay uncle or a Singapore auntie. You can also teach uncle a new word.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://sidcode.github.io/makan-nation/block/&quot; class=&quot;external&quot;&gt;Block Birthday&lt;/a&gt;: every &lt;span class=&quot;smallcaps-auto&quot;&gt;HDB&lt;/span&gt; block has one. Type a postal code, or a block and street, and the block comes back as a cake with its age on the candles. It knows 13,357 blocks from &lt;span class=&quot;smallcaps-auto&quot;&gt;HDB&lt;/span&gt;’s data, the songs and news of the year each was finished, and how long is left on its 99 year lease, with a board for notes to its 99th birthday. The 107 blocks &lt;span class=&quot;smallcaps-auto&quot;&gt;HDB&lt;/span&gt; lists with a market or hawker centre open that centre in Makan Nation.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://sidcode.github.io/makan-nation/musication/&quot; class=&quot;external&quot;&gt;Musication&lt;/a&gt; is my own side project, on how music rhymes across cultures. Mo Li Hua, Arirang and Auld Lang Syne use the same five notes, and you can play them in 15 five-note systems from China, India, Japan, Java and elsewhere. It also has 16 seven-note modes under their many names, and Ed Sheeran’s argument that there are only so many notes, with the court rulings.&lt;/p&gt;
&lt;h2 id=&quot;how-its-made&quot;&gt;How it’s made&lt;a class=&quot;h-anchor&quot; href=&quot;#how-its-made&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Everything comes from open data and archives, and each fact is linked next to the thing it explains:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt;’s 129 hawker centres, &lt;span class=&quot;smallcaps-auto&quot;&gt;HDB&lt;/span&gt;’s 13,357 blocks and &lt;span class=&quot;smallcaps-auto&quot;&gt;URA&lt;/span&gt;’s planning areas, from data.gov.sg.&lt;/li&gt;
&lt;li&gt;Building outlines from OpenStreetMap, street photos from KartaView, postal codes from OneMap.&lt;/li&gt;
&lt;li&gt;History from the National Library, Roots.gov.sg, &lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt; and the &lt;span class=&quot;smallcaps-auto&quot;&gt;UNESCO&lt;/span&gt; nomination: 59 dated facts and profiles of 19 centres.&lt;/li&gt;
&lt;li&gt;Wiktionary for every phrase, and the Internet Archive’s Great 78 Project for the old records.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The 3D is Three.js, picked over Babylon.js and PlayCanvas for size: 130 KB gzipped for a minimal lit scene, against 406 KB and 619 KB. Everything else is Bun, with no framework, and the whole thing is a static site on GitHub Pages. The test suite (106 tests) includes a bot that follows the game’s guide and cooks every dish, and customers who eat a whole lunch at several centres.&lt;/p&gt;
&lt;p&gt;The game can play itself. With &lt;code&gt;?autoplay&lt;/code&gt;, every chef follows the guide, and that’s how the kitchen clips on this page were shot. All of the footage, film included, was recorded from the game in headless Chrome, with its own sound.&lt;/p&gt;
&lt;h2 id=&quot;what-the-game-simplifies&quot;&gt;What the game simplifies&lt;a class=&quot;h-anchor&quot; href=&quot;#what-the-game-simplifies&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The game labels its guesses. Some prices and costs are game guesses. Apprenticeships take 3 days instead of &lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt;’s 3 months, and each served ticket counts as 6 customers in the Centre Manager. The hygiene grade is a game grade (&lt;span class=&quot;smallcaps-auto&quot;&gt;NEA&lt;/span&gt; moved to a new framework in January 2026). The inside of each hall is arranged by the game. 2065 is a guess. And the customer voices are synthetic.&lt;/p&gt;
&lt;h2 id=&quot;the-film&quot;&gt;The film&lt;a class=&quot;h-anchor&quot; href=&quot;#the-film&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Three minutes with sound, through every mode in turn: the radio, the kitchen and its eras, the Passport, the looks, lunch at a hawker centre, the Kopi Compiler and Block Birthday. Every shot is the game, scored with two public domain 78s from the radio’s collection: “Singapore” by Jaudas’ Society Orchestra (1919), and a Rasa Sayang medley by Krontjong Orchest Eurasia (1929).&lt;/p&gt;
&lt;figure class=&quot;embed embed-video&quot;&gt;&lt;div class=&quot;video-facade&quot; data-provider=&quot;youtube&quot; data-id=&quot;H39P2RNz-tI&quot; data-params=&quot;&quot; style=&quot;background-image:url(/media/youtube/H39P2RNz-tI.jpg)&quot;&gt;&lt;button class=&quot;video-play&quot; type=&quot;button&quot; aria-label=&quot;Play video: Makan Nation: Celebrating Singapore’s Hawker Culture (3:04) (loads YouTube)&quot;&gt;&lt;span class=&quot;video-play-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;figcaption&gt;Makan Nation: Celebrating Singapore’s Hawker Culture (3:04) &lt;a href=&quot;https://www.youtube.com/watch?v=H39P2RNz-tI&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Watch on YouTube&lt;/a&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;play-it&quot;&gt;Play it&lt;a class=&quot;h-anchor&quot; href=&quot;#play-it&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://sidcode.github.io/makan-nation/hawker/&quot; class=&quot;external&quot;&gt;Play Makan Nation&lt;/a&gt;, or start at the &lt;a href=&quot;https://sidcode.github.io/makan-nation/&quot; class=&quot;external&quot;&gt;Common Ground lobby&lt;/a&gt;. The source is &lt;a href=&quot;https://github.com/sidcode/makan-nation&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;on GitHub&lt;/a&gt;. Bring your kakis.&lt;/p&gt;
&lt;section data-footnotes=&quot;&quot; class=&quot;footnotes&quot; aria-label=&quot;Notes&quot;&gt;&lt;h2 class=&quot;footnotes-title&quot; id=&quot;footnote-label&quot;&gt;Notes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;fn-unesco&quot;&gt;
&lt;p&gt;On 16 December 2020. &lt;span class=&quot;smallcaps-auto&quot;&gt;UNESCO&lt;/span&gt;, &lt;a href=&quot;https://ich.unesco.org/en/RL/hawker-culture-in-singapore-community-dining-and-culinary-practices-in-a-multicultural-urban-context-01568&quot; class=&quot;external&quot;&gt;Hawker culture in Singapore, community dining and culinary practices in a multicultural urban context&lt;/a&gt;. &lt;a href=&quot;#fnref-unesco&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn-cpi&quot;&gt;
&lt;p&gt;Annual change in the price index for Food, compounded from 1962 to 2024, from &lt;a href=&quot;https://data.gov.sg/datasets/d_8b007d0a630351e2375d5d574e108058/view&quot; class=&quot;external&quot;&gt;SingStat’s &lt;span class=&quot;smallcaps-auto&quot;&gt;CPI&lt;/span&gt; series on data.gov.sg&lt;/a&gt;. The 1980s kitchen uses about 1985 prices. 2065 carries on at the 1985 to 2024 average of roughly 1.9% a year. &lt;a href=&quot;#fnref-cpi&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 2&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn-voices&quot;&gt;
&lt;p&gt;&lt;a href=&quot;https://huggingface.co/MERaLiON/MERaLiON-OmniVoice-Hokkien-TTS&quot; class=&quot;external&quot;&gt;MERaLiON-OmniVoice-Hokkien-&lt;span class=&quot;smallcaps-auto&quot;&gt;TTS&lt;/span&gt;&lt;/a&gt; and &lt;a href=&quot;https://github.com/k2-fsa/OmniVoice&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;OmniVoice&lt;/a&gt;. The accent check used CommonAccent’s classifier, which knows 16 accents including Singaporean and Malaysian. &lt;a href=&quot;#fnref-voices&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 3&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content>
  </entry>
  <entry>
    <title>Lying robots</title>
    <link href="https://sidcode.github.io/experiments/lying-robots/"/>
    <id>https://sidcode.github.io/experiments/lying-robots/</id>
    <published>2026-09-30T16:00:00.000Z</published>
    <updated>2026-09-30T16:00:00.000Z</updated>
    <category term="robotics"/><category term="consensus"/><category term="security"/><category term="interactive"/>
    <summary>Robots try to agree on a meeting point while some of them lie. Compare averaging, the median and W-MSR.</summary>
    <content type="html">&lt;p&gt;Sixteen robots are spread across a field and need to meet. There is no leader and no agreed meeting point, and each robot can only hear the robots close to it.&lt;/p&gt;
&lt;p&gt;A simple rule: every step, each robot averages its own position with the positions its neighbours report, and moves a little toward that average. Press play.&lt;/p&gt;
&lt;p&gt;&lt;consensus-playground liars=&quot;0&quot; rule=&quot;mean&quot; controls=&quot;robots radius&quot; seed=&quot;11&quot; caption=&quot;No liars. Each robot moves toward the average of what it hears.&quot;&gt;&lt;/consensus-playground&gt;&lt;/p&gt;
&lt;p&gt;The robots converge. This is &lt;em&gt;average consensus&lt;/em&gt;, and many multi-robot tasks use some version of it: formation control, coverage, shared maps, distributed estimation.&lt;/p&gt;
&lt;p&gt;The dashed box marks where the robots started. Each step moves a robot to an average of positions inside the box, so no robot ever leaves it. Call the box the &lt;em&gt;safe zone&lt;/em&gt;. Any reasonable meeting point is inside it.&lt;/p&gt;
&lt;p&gt;You can drag robots while it runs, and change how far they can hear. If the range is too short, the group splits into clusters that never meet.&lt;/p&gt;
&lt;h2 id=&quot;one-liar&quot;&gt;One liar&lt;a class=&quot;h-anchor&quot; href=&quot;#one-liar&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Now one robot lies. It keeps reporting a position in the top-right corner, wherever it actually is.&lt;/p&gt;
&lt;p&gt;&lt;consensus-playground liars=&quot;1&quot; rule=&quot;mean&quot; strategy=&quot;pull&quot; reveal=&quot;&quot; controls=&quot;liars strategy&quot; seed=&quot;11&quot; caption=&quot;One liar claims to be in the corner.&quot;&gt;&lt;/consensus-playground&gt;&lt;/p&gt;
&lt;p&gt;The honest robots include the false position in every average, and the whole group drifts out of the safe zone toward a point that doesn’t exist. One liar out of sixteen decides where everyone ends up.&lt;/p&gt;
&lt;p&gt;A single extreme value can move an average anywhere. In statistics this is called a &lt;em&gt;breakdown point&lt;/em&gt; of zero.&lt;sup&gt;&lt;a href=&quot;#fn-breakdown&quot; id=&quot;fnref-breakdown&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;byzantine-faults&quot;&gt;Byzantine faults&lt;a class=&quot;h-anchor&quot; href=&quot;#byzantine-faults&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This kind of failure is called &lt;em&gt;Byzantine&lt;/em&gt;, after a 1982 paper by Lamport, Shostak and Pease about generals who must agree on a plan when some of them are traitors.&lt;sup&gt;&lt;a href=&quot;#fn-lamport&quot; id=&quot;fnref-lamport&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;2&lt;/a&gt;&lt;/sup&gt; A Byzantine robot can report anything. It can lie, tell different neighbours different things, stay silent, or behave normally until later.&lt;/p&gt;
&lt;p&gt;In practice this covers hacked firmware, spoofed &lt;span class=&quot;smallcaps-auto&quot;&gt;GPS&lt;/span&gt;, and sensors that fail but keep reporting plausible numbers. From the outside these look the same. I worked on the industrial version of this problem, compromised controllers in water treatment plants, for several years.&lt;/p&gt;
&lt;p&gt;The question: is there an update rule that keeps the honest robots safe and still lets them agree, without knowing which robots are lying?&lt;/p&gt;
&lt;h2 id=&quot;the-median&quot;&gt;The median&lt;a class=&quot;h-anchor&quot; href=&quot;#the-median&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The median ignores extreme values. Sort the values and take the middle one, and a single outlier hardly moves it. Robots can apply it to each coordinate separately: the median of the x positions they hear, then the median of the y positions.&lt;/p&gt;
&lt;p&gt;&lt;consensus-playground liars=&quot;1&quot; rule=&quot;median&quot; strategy=&quot;pull&quot; reveal=&quot;&quot; controls=&quot;liars strategy rule&quot; seed=&quot;11&quot; caption=&quot;The same liar. The honest robots now use the median.&quot;&gt;&lt;/consensus-playground&gt;&lt;/p&gt;
&lt;p&gt;This works well. Try adding more liars, or switch them to random noise. The median has no setting for how many liars to expect, though, and in a small neighbourhood a few liars can still control the middle value.&lt;/p&gt;
&lt;h2 id=&quot;w-msr&quot;&gt;W-MSR&lt;a class=&quot;h-anchor&quot; href=&quot;#w-msr&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;W-&lt;span class=&quot;smallcaps-auto&quot;&gt;MSR&lt;/span&gt; (&lt;em&gt;weighted mean-subsequence-reduced&lt;/em&gt;) adds that setting.&lt;sup&gt;&lt;a href=&quot;#fn-wmsr&quot; id=&quot;fnref-wmsr&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;3&lt;/a&gt;&lt;/sup&gt; Choose a number &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6833em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.1389em;&quot;&gt;F&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;: the most liars any robot might have among its neighbours. Each honest robot, for each coordinate:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;sorts the values it hears from its neighbours,&lt;/li&gt;
&lt;li&gt;removes up to &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6833em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.1389em;&quot;&gt;F&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; values that are higher than its own, starting with the highest,&lt;/li&gt;
&lt;li&gt;removes up to &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6833em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.1389em;&quot;&gt;F&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; values that are lower than its own, starting with the lowest,&lt;/li&gt;
&lt;li&gt;averages the remaining values with its own.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;consensus-playground liars=&quot;1&quot; rule=&quot;wmsr&quot; f=&quot;1&quot; strategy=&quot;pull&quot; reveal=&quot;&quot; controls=&quot;liars f strategy&quot; seed=&quot;11&quot; caption=&quot;W-MSR with F = 1. The liar&amp;#x27;s report is always one of the values removed.&quot;&gt;&lt;/consensus-playground&gt;&lt;/p&gt;
&lt;p&gt;The liar’s report is extreme, so it is always removed. Every value that remains lies between values from honest robots, so the honest robots stay in the safe zone. This holds whatever the liars do, as long as no robot has more than &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6833em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.1389em;&quot;&gt;F&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; liars within range.&lt;/p&gt;
&lt;p&gt;Try more liars than &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6833em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.1389em;&quot;&gt;F&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;. Then try the two-faced strategy, where each liar tells robots on the left that it is far left and robots on the right that it is far right. With averaging, this splits the group in two. With W-&lt;span class=&quot;smallcaps-auto&quot;&gt;MSR&lt;/span&gt; it has no effect, because both reports are extreme.&lt;/p&gt;
&lt;h2 id=&quot;when-w-msr-gets-stuck&quot;&gt;When W-MSR gets stuck&lt;a class=&quot;h-anchor&quot; href=&quot;#when-w-msr-gets-stuck&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Removing values also removes some honest information. On a sparse network, a robot can end up removing the values that would have moved it toward the others.&lt;/p&gt;
&lt;p&gt;&lt;consensus-playground liars=&quot;1&quot; rule=&quot;wmsr&quot; f=&quot;2&quot; radius=&quot;0.32&quot; strategy=&quot;pull&quot; reveal=&quot;&quot; controls=&quot;radius f&quot; seed=&quot;5&quot; caption=&quot;W-MSR with F = 2 on a sparse network. Safe, but stuck.&quot;&gt;&lt;/consensus-playground&gt;&lt;/p&gt;
&lt;p&gt;The robots stay in the safe zone but stop before they agree. Increase the hearing range and they reach agreement. Setting &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6833em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.1389em;&quot;&gt;F&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; to zero also gets agreement, but &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F = 0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6833em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.1389em;&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.2778em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.2778em;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6444em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is plain averaging, so the liar is in control again.&lt;/p&gt;
&lt;p&gt;LeBlanc, Zhang, Koutsoukos and Sundaram showed how much connectivity is enough, using a property called &lt;em&gt;robustness&lt;/em&gt;. Roughly: for any two separate groups of robots, at least one robot in one of the groups must hear at least &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;r&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.4306em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.0278em;&quot;&gt;r&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; robots outside its own group. If the network is &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;(2F+1)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.1389em;&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.2222em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.2222em;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;-robust, W-&lt;span class=&quot;smallcaps-auto&quot;&gt;MSR&lt;/span&gt; reaches agreement.&lt;sup&gt;&lt;a href=&quot;#fn-wmsr&quot; id=&quot;fnref-wmsr-2&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;3&lt;/a&gt;&lt;/sup&gt; This is a stronger requirement than the network simply being connected.&lt;/p&gt;
&lt;h2 id=&quot;playground&quot;&gt;Playground&lt;a class=&quot;h-anchor&quot; href=&quot;#playground&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;All controls are available here. Some things to try:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Five liars against W-&lt;span class=&quot;smallcaps-auto&quot;&gt;MSR&lt;/span&gt; with &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F = 1&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6833em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.1389em;&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.2778em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.2778em;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:0.6444em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;.&lt;/li&gt;
&lt;li&gt;Turn off &lt;em&gt;Reveal liars&lt;/em&gt; and try to find them from the plot.&lt;/li&gt;
&lt;li&gt;Drag a liar into the middle of the group and see whether its position matters.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;consensus-playground liars=&quot;2&quot; rule=&quot;wmsr&quot; f=&quot;2&quot; strategy=&quot;twofaced&quot; controls=&quot;rule liars f radius strategy robots&quot; seed=&quot;23&quot; caption=&quot;All controls.&quot;&gt;&lt;/consensus-playground&gt;&lt;/p&gt;
&lt;h2 id=&quot;research-context&quot;&gt;Research context&lt;a class=&quot;h-anchor&quot; href=&quot;#research-context&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is a simplified version of problems in my PhD. Real teams of drones and ground robots share more than positions: maps, detections, plans, and the parameters of models they train together. The same trimming idea appears in &lt;a href=&quot;https://sidcode.github.io/diary/learning/byzantine-robust-learning&quot; class=&quot;wikilink internal&quot;&gt;Byzantine-robust machine learning&lt;/a&gt;, where a server averaging gradients from many workers faces the same problem.&lt;sup&gt;&lt;a href=&quot;#fn-ml&quot; id=&quot;fnref-ml&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;4&lt;/a&gt;&lt;/sup&gt; When robots move, their network changes as they coordinate, which the results above don’t fully cover. Notes on that are in the &lt;a href=&quot;https://sidcode.github.io/diary/multi-robot/resilient-consensus&quot; class=&quot;wikilink internal&quot;&gt;research diary&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Bug reports and questions are welcome on the &lt;a href=&quot;https://sidcode.github.io/contact/&quot; class=&quot;internal&quot;&gt;contact page&lt;/a&gt;.&lt;/p&gt;
&lt;section data-footnotes=&quot;&quot; class=&quot;footnotes&quot; aria-label=&quot;Notes&quot;&gt;&lt;h2 class=&quot;footnotes-title&quot; id=&quot;footnote-label&quot;&gt;Notes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;fn-breakdown&quot;&gt;
&lt;p&gt;The median’s breakdown point is one half: half of the values must be corrupted before the median can be set arbitrarily. No summary of the data does better. &lt;a href=&quot;#fnref-breakdown&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn-lamport&quot;&gt;
&lt;p&gt;L. Lamport, R. Shostak and M. Pease, “The Byzantine generals problem”, &lt;em&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ACM&lt;/span&gt; Transactions on Programming Languages and Systems&lt;/em&gt;, 1982. For exact agreement, they showed that more than three times as many generals as traitors are needed. &lt;a href=&quot;#fnref-lamport&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 2&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn-wmsr&quot;&gt;
&lt;p&gt;H. J. LeBlanc, H. Zhang, X. Koutsoukos and S. Sundaram, “Resilient asymptotic consensus in robust networks”, &lt;em&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;IEEE&lt;/span&gt; Journal on Selected Areas in Communications&lt;/em&gt;, 2013. These algorithms build on work on approximate agreement by Dolev, Lynch, Pinter, Stark and Weihl (1986). Applying the rule one coordinate at a time, as these robots do, keeps them inside the box of honest starting positions, which is weaker than staying inside their convex hull. &lt;a href=&quot;#fnref-wmsr&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 3&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt; &lt;a href=&quot;#fnref-wmsr-2&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 3&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;sup&gt;2&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn-ml&quot;&gt;
&lt;p&gt;P. Blanchard, E. M. El Mhamdi, R. Guerraoui and J. Stainer, “Machine learning with adversaries: Byzantine tolerant gradient descent”, NeurIPS 2017; D. Yin, Y. Chen, K. Ramchandran and P. Bartlett, “Byzantine-robust distributed learning: towards optimal statistical rates”, &lt;span class=&quot;smallcaps-auto&quot;&gt;ICML&lt;/span&gt; 2018. &lt;a href=&quot;#fnref-ml&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 4&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content>
  </entry>
  <entry>
    <title>sidcode</title>
    <link href="https://sidcode.github.io/letters/sidcode/"/>
    <id>https://sidcode.github.io/letters/sidcode/</id>
    <published>2021-12-20T20:32:00.000Z</published>
    <updated>2021-12-20T20:32:00.000Z</updated>
    <category term="personal"/><category term="professional"/><category term="everything-at-once"/><category term="web3"/>
    <summary>I’m Sid / sidcode / Siddhant. My name means principles / tenets. That is probably why I was naturally drawn to the Kernel syllabus ;) Soon after my block wrapped up for me as a Fellow, I was asked if…</summary>
    <content type="html">&lt;p&gt;I’m Sid / &lt;em&gt;sidcode&lt;/em&gt; / Siddhant. My name means &lt;strong&gt;principles / tenets&lt;/strong&gt;. That is probably why I was naturally drawn to the &lt;a href=&quot;https://kernel.community/en/learn/&quot; class=&quot;external&quot;&gt;Kernel syllabus&lt;/a&gt; ;)
Soon after my block wrapped up for me as a Fellow, I was asked if I wanted to be a Steward. I accepted this gift of a responsibility to best map out this unparalleled community of care that is building the heart of our interdependent web. This post is an attempt at mapping my meaningful meanders. I’m &lt;a href=&quot;https://blog.ncase.me/evolution-not-revolution/&quot; class=&quot;external&quot;&gt;evolving&lt;/a&gt; just like our society evolves with its interdependent pillars- &lt;img src=&quot;https://sidcode.github.io/images/articles/2021/opensourceloopy.gif&quot; alt=&quot;Loopy Society&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;877&quot; height=&quot;640&quot; class=&quot;gif&quot;&gt;
This post maps out my life among each of web3, technology, culture, policy, economics, and personal aspects. This post has been salted and peppered to perfection with links for you to dig deeper into all these rabbitholes. Here we go-&lt;/p&gt;
&lt;h2 id=&quot;web3-journey-so-far&quot;&gt;Web3 journey so far:&lt;a class=&quot;h-anchor&quot; href=&quot;#web3-journey-so-far&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;First foray&lt;/strong&gt;: introduced to build on &lt;a href=&quot;https://ipfs.io/&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;IPFS&lt;/span&gt;&lt;/a&gt; in 2016 and stumbled upon Juan Benet &lt;sup&gt;&lt;a href=&quot;#fn-1&quot; id=&quot;fnref-1&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; (accidentally). Read the &lt;a href=&quot;https://fermatslibrary.com/s/bitcoin&quot; class=&quot;external&quot;&gt;annotated Bitcoin paper&lt;/a&gt; too but did not grok the social consequences fully until much later.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Academic&lt;/strong&gt;: researching smart contracts, &lt;a href=&quot;https://docs.google.com/presentation/d/1mYL72VPl5AY6VyzL1v70c9AHYeqhsRDGAYRgAYwTqR4/edit?usp=sharing&quot; class=&quot;external&quot; data-link-icon=&quot;G&quot; data-link-icon-style=&quot;sans&quot;&gt;memes&lt;/a&gt;, communities, and &lt;span class=&quot;smallcaps-auto&quot;&gt;NFT&lt;/span&gt;s via &lt;a href=&quot;https://www.initc3.org/&quot; class=&quot;external&quot;&gt;IC3, Cornell University&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;NFT&lt;/span&gt;s&lt;/strong&gt; : At IC3, we (Sarah Allen, Prof. Ari Juels, Prof. Mukti Khaire, Tyler, and me) published &lt;a href=&quot;https://twitter.com/initc3org/status/1518627597500010497&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;a pretty extensive Primer on the past, present, and future of &lt;span class=&quot;smallcaps-auto&quot;&gt;NFT&lt;/span&gt;s&lt;/a&gt;. I &lt;a href=&quot;https://www.linkedin.com/posts/sohwanwei_the-nft-mania-ugcPost-6923613725593677824-JvZL&quot; class=&quot;external&quot; data-link-icon=&quot;in&quot; data-link-icon-style=&quot;sans&quot;&gt;was also interviewed&lt;/a&gt; for &lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;NFT&lt;/span&gt; Mania&lt;/strong&gt; by Wan Wei.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;DAO&lt;/span&gt;s&lt;/strong&gt;: GitcoinDAO, Token Engineering Commons, SuperTeam, Algovera, ScienceFund, Verses&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;GitcoinDAO&lt;/strong&gt;: I’ve been fortunate to be a Steward at &lt;a href=&quot;https://gitcoin.co/&quot; class=&quot;external&quot;&gt;GitcoinDAO&lt;/a&gt; and help build sustainable rewards systems for building the open web. I started as an early contributor of the &lt;a href=&quot;https://moonshotcollective.space/&quot; class=&quot;external&quot;&gt;Moonshot Collective&lt;/a&gt;, helped on web3’s first ever &lt;a href=&quot;https://newsletter.banklesshq.com/p/the-ultimate-dao-report&quot; class=&quot;external&quot;&gt;ultimate &lt;span class=&quot;smallcaps-auto&quot;&gt;DAO&lt;/span&gt; workers report&lt;/a&gt;, tech lead for &lt;a href=&quot;https://m-m-m.xyz/&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;MMM&lt;/span&gt;&lt;/a&gt; (memes, merch, marketing), a librarian at the &lt;a href=&quot;https://gitcoin.co/blog/seeking-a-new-kind-of-public-good/&quot; class=&quot;external&quot;&gt;Public Goods&lt;/a&gt; workstream. &lt;em&gt;Public Goods are good&lt;/em&gt; and &lt;em&gt;It is all coordination&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Governauts&lt;/strong&gt;: researching reward systems for the next wave of &lt;span class=&quot;smallcaps-auto&quot;&gt;DAO&lt;/span&gt; coordination on a governauts scholarship with &lt;a href=&quot;https://tokenengineeringcommunity.github.io/website/docs/academy-welcome/#dao-rewards-systems&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;Token Engineering Commons&lt;/a&gt;. &lt;a href=&quot;https://docs.google.com/presentation/d/13E57_XoqaKc47Gq2_iu6ze9zHLKbBKxxF-yT-EBUVvw/edit#slide=id.g11640895d61_0_12&quot; class=&quot;external&quot; data-link-icon=&quot;G&quot; data-link-icon-style=&quot;sans&quot;&gt;Here’s a talk I gave on CommonsWTH&lt;/a&gt; - measuring the wealth, truth, and health of our commons.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Projects&lt;/strong&gt;: &lt;a href=&quot;https://gitcoin.co/grants/4151/silentauth-the-de-facto-multi-factor-authenticator&quot; class=&quot;external&quot;&gt;Silent Auth&lt;/a&gt;, &lt;a href=&quot;https://gitcoin.co/grants/4307/deschool&quot; class=&quot;external&quot;&gt;DeSchool&lt;/a&gt;, contributor to &lt;a href=&quot;https://memes.party&quot; class=&quot;external&quot;&gt;memes.party&lt;/a&gt;, Declaration of &lt;a href=&quot;https://www.interdependence.online/declaration&quot; class=&quot;external&quot;&gt;Interdependence of Cyberspace&lt;/a&gt;, The Truth Wins - &lt;a href=&quot;https://www.linkedin.com/pulse/truth-wins-campaign-press-freedom-initiative-partnership-/&quot; class=&quot;external&quot; data-link-icon=&quot;in&quot; data-link-icon-style=&quot;sans&quot;&gt;a censorship-resistance project&lt;/a&gt; with Reporters Without Borders, &lt;span class=&quot;smallcaps-auto&quot;&gt;DDB&lt;/span&gt;, and Hyperinteractive Studios.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Hackathons&lt;/strong&gt;: won the first prize and popularity prize at the &lt;a href=&quot;https://sbic2021.sbip.sg/&quot; class=&quot;external&quot;&gt;Singapore Blockchain Innovation Challenge&lt;/a&gt; in December 2021 for cross-chain community authentication for &lt;span class=&quot;smallcaps-auto&quot;&gt;DAO&lt;/span&gt;s, won the &lt;a href=&quot;https://twitter.com/balajis&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;Balaji Srinivasan&lt;/a&gt; Prize at the &lt;a href=&quot;https://buildingoutloud.solana.com/&quot; class=&quot;external&quot;&gt;Solana India hackathon&lt;/a&gt; in September 2021, a &lt;a href=&quot;https://devpost.com/software/charpie&quot; class=&quot;external&quot; data-link-icon=&quot;dp&quot; data-link-icon-style=&quot;sans&quot;&gt;special prize&lt;/a&gt; at HackZurich 2021, and the overall prize at &lt;a href=&quot;https://www.globaltechchallenge.com/&quot; class=&quot;external&quot;&gt;National Blockchain Challenge&lt;/a&gt; in 2019 in Singapore. The real prize in all of these are my friends whom I got to spend those hours with, and the new friends I made subsequently! I’ve also judged quite a few hackathons during this journey and am finding ways to reimagine and improve how hackathons are designed. In 2022, I am helping find a &lt;em&gt;better&lt;/em&gt; way of building impactful hackathons with &lt;strong&gt;better.sg&lt;/strong&gt; - a tech4good non-profit in Singapore. Hackathons should not be a winner-take-all.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;tech--computer-science&quot;&gt;Tech / (Computer) Science:&lt;a class=&quot;h-anchor&quot; href=&quot;#tech--computer-science&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Security&lt;/strong&gt;: &lt;a href=&quot;https://www.youtube.com/watch?v=omR7R4wvK8g&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;researching, speaking, writing&lt;/a&gt;, and building cyber-physical security systems for national critical infrastructures at the iTrust Centre for Research in Cyber Security, Singapore University of Technology and Design&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Space&lt;/strong&gt;: satellite image processing and remote sensing for the Indian Space Research Organization. My first foray into free and open source software. Also worked on astronaut-rover interactions with Italian Mars Society that liaises with the European Space Agency (described below in &lt;em&gt;Robotics&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Distributed Systems&lt;/strong&gt;: and Engineering at one of the best systems teams at Goldman Sachs&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Robotics&lt;/strong&gt;: Worked extensively with mobile robot teams and rovers via Google Summer of Code, Italian Mars Society and Python Software Foundation. &lt;a href=&quot;https://sidcode.github.io/categories/gsoc/&quot; class=&quot;internal&quot;&gt;Blog link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Extended Reality&lt;/strong&gt;: designing explainable security and smart cities for &lt;a href=&quot;https://www.lun.com/Pages/NewsDetail.aspx?dt=2018-11-16&amp;#x26;PaginaId=28&amp;#x26;bodyid=0&quot; class=&quot;external&quot;&gt;policymakers through VR/AR/MR&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Papers and Patents&lt;/strong&gt;: despite their pitfalls, centralized institutions have assembled our knowledge graph reasonably well so far for &lt;a href=&quot;https://scholar.google.co.in/citations?view_op=list_works&amp;#x26;hl=en&amp;#x26;hl=en&amp;#x26;user=u4_lYmUAAAAJ&amp;#x26;alert_preview_top_rm=2&amp;#x26;scilu=&amp;#x26;scisig=AMD79ooAAAAAYcuboWhjqQnNuAekCyEzQAh41NZgqjPs&amp;#x26;gmla=AJsN-F7zSFeadarueSUnSgjOWEfAVKXiomWos9f5D1MtTwXGNlTzmFLFD_T0egP6onwPcDxqU4q2dT4R5YZHs7SpA2_hz1yg7vC7ijKUIZBo9ad327pKksI&amp;#x26;sciund=15946461532337949835&quot; class=&quot;external&quot; data-link-icon=&quot;GS&quot; data-link-icon-style=&quot;sans&quot;&gt;getting one’s ideas out there&lt;/a&gt;. It is also important to build and explore decentralized infrastructure for science (DeSci). An early attempt at that &lt;a href=&quot;https://mirror.xyz/docxology.eth/6NTVACMLec12YdZGro_DEIf5mLOkNKKgfKCdToB0UjA&quot; class=&quot;external&quot; data-link-icon=&quot;M&quot; data-link-icon-style=&quot;serif&quot;&gt;is this DeSci paper&lt;/a&gt; that a bunch of us collectively co-authored to help wayfinders figure out this dichotomy. This is a first in many aspects. I publish in the fields of security, critical infrastructures, cyber-physical systems, decentralized systems, artificial intelligence, big data, science, education, and training. I re-cognize that there are a few buzzwords in there so I implore you to reach out to me to gauge how superficial/deep my knowledge is in each of these fields (and more). Re-search is its own wonder-full reward.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Education&lt;/strong&gt;: I &lt;a href=&quot;https://www.youtube.com/watch?v=tIc3B9CCHQQ&amp;#x26;list=PLHow0r_Oae-9CxD4Ca5HYwxtY15IyAp6W&amp;#x26;index=9&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;gave a talk&lt;/a&gt; on established and emerging aspects in Education (including how cyber-physical campuses and metaversal learning unfolds). My friends and I are helping build the grassroots infrastructure for better schooling that goes beyond conventional EdTech companies built around capturing the attention, retention, and intention economy. These aspects are &lt;a href=&quot;https://coda.io/d/DeSchool_dRavbDJfPhH/Overview_suOuD&quot; class=&quot;external&quot;&gt;all covered in DeSchool&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;economics-policy&quot;&gt;Economics, Policy:&lt;a class=&quot;h-anchor&quot; href=&quot;#economics-policy&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Cyber-physical security&lt;/strong&gt;: actively involved in co-organizing and contributing to global and local cyber-physical security exercises- like &lt;span class=&quot;smallcaps-auto&quot;&gt;NATO&lt;/span&gt;’s &lt;a href=&quot;https://ccdcoe.org/exercises/locked-shields/&quot; class=&quot;external&quot;&gt;Locked Shields&lt;/a&gt; and &lt;a href=&quot;https://itrust.sutd.edu.sg/ciss/ciss-2021-ol/&quot; class=&quot;external&quot;&gt;Critical Infrastructure Security Showdown&lt;/a&gt;. I &lt;a href=&quot;https://www.youtube.com/watch?v=JJ5xZvcEE1I&amp;#x26;t=1826s&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;gave a talk about it here&lt;/a&gt; at CyCon, a &lt;span class=&quot;smallcaps-auto&quot;&gt;NATO&lt;/span&gt; conference.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Startup and Venture life&lt;/strong&gt;: helping build more secure and usable authentication systems for anything, advising companies, building teams for companies at all stages.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pseudonymous work&lt;/strong&gt;: editor of the sequel to a top Bitcoin and economics book that you may have most likely read.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Banking and the World Economy&lt;/strong&gt;: learned a lot about private/public investment management, banking, securities, and markets at my first job as a strategic analyst at Goldman Sachs. I keep learning the rest from many different legendary voices on different sides of the table (Lyn Alden, Ray Dalio, Rob Breedlove, Raghuram Rajan, etc).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Consulting&lt;/strong&gt;: advising policymakers and companies who are building the future of society in different aspects.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;community-local&quot;&gt;Community (local):&lt;a class=&quot;h-anchor&quot; href=&quot;#community-local&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://t.me/+eFnK4ZqSv-gxYWRl&quot; class=&quot;external&quot; data-link-icon=&quot;tg&quot; data-link-icon-style=&quot;sans&quot;&gt;DesignSG&lt;/a&gt; | founder and co-admin for a community of 3100+ designers.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://t.me/joinchat/8dfMVX-gYQlhMDU9&quot; class=&quot;external&quot; data-link-icon=&quot;tg&quot; data-link-icon-style=&quot;sans&quot;&gt;CryptoTechSG&lt;/a&gt; | founder and co-admin for a local community of crypto practitioners. Fun fact: I made Vitalik &lt;a href=&quot;https://twitter.com/sidcode_/status/1443202231293992960?s=20&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;give a shoutout&lt;/a&gt; to the community in one his &lt;span class=&quot;smallcaps-auto&quot;&gt;AMA&lt;/span&gt;s.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://better.sg&quot; class=&quot;external&quot;&gt;Better.sg&lt;/a&gt; | volunteering as a project co-lead and builder in multiple projects &lt;a href=&quot;https://projects.better.sg&quot; class=&quot;external&quot;&gt;listed here&lt;/a&gt; on &lt;a href=&quot;https://saylah.sg&quot; class=&quot;external&quot;&gt;non-verbal accessibility&lt;/a&gt;, safety, and &lt;a href=&quot;https://tobeyou.sg/&quot; class=&quot;external&quot;&gt;multicultural issues via gaming and interactive fiction&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Other Singapore-based groups: &lt;a href=&quot;https://t.me/joinchat/a62YbPmEllxhMDll&quot; class=&quot;external&quot; data-link-icon=&quot;tg&quot; data-link-icon-style=&quot;sans&quot;&gt;ProductSG - 1100+ members&lt;/a&gt;, GatherSG, Creative Technologists&lt;/li&gt;
&lt;li&gt;India-based groups: Climbing (&lt;a href=&quot;https://www.youtube.com/watch?v=gGw6QyDipkI&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Bangalore Climbing Initiatives&lt;/a&gt;) and Skating (&lt;a href=&quot;https://www.instagram.com/bengaluruskaters/?hl=en&quot; class=&quot;external&quot;&gt;Bengaluru Skaters&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;community-international&quot;&gt;Community (international)&lt;a class=&quot;h-anchor&quot; href=&quot;#community-international&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://1729.com&quot; class=&quot;external&quot;&gt;1729&lt;/a&gt; | Contributor to &lt;span class=&quot;smallcaps-auto&quot;&gt;DAO&lt;/span&gt; and Security discussions, hosting Singapore events.&lt;/li&gt;
&lt;li&gt;Steward at &lt;a href=&quot;https://kernel.community&quot; class=&quot;external&quot;&gt;Kernel&lt;/a&gt; and &lt;a href=&quot;https://gitcoindao.com&quot; class=&quot;external&quot;&gt;Gitcoin&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://getdweb.net/#nodes&quot; class=&quot;external&quot;&gt;DWeb&lt;/a&gt; | Helping steward the Singapore and Bengaluru nodes.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://superteam.fun&quot; class=&quot;external&quot;&gt;Superteam&lt;/a&gt; member | not as active as I’d like&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.complexityweekend.com/&quot; class=&quot;external&quot;&gt;Complexity Weekend&lt;/a&gt; | Facilitator, eusocial participAnt, and co-organizer.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.activeinference.org/&quot; class=&quot;external&quot;&gt;Active Inference Lab&lt;/a&gt; | curious student of this emerging field and have contributed &lt;a href=&quot;https://mirror.xyz/docxology.eth/6NTVACMLec12YdZGro_DEIf5mLOkNKKgfKCdToB0UjA&quot; class=&quot;external&quot; data-link-icon=&quot;M&quot; data-link-icon-style=&quot;serif&quot;&gt;to a DeSci paper&lt;/a&gt; and a &lt;a href=&quot;https://www.youtube.com/watch?v=Dl6v-3COgCo&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;robotics livestream&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;culture&quot;&gt;Culture:&lt;a class=&quot;h-anchor&quot; href=&quot;#culture&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Poetry&lt;/strong&gt;: expressing computing culture by translating classical Urdu/Hindi poetry to English at &lt;a href=&quot;https://twitter.com/CodeShayari/&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;CodeShayari&lt;/a&gt;. &lt;a href=&quot;https://docs.google.com/document/d/1neMrjcQ2vjJAl7ZE02JlV6wELbxuirITpdQl_Ti1spk/edit#heading=h.zcwjgo9spjww&quot; class=&quot;external&quot; data-link-icon=&quot;G&quot; data-link-icon-style=&quot;sans&quot;&gt;Selected works&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Design&lt;/strong&gt;: &lt;span class=&quot;smallcaps-auto&quot;&gt;MIT&lt;/span&gt; Media Lab &lt;a href=&quot;https://www.indiainitiative.mit.edu/&quot; class=&quot;external&quot;&gt;design innovation workshop&lt;/a&gt;. I designed &lt;a href=&quot;https://www.youtube.com/watch?v=K5bR0ndroVk&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Smart Textiles&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Storytelling&lt;/strong&gt;: bringing stories to code and pull requests (pseudonymoyus stealth project, to be released soon)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Humanities&lt;/strong&gt;: involved in multiple communities studying forgotten/current/emerging cultures (around the world in cyber-physical spaces)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;personal&quot;&gt;Personal:&lt;a class=&quot;h-anchor&quot; href=&quot;#personal&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Physical Culture&lt;/strong&gt;: amateur bodybuilding, strength training, calisthenics, martial arts (Kalaripayattu), and aiming for the foundational &lt;a href=&quot;http://journal.crossfit.com/2002/04/foundations.tpl&quot; class=&quot;external&quot;&gt;domains of fitness&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Longevity&lt;/strong&gt;: been a training/nutrition/sleep geek since before it was cool&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Food&lt;/strong&gt;: Love everything and anything about the form and function of food of all kinds&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Generalist&lt;/strong&gt;: very putty-like | interested in many things&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sports&lt;/strong&gt;: climbing, skating, football, frisbee, dragon boating, swimming, and soon table tennis (thanks to a friend)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dance&lt;/strong&gt;: enthusiast (about music in general)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Filmmaking&lt;/strong&gt; and combining hobbies- like &lt;a href=&quot;https://www.youtube.com/watch?v=gGw6QyDipkI&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;this one&lt;/a&gt; where I combined climbing, photography, and film production. &lt;a href=&quot;https://www.youtube.com/watch?v=4zUsWyM5NFA&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Here’s the link to the full documentary&lt;/a&gt; which was showcased at a few film festivals.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;upbringing&quot;&gt;Upbringing:&lt;a class=&quot;h-anchor&quot; href=&quot;#upbringing&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;90s kid&lt;/li&gt;
&lt;li&gt;a torchbearer of &lt;a href=&quot;https://twitter.com/sidcode_/status/1448585694041960448?s=20&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;the relay generation&lt;/a&gt;, the last one to be proficient with both analog and digital worlds&lt;/li&gt;
&lt;li&gt;mixed culture kid (genotypically and phenotypically)&lt;/li&gt;
&lt;li&gt;moved around quite a bit in different geographies across continents - coast, desert, valley, mountain, wetland, island, and soon in a network state (maybe).&lt;/li&gt;
&lt;li&gt;used to sing as a kid in the Christmas choir and Indian Classical Music. Then life happened. Now it is a plan for later.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;socials&quot;&gt;Socials:&lt;a class=&quot;h-anchor&quot; href=&quot;#socials&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://twitter.com/sidcode_&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;@sidcode on Twitter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://linkedin.com/in/sidcode&quot; class=&quot;external&quot; data-link-icon=&quot;in&quot; data-link-icon-style=&quot;sans&quot;&gt;@sidcode on LinkedIn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;sidcode#1729 on Discord&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I’m gradually giving up on all other social networks before they give themselves up. Once bitten, twice shy. Looking at you, G+ :)&lt;/p&gt;
&lt;p&gt;Thanks for reading! If you’ve read this far, ping me and &lt;a href=&quot;https://www.kernel.community/en/learn/module-7/the-gift/&quot; class=&quot;external&quot;&gt;I’ll gift&lt;/a&gt; you &lt;a href=&quot;https://poap.xyz/&quot; class=&quot;external&quot;&gt;my personal &lt;span class=&quot;smallcaps-auto&quot;&gt;POAP&lt;/span&gt;&lt;/a&gt; ;)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Fin&lt;/em&gt;&lt;/p&gt;
&lt;section data-footnotes=&quot;&quot; class=&quot;footnotes&quot; aria-label=&quot;Notes&quot;&gt;&lt;h2 class=&quot;footnotes-title&quot; id=&quot;footnote-label&quot;&gt;Notes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;fn-1&quot;&gt;
&lt;p&gt;Unrelated: I was &lt;a href=&quot;https://www.youtube.com/watch?v=omR7R4wvK8g&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;invited to speak&lt;/a&gt; at the same symposium at Stanford 3 years later. &lt;a href=&quot;https://youtu.be/omR7R4wvK8g&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Here’s the link&lt;/a&gt; to that talk :) &lt;a href=&quot;#fnref-1&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content>
  </entry>
  <entry>
    <title>Meme Museum</title>
    <link href="https://sidcode.github.io/letters/meme-museum/"/>
    <id>https://sidcode.github.io/letters/meme-museum/</id>
    <published>2021-12-15T12:50:00.000Z</published>
    <updated>2021-12-15T12:50:00.000Z</updated>
    <category term="projects"/><category term="web3"/><category term="memes"/>
    <summary>building memes.party and meme museum</summary>
    <content type="html">&lt;h2 id=&quot;httpsmemesparty-is-live&quot;&gt;&lt;a href=&quot;https://memes.party&quot; class=&quot;external&quot;&gt;https://memes.party&lt;/a&gt; is live!&lt;a class=&quot;h-anchor&quot; href=&quot;#httpsmemesparty-is-live&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;At every Memepalooza, hundreds of memes per month are produced. The themes span across public goods, web3, the open internet and the other values Gitcoin and GitcoinDAO cares about. Right now these memes get lost and forgotten as new memes pop up. We &lt;span class=&quot;smallcaps-auto&quot;&gt;MUST&lt;/span&gt; curate them. Enter Meme Museum 🤡&lt;/p&gt;
&lt;p&gt;The Meme museum aims to help fix this by celebrating great memes and great meme artists by curating memes, displaying them, telling stories about them, and making it easy for anyone to visit the digital museum, and share them to help push forward the spirit of GitcoinDAO.&lt;/p&gt;
&lt;p&gt;Memes as xDAI &lt;span class=&quot;smallcaps-auto&quot;&gt;NFT&lt;/span&gt;s ?
Also helps with onboarding web2 memelords to web3 :)&lt;/p&gt;
&lt;p&gt;Memepalooza participants also seemed hyped about this, but that is a biased audience 😂&lt;/p&gt;
&lt;p&gt;The problem we faced: memes get lost and underappreciated in the discord UX. They should be out in the open and not in some walled garden.&lt;/p&gt;
&lt;p&gt;Solution - a web3 museum of memes where the best memes and memelords get appreciated with votes and tips&lt;/p&gt;
&lt;h2 id=&quot;version-1-of-the-meme-museum&quot;&gt;Version 1 of the Meme Museum:&lt;a class=&quot;h-anchor&quot; href=&quot;#version-1-of-the-meme-museum&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;View memes on the frontpage - sorted by upvotes, daily meme (knowyourmeme style)&lt;/li&gt;
&lt;li&gt;Sign in with web3 to upvote/downvote/upload&lt;/li&gt;
&lt;li&gt;Upload memes in image formats (.jpg/.png)&lt;/li&gt;
&lt;li&gt;Adding stories to every meme’s page (knowyourmeme)&lt;/li&gt;
&lt;li&gt;Crediting it to possible OG meme artists who created that meme first&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry>
  <entry>
    <title>My Kernel Intro - sidcode</title>
    <link href="https://sidcode.github.io/letters/my-kernel-intro-sidcode/"/>
    <id>https://sidcode.github.io/letters/my-kernel-intro-sidcode/</id>
    <published>2021-09-23T20:32:00.000Z</published>
    <updated>2021-09-23T20:32:00.000Z</updated>
    <category term="personal"/><category term="professional"/><category term="everything-at-once"/><category term="kernel"/>
    <summary>Intro for block 4 (and beyond)</summary>
    <content type="html">&lt;p&gt;Hello &lt;em&gt;Kernel&lt;/em&gt;! My name is Sid / &lt;em&gt;sidcode&lt;/em&gt; / Siddhant. It means &lt;strong&gt;principles / tenets&lt;/strong&gt;. That is probably why I was naturally drawn to the &lt;a href=&quot;https://kernel.community/en/learn/&quot; class=&quot;external&quot;&gt;syllabus&lt;/a&gt; ;)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goals&lt;/strong&gt; - listening as much as possible, vibing&lt;sup&gt;&lt;a href=&quot;#fn-1&quot; id=&quot;fnref-1&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;, and building &lt;strong&gt;together, for a long long time&lt;/strong&gt;!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Tracks that I’ve been tracking&lt;/strong&gt; - Security, Fair Launch, Gaming, DeFi, Culture, and of course Learn.&lt;/p&gt;
&lt;h2 id=&quot;web3-journey-so-far&quot;&gt;Web3 journey so far:&lt;a class=&quot;h-anchor&quot; href=&quot;#web3-journey-so-far&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;First foray&lt;/strong&gt;: introduced to build on &lt;a href=&quot;https://ipfs.io/&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;IPFS&lt;/span&gt;&lt;/a&gt; in 2016 and stumbled upon Juan Benet &lt;sup&gt;&lt;a href=&quot;#fn-2&quot; id=&quot;fnref-2&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;2&lt;/a&gt;&lt;/sup&gt; (accidentally). Read the &lt;a href=&quot;https://fermatslibrary.com/s/bitcoin&quot; class=&quot;external&quot;&gt;annotated Bitcoin paper&lt;/a&gt; too but did not grok the social consequences fully until much later.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Academic&lt;/strong&gt;: researching smart contracts, &lt;a href=&quot;https://docs.google.com/presentation/d/1mYL72VPl5AY6VyzL1v70c9AHYeqhsRDGAYRgAYwTqR4/edit?usp=sharing&quot; class=&quot;external&quot; data-link-icon=&quot;G&quot; data-link-icon-style=&quot;sans&quot;&gt;memes&lt;/a&gt;, communities, and &lt;span class=&quot;smallcaps-auto&quot;&gt;NFT&lt;/span&gt;s via &lt;a href=&quot;https://www.initc3.org/&quot; class=&quot;external&quot;&gt;IC3, Cornell University&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;DAO&lt;/span&gt;s&lt;/strong&gt;: GitcoinDAO, Token Engineering Commons, SuperTeam, Algovera, ScienceFund, Verses&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GitcoinDAO&lt;/strong&gt;: started in &lt;a href=&quot;https://moonshotcollective.space/&quot; class=&quot;external&quot;&gt;Moonshot Collective&lt;/a&gt;, helped on the &lt;a href=&quot;https://newsletter.banklesshq.com/p/the-ultimate-dao-report&quot; class=&quot;external&quot;&gt;ultimate &lt;span class=&quot;smallcaps-auto&quot;&gt;DAO&lt;/span&gt; workers report&lt;/a&gt;, tech coordinator for &lt;a href=&quot;https://m-m-m.xyz/&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;MMM&lt;/span&gt;&lt;/a&gt; (memes, merch, marketing), a librarian at the &lt;a href=&quot;https://gitcoin.co/blog/seeking-a-new-kind-of-public-good/&quot; class=&quot;external&quot;&gt;Public Goods&lt;/a&gt; workstream. &lt;em&gt;Public Goods are good&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Governauts&lt;/strong&gt;: researching reward systems for the next wave of &lt;span class=&quot;smallcaps-auto&quot;&gt;DAO&lt;/span&gt; coordination on a governauts scholarship with &lt;a href=&quot;https://tokenengineeringcommunity.github.io/website/docs/academy-welcome/#dao-rewards-systems&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;Token Engineering Commons&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Projects&lt;/strong&gt;: &lt;a href=&quot;https://gitcoin.co/grants/4151/silentauth-the-de-facto-multi-factor-authenticator&quot; class=&quot;external&quot;&gt;Silent Auth&lt;/a&gt;, &lt;a href=&quot;https://gitcoin.co/grants/4307/deschool&quot; class=&quot;external&quot;&gt;DeSchool&lt;/a&gt;, contributor to &lt;a href=&quot;https://memes.party&quot; class=&quot;external&quot;&gt;memes.party&lt;/a&gt;, Declaration of &lt;a href=&quot;https://www.interdependence.online/declaration&quot; class=&quot;external&quot;&gt;Interdependence of Cyberspace&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hackathons&lt;/strong&gt;: won the first prize and popularity prize at the &lt;a href=&quot;https://sbic2021.sbip.sg/&quot; class=&quot;external&quot;&gt;Singapore Blockchain Innovation Challenge&lt;/a&gt; in December 2021 for cross-chain community authentication for &lt;span class=&quot;smallcaps-auto&quot;&gt;DAO&lt;/span&gt;s, won the &lt;a href=&quot;https://twitter.com/balajis&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;Balaji Srinivasan&lt;/a&gt; prize at the &lt;a href=&quot;https://buildingoutloud.solana.com/&quot; class=&quot;external&quot;&gt;Solana India hackathon&lt;/a&gt; in September 2021, a &lt;a href=&quot;https://devpost.com/software/charpie&quot; class=&quot;external&quot; data-link-icon=&quot;dp&quot; data-link-icon-style=&quot;sans&quot;&gt;special prize&lt;/a&gt; at HackZurich 2021, and the overall prize at &lt;a href=&quot;https://www.globaltechchallenge.com/&quot; class=&quot;external&quot;&gt;National Blockchain Challenge&lt;/a&gt; in 2019 in Singapore. The real prize in all of these are my friends whom I got to spend those hours with, and the new friends I made subsequently!&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;tech--computer-science&quot;&gt;Tech / (Computer) Science:&lt;a class=&quot;h-anchor&quot; href=&quot;#tech--computer-science&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Security&lt;/strong&gt;: &lt;a href=&quot;https://www.youtube.com/watch?v=JJ5xZvcEE1I&amp;#x26;t=1826s&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;cyber-physical security for national critical infrastructures&lt;/a&gt; at the iTrust Centre for Research in Cyber Security, Singapore University of Technology and Design&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Space&lt;/strong&gt;: satellite image processing and remote sensing for the Indian Space Research Organization. My first foray into free and open source software.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Distributed Systems&lt;/strong&gt;: and Engineering at Goldman Sachs&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Robotics&lt;/strong&gt;: Worked extensively with mobile robot teams and rovers via Google Summer of Code, Italian Mars Society and Python Software Foundation. &lt;a href=&quot;https://sidcode.github.io/categories/gsoc/&quot; class=&quot;internal&quot;&gt;Blog link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Extended Reality&lt;/strong&gt;: designing explainable security and smart cities for &lt;a href=&quot;https://www.lun.com/Pages/NewsDetail.aspx?dt=2018-11-16&amp;#x26;PaginaId=28&amp;#x26;bodyid=0&quot; class=&quot;external&quot;&gt;policymakers through VR/AR/MR&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Papers and Patents&lt;/strong&gt;: despite their pitfalls, centralized institutions have assembled our knowledge graph reasonably OK so far for &lt;a href=&quot;https://scholar.google.co.in/citations?view_op=list_works&amp;#x26;hl=en&amp;#x26;hl=en&amp;#x26;user=u4_lYmUAAAAJ&amp;#x26;alert_preview_top_rm=2&amp;#x26;scilu=&amp;#x26;scisig=AMD79ooAAAAAYcuboWhjqQnNuAekCyEzQAh41NZgqjPs&amp;#x26;gmla=AJsN-F7zSFeadarueSUnSgjOWEfAVKXiomWos9f5D1MtTwXGNlTzmFLFD_T0egP6onwPcDxqU4q2dT4R5YZHs7SpA2_hz1yg7vC7ijKUIZBo9ad327pKksI&amp;#x26;sciund=15946461532337949835&quot; class=&quot;external&quot; data-link-icon=&quot;GS&quot; data-link-icon-style=&quot;sans&quot;&gt;getting one’s ideas out there&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;economics-policy&quot;&gt;Economics, Policy:&lt;a class=&quot;h-anchor&quot; href=&quot;#economics-policy&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Cyber-physical security&lt;/strong&gt;: actively involved in organizing global and local cyber-physical security exercises- like &lt;span class=&quot;smallcaps-auto&quot;&gt;NATO&lt;/span&gt;’s &lt;a href=&quot;https://ccdcoe.org/exercises/locked-shields/&quot; class=&quot;external&quot;&gt;Locked Shields&lt;/a&gt; and &lt;a href=&quot;https://itrust.sutd.edu.sg/ciss/ciss-2021-ol/&quot; class=&quot;external&quot;&gt;Critical Infrastructure Security Showdown&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Startup life&lt;/strong&gt;: Chief strategy/storytelling officer of &lt;a href=&quot;https://silencelaboratories.com/&quot; class=&quot;external&quot;&gt;Silence Labs&lt;/a&gt;. We’ve made authentication invisible while increasing security. &lt;em&gt;Coming soon to web3.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pseudonymous work&lt;/strong&gt;:  editor of the sequel to a top Bitcoin and economics book that you may have most likely read.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Banking&lt;/strong&gt;: learned a lot about global Investment Management, Banking, Markets at my first job as a strategic analyst at Goldman Sachs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Consulting&lt;/strong&gt;: advising policymakers and companies who’re building the future of society.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;community&quot;&gt;Community:&lt;a class=&quot;h-anchor&quot; href=&quot;#community&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.complexityweekend.com/&quot; class=&quot;external&quot;&gt;Complexity Weekend&lt;/a&gt; | Facilitator and eusocial participAnt.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://t.me/joinchat/jTEtN-TDtLc2NDk1&quot; class=&quot;external&quot; data-link-icon=&quot;tg&quot; data-link-icon-style=&quot;sans&quot;&gt;DesignSG&lt;/a&gt; | founder and co-admin for a community of 2050+ designers.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://t.me/joinchat/8dfMVX-gYQlhMDU9&quot; class=&quot;external&quot; data-link-icon=&quot;tg&quot; data-link-icon-style=&quot;sans&quot;&gt;CryptoTechSG&lt;/a&gt; | founder and co-admin for a local community of crypto practitioners. Fun fact: I made Vitalik &lt;a href=&quot;https://twitter.com/sidcode_/status/1443202231293992960?s=20&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;give a shoutout&lt;/a&gt; to the community in one his &lt;span class=&quot;smallcaps-auto&quot;&gt;AMA&lt;/span&gt;s.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://better.sg&quot; class=&quot;external&quot;&gt;Better.sg&lt;/a&gt; | volunteering as a project co-lead and builder in multiple projects &lt;a href=&quot;https://projects.better.sg&quot; class=&quot;external&quot;&gt;listed here&lt;/a&gt; on &lt;a href=&quot;https://saylah.sg&quot; class=&quot;external&quot;&gt;non-verbal accessibility&lt;/a&gt;, safety, and &lt;a href=&quot;https://tobeyou.sg/&quot; class=&quot;external&quot;&gt;multicultural issues via gaming and interactive fiction&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Other Singapore-based groups: ProductSG, GatherSG, Creative Technologists&lt;/li&gt;
&lt;li&gt;India-based groups: Climbing (Bangalore Climbing Initiatives) and Skating (Bengaluru Skaters)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;culture&quot;&gt;Culture:&lt;a class=&quot;h-anchor&quot; href=&quot;#culture&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Poetry&lt;/strong&gt;: expressing computing culture by translating classical Urdu/Hindi poetry to English at &lt;a href=&quot;https://twitter.com/CodeShayari/&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;CodeShayari&lt;/a&gt;. &lt;a href=&quot;https://docs.google.com/document/d/1neMrjcQ2vjJAl7ZE02JlV6wELbxuirITpdQl_Ti1spk/edit#heading=h.zcwjgo9spjww&quot; class=&quot;external&quot; data-link-icon=&quot;G&quot; data-link-icon-style=&quot;sans&quot;&gt;Selected works&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Design&lt;/strong&gt;: &lt;span class=&quot;smallcaps-auto&quot;&gt;MIT&lt;/span&gt; Media Lab &lt;a href=&quot;https://www.indiainitiative.mit.edu/&quot; class=&quot;external&quot;&gt;design innovation workshop&lt;/a&gt;. I designed &lt;a href=&quot;https://www.youtube.com/watch?v=K5bR0ndroVk&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Smart Textiles&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Storytelling&lt;/strong&gt;: bringing stories to code and pull requests (pseudonymoyus stealth project, to be released soon)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Humanities&lt;/strong&gt;: involved in multiple communities studying forgotten/current/emerging cultures (around the world in cyber-physical spaces)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;personal&quot;&gt;Personal:&lt;a class=&quot;h-anchor&quot; href=&quot;#personal&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Physical Culture&lt;/strong&gt;: amateur bodybuilding, strength training, calisthenics, martial arts (Kalaripayattu), and all ten foundational &lt;a href=&quot;http://journal.crossfit.com/2002/04/foundations.tpl&quot; class=&quot;external&quot;&gt;domains of fitness&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Longevity&lt;/strong&gt;: training/nutrition/sleep geek before it was cool&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Food&lt;/strong&gt;: Love everything and anything about the form and function of food of all kinds&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Generalist&lt;/strong&gt;: very putty-like | interested in many things&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sports&lt;/strong&gt;: climbing, skating, football, frisbee, dragon boating, swimming&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dance&lt;/strong&gt;: enthusiast (about music in general)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Filmmaking&lt;/strong&gt; and combining hobbies- like &lt;a href=&quot;https://www.youtube.com/watch?v=gGw6QyDipkI&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;this one&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;upbringing&quot;&gt;Upbringing:&lt;a class=&quot;h-anchor&quot; href=&quot;#upbringing&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;90s kid&lt;/li&gt;
&lt;li&gt;a torchbearer of &lt;a href=&quot;https://twitter.com/sidcode_/status/1448585694041960448?s=20&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;the relay generation&lt;/a&gt;, the last one to be proficient with both analog and digital worlds&lt;/li&gt;
&lt;li&gt;mixed culture kid (genotypically and phenotypically)&lt;/li&gt;
&lt;li&gt;moved around quite a bit in different geographies across continents - coast, desert, valley, mountain, wetland, island&lt;/li&gt;
&lt;li&gt;used to sing as a kid in the Christmas choir and Indian Classical Music. Then life happened. Now it is a plan for later.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;socials&quot;&gt;Socials:&lt;a class=&quot;h-anchor&quot; href=&quot;#socials&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://twitter.com/sidcode_&quot; class=&quot;external&quot; data-link-icon=&quot;𝕏&quot; data-link-icon-style=&quot;sans&quot;&gt;@sidcode on Twitter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://linkedin.com/in/sidcode&quot; class=&quot;external&quot; data-link-icon=&quot;in&quot; data-link-icon-style=&quot;sans&quot;&gt;@sidcode on LinkedIn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;sidcode#1729 on Discord&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All the social networks which I’m gradually giving up on before they give themselves up. Once bitten, twice shy. Looking at you, G+&lt;/p&gt;
&lt;p&gt;Thanks for reading! If you’ve read this far, ping me and I’ll send you a &lt;span class=&quot;smallcaps-auto&quot;&gt;POAP&lt;/span&gt; ;)
&lt;em&gt;Fin&lt;/em&gt;&lt;/p&gt;
&lt;section data-footnotes=&quot;&quot; class=&quot;footnotes&quot; aria-label=&quot;Notes&quot;&gt;&lt;h2 class=&quot;footnotes-title&quot; id=&quot;footnote-label&quot;&gt;Notes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;fn-1&quot;&gt;
&lt;p&gt;And to be one of the best contributors in our &lt;em&gt;memepool&lt;/em&gt;. &lt;a href=&quot;#fnref-1&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn-2&quot;&gt;
&lt;p&gt;Unrelated: I was &lt;a href=&quot;https://www.youtube.com/watch?v=omR7R4wvK8g&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;invited to speak&lt;/a&gt; at the same symposium at Stanford 3 years later &lt;a href=&quot;#fnref-2&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 2&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content>
  </entry>
  <entry>
    <title>Back to the future</title>
    <link href="https://sidcode.github.io/letters/back-to-the-future/"/>
    <id>https://sidcode.github.io/letters/back-to-the-future/</id>
    <published>2021-02-12T04:12:00.000Z</published>
    <updated>2021-02-12T04:12:00.000Z</updated>
    <category term="site"/><category term="design"/><category term="time-travel"/><category term="superpowers"/>
    <summary>Creating a time machine!</summary>
    <content type="html">&lt;p&gt;This letter checks if time travel works as desired. Guess what, it does. Let the trolling and trawling through the threads of time begin-&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Truly thankful to this terrific &lt;em&gt;tenet&lt;/em&gt;&lt;sup&gt;&lt;a href=&quot;#fn-1&quot; id=&quot;fnref-1&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; technology that’s turbocharging truthful tinkerers through these thrilling time travel tropes. Tenaciously tried; thoroughly tested - these turnstile&lt;sup&gt;&lt;a href=&quot;#fn-2&quot; id=&quot;fnref-2&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;2&lt;/a&gt;&lt;/sup&gt; toys. Tata! :)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Context for people reading this after the post date-
This post was conceived and posted sometime in January, 2021. Marvel at the choice of the post date.&lt;sup&gt;&lt;a href=&quot;#fn-4&quot; id=&quot;fnref-4&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;3&lt;/a&gt;&lt;/sup&gt; and thanks for reading! Happy Niu Year&lt;sup&gt;&lt;a href=&quot;#fn-3&quot; id=&quot;fnref-3&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;4&lt;/a&gt;&lt;/sup&gt; to all :)&lt;/p&gt;
&lt;section data-footnotes=&quot;&quot; class=&quot;footnotes&quot; aria-label=&quot;Notes&quot;&gt;&lt;h2 class=&quot;footnotes-title&quot; id=&quot;footnote-label&quot;&gt;Notes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;fn-1&quot;&gt;
&lt;p&gt;My name means &lt;em&gt;tenet&lt;/em&gt;, which also happens to be a &lt;a href=&quot;https://www.imdb.com/title/tt06723592/&quot; class=&quot;external&quot; data-link-icon=&quot;IMDb&quot; data-link-icon-style=&quot;sans&quot;&gt;2020 Christopher Nolan movie&lt;/a&gt; about principles and time-travel &lt;a href=&quot;#fnref-1&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn-2&quot;&gt;
&lt;p&gt;Red and Blue turnstiles are used in &lt;em&gt;Tenet&lt;/em&gt; to travel back and forth the linear timeline &lt;a href=&quot;#fnref-2&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 2&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn-4&quot;&gt;
&lt;p&gt;P.S. - palindrome &lt;a href=&quot;#fnref-4&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 3&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn-3&quot;&gt;
&lt;p&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;CNY&lt;/span&gt; 2021 Ox &lt;a href=&quot;#fnref-3&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 4&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content>
  </entry>
  <entry>
    <title>Jeet Kune Do!</title>
    <link href="https://sidcode.github.io/letters/jeet-kune-do/"/>
    <id>https://sidcode.github.io/letters/jeet-kune-do/</id>
    <published>2021-01-31T18:04:00.000Z</published>
    <updated>2021-01-31T18:04:00.000Z</updated>
    <category term="personal"/>
    <summary>A specialized generalist&#39;s approach to life - &quot;Be water, my friend!&quot;</summary>
    <content type="html">&lt;p&gt;Even though this letter is just a draft right now, I am publishing it anyway. It’ll stay on the front page eventually forcing me to edit it so it’s not a grot letter anymore.&lt;/p&gt;
&lt;p&gt;This letter is dedicated to the logo that you see on the site. It’s a member of the &lt;em&gt;Taijitu&lt;/em&gt; family &lt;sup&gt;&lt;a href=&quot;#fn-1&quot; id=&quot;fnref-1&quot; data-footnote-ref=&quot;&quot; class=&quot;footnote-ref&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;JKD&lt;/span&gt; is Bruce Lee’s contribution to Martial Arts. Capturing the best-of-”insert your favourite martial art”, he created &lt;em&gt;Jeet Kune Do&lt;/em&gt; - a pinnacle of duelism (or even dualism).&lt;/p&gt;
&lt;h2 id=&quot;heres-a-computer-science-or-record-keeping-analogy-to-the-philosophyprincipletenetसिद्धांत-thats-core-to-jeet-kune-do-&quot;&gt;Here’s a Computer Science or record-keeping analogy to the philosophy/principle/tenet/सिद्धांत that’s core to Jeet Kune Do-&lt;a class=&quot;h-anchor&quot; href=&quot;#heres-a-computer-science-or-record-keeping-analogy-to-the-philosophyprincipletenetसिद्धांत-thats-core-to-jeet-kune-do-&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Create what is novel&lt;/li&gt;
&lt;li&gt;Retain what works&lt;/li&gt;
&lt;li&gt;Update what exists&lt;/li&gt;
&lt;li&gt;Delete what does not work&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- SIDTODO: Ip Man, Kalaripayattu, Taijitu, duality, etc. --&gt;
&lt;section data-footnotes=&quot;&quot; class=&quot;footnotes&quot; aria-label=&quot;Notes&quot;&gt;&lt;h2 class=&quot;footnotes-title&quot; id=&quot;footnote-label&quot;&gt;Notes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;fn-1&quot;&gt;
&lt;p&gt;the Yin Yang symbol being one of the popular ones &lt;a href=&quot;#fnref-1&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content>
  </entry>
  <entry>
    <title>Winning the National Blockchain Challenge</title>
    <link href="https://sidcode.github.io/letters/winning-the-national-blockchain-challenge/"/>
    <id>https://sidcode.github.io/letters/winning-the-national-blockchain-challenge/</id>
    <published>2019-06-22T12:50:00.000Z</published>
    <updated>2019-06-22T12:50:00.000Z</updated>
    
    <summary>Post-hackathon interview about BlockBuster</summary>
    <content type="html">&lt;h2 id=&quot;context&quot;&gt;Context&lt;a class=&quot;h-anchor&quot; href=&quot;#context&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Aung and I responded to the following interview soon after the National Blockchain Challenge 2019. This was a pivotal moment for me to understand the importance of this emerging technology in an emerging smart nation such as Singapore.&lt;/p&gt;
&lt;h3 id=&quot;blockbuster---siddhant-shrivastava-aung-maw-sanskar-shrivastava-and-tarun-kumar-vangani--post-nbc19-interviews&quot;&gt;BlockBuster - Siddhant Shrivastava, Aung Maw, Sanskar Shrivastava, and Tarun Kumar Vangani | Post-NBC’19 Interviews&lt;a class=&quot;h-anchor&quot; href=&quot;#blockbuster---siddhant-shrivastava-aung-maw-sanskar-shrivastava-and-tarun-kumar-vangani--post-nbc19-interviews&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Sid&lt;/strong&gt;dhant Shrivastava, Aung Maw, Sanskar Shrivastava, and Tarun Kumar Vangani participated in the &lt;a href=&quot;https://nbc.devpost.com/&quot; class=&quot;external&quot; data-link-icon=&quot;dp&quot; data-link-icon-style=&quot;sans&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;NBC&lt;/span&gt;’19 Hackathon&lt;/a&gt; recently, and we caught up with them after the event to ask them about how it went for them.&lt;/p&gt;
&lt;p&gt;Their &lt;a href=&quot;https://drive.google.com/drive/folders/19YGIej8HdK9QfdwqksnJ2Y50qa_KGl0o&quot; class=&quot;external&quot; data-link-icon=&quot;G&quot; data-link-icon-style=&quot;sans&quot;&gt;presentation is available on Google Drive&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Sid and Aung presented the technical and business pitches on the day of the Finale. Their project, aptly named BlockBusters, bagged the first prize overall and the Vertical Prize in the Cybersecurity category of the inaugral &lt;a href=&quot;https://www.globaltechchallenge.com/&quot; class=&quot;external&quot;&gt;event&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Enjoy the interview!&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
Hi!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid and Aung&lt;/strong&gt; : Heya Brendan and our dear readers! Thanks for helping make BlockBuster the blockbuster project in the inaugral National Blockchain Challenge 2019 😊&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
Tell us a bit about your project…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid and Aung&lt;/strong&gt;: Before we do that, we must tell that we took the ‘you are allowed to pivot your idea at any time’ rule too seriously and ended up changing our project idea thrice (right up until the evening of Day 2)! Even the name of the project went through two major iterations (formerly called BlockBox - which was an unimaginative play on the black box nature of blockchain and “The Box” from the &lt;span class=&quot;smallcaps-auto&quot;&gt;HBO&lt;/span&gt; show ‘Silicon Valley’) 😂&lt;/p&gt;
&lt;p&gt;But it all ended up working out for the best as our final idea of BlockBusters closely matched our original idea of securing decentralized systems, such as Internet of Things Devices using a decentralized technology such as the Blockchain.&lt;/p&gt;
&lt;p&gt;Here’s the elevator pitch - “BlockBuster detects the tampered blocks of data in any storage system and recovers the original data back for you, even in the case of cyber-attacks.”&lt;/p&gt;
&lt;p&gt;BlockBuster is a cyber-physical security solution for securing time-series databases through the principles of Blockchain and Distributed Systems. The prototype for the hackathon focuses on tamper-proofing the centralized database of a sample Power/Energy System with six stages. It is common for Critical Infrastructures of a city to have these centralized databases which are prone to cyberattacks and modifications. This makes the task of forensic investigation about the attack quite intractable. BlockBuster solves this issue of data-tampering of this centralized ‘historian’ database by enforcing replication and immutability of data (and hence ‘busts’ the harmful effects of attacks on the valuable plant operation data). BlockBuster replicates data across storage nodes to verify and recover the data in case the database is tampered with after a cyber-attack takes place. BlockBuster also works with existing attack detection techniques and enhances the integrity and availability of security devices themselves so they can be used for useful forensics and reconnaisance. Future plans include adding a service like Torus to establish a blockchain-based access control thereby bringing confidentiality to BlockBuster. For the prototype, we use a private Ethereum account, but the design of the system is generic enough to scale across a full-fledged operational plant, smart home, hospital, or a city using permissioned or public Ethereum or other blockchain networks as well.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
What I found interesting about your project was your focus on leveraging the properties of a blockchain as an immutable ledger, as well as having multiple redundant copies of the data, to allow a system to recover when some of the nodes have had their data corrupted by bad actors.
Could you elaborate more on that?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid and Aung&lt;/strong&gt;: Sure thing, Blockchain For The Win! Hackathons are a show-and-tell, so we’d rather show it to you. Watch the demo &lt;a href=&quot;https://youtu.be/3YolkE1U3gU?t=11965&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;here!&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
Was that the idea that you originally started with, or did you change things along the way?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid and Aung&lt;/strong&gt;: We pivoted our idea thrice during the hackathon - Smart Homes, Access Control, and then ended up on Critical Infrastructures. It is important to describe our workplace here since it inspired all of these ideas -&lt;/p&gt;
&lt;p&gt;We are both researchers in Prof. Aditya Mathur’s group at the iTrust Centre for Research in Cyber Security, Singapore University of Technology and Design. Our daily work focuses mainly on security in the design phase of Critical Cyber-Physical Systems, devising techniques to generate attacks, predict attacks, defend against these attacks, and also playing around with explorable security labs in Mixed/Virtual Reality. The lab has scaled-down versions of a city’s water treatment plant, water distribution plant, a power grid, and an Internet of Things Testbed. The interconnected nature of these testbeds help us study realistic scenarios of cyber-physical attacks on a city like Singapore.&lt;/p&gt;
&lt;p&gt;In fact, one of the judges appreciated how a project like BlockBuster could have been used to assist in the attack detection and forensic investigation during the SingHealth cyber attack in 2018.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
Do you intend to continue working on the project, now that the hackathon is over?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid and Aung&lt;/strong&gt;: Oh yes, indeed. In fact, Dr. Rex from &lt;span class=&quot;smallcaps-auto&quot;&gt;BANSEA&lt;/span&gt; motivated us to ship the project in some form as soon as possible and we are working on it as we speak.&lt;/p&gt;
&lt;p&gt;The big idea that we see here is that BlockBuster can be used for securing security devices themselves, thereby making the “Who Watches the Watchmen?” problem easier to solve. Its decentralized nature makes it extremely computationally intensive to be attacked.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
Was there anything new that you learnt during the hackathon?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid, Aung, Sanskar, Tarun&lt;/strong&gt;: That’s a rhetoric question! All of us had different motivations during the event - but were united by the love for learning (after all we were at the &lt;strong&gt;Lifelong Learning Institute&lt;/strong&gt;!).&lt;/p&gt;
&lt;p&gt;Ever since he saw the flyers for the event in the &lt;span class=&quot;smallcaps-auto&quot;&gt;SUTD&lt;/span&gt; elevators, Sid wanted to learn more about Blockchain and relate it to cybersecurity (coming from a background in Computer Science, Design, and Virtual Reality). It was Aung’s and Sanskar’s first hackathon ever (and they ended up winning it!). Sanskar had just finished high school at the time of the hackathon and wanted to learn about how hackathons work and also got to dabble in vector graphics design. Tarun is exceptionally talented at machine learning and Python and wanted to branch out into this new promising technology through this event.&lt;/p&gt;
&lt;p&gt;But technical skills aside, we learned a lot about hustling, public speaking, sharing responsibility and ownership. In the spirit of Blockchain, we were a very efficient distributed and decentralized system ourselves throughout the event!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
Did you attend any of the workshop events that were held in the lead up to the hackathon?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid and Aung&lt;/strong&gt;: Yes, we interacted quite a bit with the mentors, judges, and organizers all throughout the event as well. It was heartening to see the &lt;span class=&quot;smallcaps-auto&quot;&gt;CEO&lt;/span&gt; of a company make changes to their product’s &lt;span class=&quot;smallcaps-auto&quot;&gt;API&lt;/span&gt; (in production worldwide) on the spot so we could use it conveniently.&lt;/p&gt;
&lt;p&gt;We are fortunate that the events that we could not attend were recorded and livestreamed so our other teammates could get up to speed. Kudos to Engineers.SG!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
What did you think about the hackathon in general?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid&lt;/strong&gt;: Exceptionally well-organized for its first season. The organizers pulled it off as veterans in the field of organizing hackathons. The Slack channel was a treat to watch with an extremely high signal to noise ratio which is pretty rare for such events. A huge shoutout to Wing, Brendan, Daniel, Lewis Wong,  who went out of their way to make our project better and understand our schedule.&lt;/p&gt;
&lt;p&gt;Besides that, the venue (&lt;strong&gt;Lifelong Learning Institute&lt;/strong&gt;) was quite hassle-free and spacious to work at. All the logistics issues were well-taken care of. The mentors and judges were quite friendly and motivating. The mini-hackathon in the form of the gamified checklist did push us to learn some Business concepts (things we do for &lt;span class=&quot;smallcaps-auto&quot;&gt;SWAG&lt;/span&gt;!)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
What was your favourite part about the hackathon?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid and Aung&lt;/strong&gt;: The public speaking opportunity with the luminaries in the audience, hands down! There were not only &lt;span class=&quot;smallcaps-auto&quot;&gt;CEO&lt;/span&gt;s and &lt;span class=&quot;smallcaps-auto&quot;&gt;CTO&lt;/span&gt;s, but also people who get to decide a lot of policies around the region. To convince them that our project is worthwhile and get their positive feedback is an immense confidence boost for us to proceed further on this journey to help Singapore become the Cybersecurity powerhouse that it aims to become through the Digital Defense initiative. It is heartening to see a bubbling blockchain brotherhood of sorts in our little Red Dot with frequent meetups and startups in this space. Events like this, where a six year old kid can present a business pitch to such an audience, are exactly what we need to make Singapore greater in the tech scene (that was also our favourite part, by the way!).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
If we were to hold the hackathon again, what did you think could be improved?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid and Aung&lt;/strong&gt;: Not much really, this is one of the better-organized hackathons that we’ve been to. We especially liked the rewards design of the hackathon where the top three prizes have the same prize money (our position among the winners notwithstanding 🙃). We’d recommend this and other events organized by the Global Tech Challenge to anyone (and even try participating in them)!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brendan&lt;/strong&gt;:
Thank you&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sid and Aung&lt;/strong&gt;: You’re the best Brendan! Thanks for the interview and this unique opportunity :+1:&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;We were quite excited to see all of the cool projects that were built
during the event, and hope that you continue building them.&lt;/p&gt;
&lt;p&gt;For many participants, this event was not just about the competition, but also about the learning.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>First Aid in the wild(erness)</title>
    <link href="https://sidcode.github.io/letters/first-aid-in-the-wilderness/"/>
    <id>https://sidcode.github.io/letters/first-aid-in-the-wilderness/</id>
    <published>2017-02-02T07:59:00.000Z</published>
    <updated>2017-02-02T07:59:00.000Z</updated>
    <category term="climbing"/><category term="first-aid"/><category term="injuries"/><category term="community"/><category term="bangalore"/><category term="india"/><category term="skills"/><category term="serendipitous-skills"/>
    <summary>Being bewildered by the wondrous world of wilderness first aid</summary>
    <content type="html">&lt;p&gt;This morning I attended a wilderness first aid workshop conducted by Muggy/Bhaskar - the guy who first showed me the ropes of roped climbing. &lt;span class=&quot;smallcaps-auto&quot;&gt;SIDENOTE&lt;/span&gt;- Muggy was trained in both Wilderness First Aid and Wilderness First Response and chose to conduct this workshop pro-bono. Another climber provided his amazing office space on a Sunday. This was my first time seeing what a software consultant’s life actually looks like.&lt;/p&gt;
&lt;!-- SIDTODO - share more about the day, the ambience, and the amazing bunch of people. The day started with some amazing `thatte idly` and `bisibelabath` - Bengaluru&#39;s pride. --&gt;
&lt;p&gt;The session covered the different kinds of injuries- scratches, strains, sprains, fractures, bites, and every random scenario one will probably never face out in the wild except when they do. Muggy made an extensive powerpoint presentation pro-bono - this gesture to help and create caring communities continues to drive me in my effective altruistic ways circa 2020s.&lt;/p&gt;
&lt;p&gt;I learned how to apply bandages, create tourniquets, make makeshift stretchers out of ropes. We even did mock scenarios on one of our climbing buddies. It is recommended that weekend warrior wilderness folk (&lt;span class=&quot;smallcaps-auto&quot;&gt;SIDENOTE&lt;/span&gt;- apparently that’s what semi-adventurous citydwellers are called these days) practice these scenarios very frequently to keep up with the minutiae of these chops. The last thing we want is to make a snake bite worse by restricting bloodflow in the wrong area or drop a fractured friend due to wrong ropework while carrying them back from the crag.&lt;/p&gt;
&lt;!-- SIDTODO- Look up the notes I made for the day and share them with the world. --&gt;
&lt;aside class=&quot;note-from&quot; aria-label=&quot;Note from the future, circa late 2017&quot;&gt;&lt;p class=&quot;note-from-label&quot;&gt;Note from the future, circa late 2017&lt;/p&gt;&lt;p&gt;I got to apply the technique I learned to immobilize a possible hairline fracture on one of my goalkeeper friend’s fingers, by using some steri-tape, when the fast and furious football fried his fingers rather than the palm. It was great to conduct a diagnostic test for fractures - knocking gently at the neighbouring joints. It was appalling to see how unaware most of us are until we indulge in these esoteric activies of our ancestors who survived in the wilderness. One friend suggested applying a muscle relaxant cream/spray on the finger. Fortunately, we convinced this well-meaning-but-utterly-disastrous advice remained just that - a conversation piece for nostalgia.&lt;/p&gt;&lt;/aside&gt;
&lt;aside class=&quot;note-from&quot; aria-label=&quot;Note from 2021&quot;&gt;&lt;p class=&quot;note-from-label&quot;&gt;Note from 2021&lt;/p&gt;&lt;p&gt;Blood Flow Restriction is not just semi-helpful in snake bites. It is also an effective driver of strength and hypertrophy at relatively low training intensities. This is backed by increasing amounts of evidence. I’ll try applying this for some of my upper body training as I recuperate after a surgery.&lt;/p&gt;&lt;/aside&gt;
&lt;p&gt;&lt;strong&gt;Takeaway&lt;/strong&gt;- always carry a well-stocked &lt;code&gt;wilderness&lt;/code&gt; first aid kit (&lt;span class=&quot;smallcaps-auto&quot;&gt;SIDENOTE&lt;/span&gt;- here’s how it differs from a superficial first-aid kit), it saves lives!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Telerobotics - Final Report</title>
    <link href="https://sidcode.github.io/letters/telerobotics-final-report/"/>
    <id>https://sidcode.github.io/letters/telerobotics-final-report/</id>
    <published>2015-08-22T11:53:00.000Z</published>
    <updated>2015-08-22T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Eighteenth Post and Project Report for the last week of the Google Summer of Code 2015 program</summary>
    <content type="html">&lt;p&gt;Hi all! Yesterday was the firm-pencils-down deadline for the Coding Period and the past week was one of the best weeks of the &lt;em&gt;Google Summer of Code 2015&lt;/em&gt; program. I went all-guns-blazing with the &lt;strong&gt;documentation&lt;/strong&gt; and &lt;em&gt;Virtual Machine distribution efforts&lt;/em&gt; of my work on Telerobotics. I also added some significant features to Telerobotics such as &lt;em&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Integration with the &lt;span class=&quot;smallcaps-auto&quot;&gt;EUROPA&lt;/span&gt; Scheduler&lt;/em&gt; which &lt;a href=&quot;https://shrigsoc.blogspot.in/2015/08/finals.html&quot; class=&quot;external&quot;&gt;Shridhar&lt;/a&gt; worked on this summer with the Italian Mars Society.&lt;/p&gt;
&lt;h2 id=&quot;project-report&quot;&gt;Project Report&lt;a class=&quot;h-anchor&quot; href=&quot;#project-report&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I completed the main aspects of the Telerobotics interface with strong results -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Introduced Robot Operating Sytem (&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;) to &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Developed a Telerobotics Interface to Bodytracking and &lt;span class=&quot;smallcaps-auto&quot;&gt;EUROPA&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Implemented Stereoscopic Streaming of 3-D video to the Blender Game Engine V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; application&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I explain each of these points and summarize my experience in the following paragraphs. In the last week, I got a chance to pursue a collective effort in all the areas of my project -&lt;/p&gt;
&lt;h3 id=&quot;replication-experiments&quot;&gt;Replication Experiments&lt;a class=&quot;h-anchor&quot; href=&quot;#replication-experiments&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The ultimate week began with attempts to ensure that my mentors could replicate my machine setup in order to test and comment on the performance of Telerobotics. To that end, I added detailed instructions to describe my machine and network configuration, which can be &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/doc/machine-configurations.rst?at=default&quot; class=&quot;external&quot;&gt;found here&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;docker-working&quot;&gt;Docker Working!&lt;a class=&quot;h-anchor&quot; href=&quot;#docker-working&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;I delineated the importance of Docker in this project in a &lt;a href=&quot;https://sidcode.github.io/letters/all-for-docker-docker-for-all/&quot; class=&quot;internal&quot;&gt;previous post&lt;/a&gt;. Franco started the ball rolling by telling me how the &lt;a href=&quot;https://www.itsprite.com/openstack-docker-for-gui-based-environments/&quot; class=&quot;external&quot;&gt;ssh-to-image&lt;/a&gt; method could be used for running Qt applications in Docker. &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and Gazebo employ Qt extensively for their visualization and simulation applications. Thus, it was a non-functional requirement of Telerobotics. Thus the long-standing Docker issue was solved. The final Docker image with everything packaged can be used to test Telerobotics. The image can be pulled &lt;a href=&quot;https://hub.docker.com/r/sidcode/ros-eras/&quot; class=&quot;external&quot;&gt;from here&lt;/a&gt;. The instructions to use the image are in the &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/doc/docker-instructions.rst?at=default&quot; class=&quot;external&quot;&gt;Telerobotics Documentation pages&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A walkthrough with the Docker image can be found in this YouTube video that I created -&lt;/p&gt;
&lt;figure class=&quot;embed embed-video&quot;&gt;&lt;div class=&quot;video-facade&quot; data-provider=&quot;youtube&quot; data-id=&quot;cyGshc9RLoQ&quot; data-params=&quot;&quot; style=&quot;background-image:url(/media/youtube/cyGshc9RLoQ.jpg)&quot;&gt;&lt;button class=&quot;video-play&quot; type=&quot;button&quot; aria-label=&quot;Play video (loads YouTube)&quot;&gt;&lt;span class=&quot;video-play-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;figcaption&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=cyGshc9RLoQ&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Watch on YouTube&lt;/a&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h3 id=&quot;fallback-keyboard-teleoperation&quot;&gt;Fallback Keyboard Teleoperation&lt;a class=&quot;h-anchor&quot; href=&quot;#fallback-keyboard-teleoperation&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Telerobotics works out of the box with the Bodytracking module that Vito has developed. But in the unfortunate case when the Tango-Control server fails, there emerges the functional requirement to have a &lt;strong&gt;fallback interface&lt;/strong&gt; in place. Seeking inspiration from the Teleoperation tools for &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;, I added the Fallback Keyboard Teleoperation interface. Thus, the Rover can now also be controlled with the Keyboard if need be. The controls are currently inclined  towards right-handed astronauts. I hope to add the left-handed version soon as a minor extension of the interface.
The code for this can be &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/src/teleoperation-keyboard.py?at=default&quot; class=&quot;external&quot;&gt;found here&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;europa-and-navigation-interfaces&quot;&gt;EUROPA and Navigation Interfaces&lt;a class=&quot;h-anchor&quot; href=&quot;#europa-and-navigation-interfaces&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Shridhar’s work on the &lt;a href=&quot;https://code.google.com/p/europa-pso/&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;EUROPA&lt;/span&gt; platform&lt;/a&gt; needed access to the Telerobotics interface for the following tasks -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Getting Robot Diagnostic Information&lt;/li&gt;
&lt;li&gt;Navigating the Robot to certain points&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I achieved the initial goal before midsems. The second goal was achieved this week after the &lt;span class=&quot;smallcaps-auto&quot;&gt;EUROPA&lt;/span&gt; Planner was complete. The workflow to this end was to receive coordinates from the &lt;span class=&quot;smallcaps-auto&quot;&gt;EUROPA&lt;/span&gt; Tango Server and send them to the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Node corresponding to the Husky.&lt;/p&gt;
&lt;p&gt;Finding the optimal path between two points on an incompletely-known map is solved by using &lt;a href=&quot;https://wiki.ros.org/amcl&quot; class=&quot;external&quot; data-link-icon=&quot;ROS&quot; data-link-icon-style=&quot;sans&quot;&gt;Augmented Monte Carlo Localization&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It is necessary to localize the rover with respect to its environment based on the inputs of its multiple sensors. The following diagram from the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; website explains the concept -
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/ros_localization.png&quot; alt=&quot;ROS Localization&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;800&quot; height=&quot;610&quot;&gt;&lt;/p&gt;
&lt;p&gt;I used the Husky frame coordinates and added the code using the &lt;a href=&quot;https://wiki.ros.org/actionlib&quot; class=&quot;external&quot; data-link-icon=&quot;ROS&quot; data-link-icon-style=&quot;sans&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Action Server and Action Client&lt;/a&gt; and Tango Event Listeners to create the appropriate &lt;strong&gt;Telerobotics-&lt;span class=&quot;smallcaps-auto&quot;&gt;EUROPA&lt;/span&gt; interfaces&lt;/strong&gt;. It can be &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/src/europa-navigation.py?at=default&quot; class=&quot;external&quot;&gt;found here&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;minoru-camera-tools&quot;&gt;Minoru Camera Tools&lt;a class=&quot;h-anchor&quot; href=&quot;#minoru-camera-tools&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The Minoru 3-D Camera that I used to prototype &lt;a href=&quot;&quot;&gt;streaming applications&lt;/a&gt; for &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; has obscure documentation for Linux platforms. I was able to setup the Minoru Calibration tools from a &lt;a href=&quot;https://github.com/bashrc/libv4l2cam&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;Git clone&lt;/a&gt; of the &lt;a href=&quot;https://code.google.com/p/sentience/wiki/MinoruWebcam&quot; class=&quot;external&quot;&gt;original&lt;/a&gt; &lt;code&gt;vl42stereo&lt;/code&gt; package. I added them to the &lt;code&gt;streams&lt;/code&gt; tree of the Telerobotics source code. It can be &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/streams/Minoru3D/v4l2stereo-calibrate-minoru/?at=default&quot; class=&quot;external&quot;&gt;accessed here&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;documentation&quot;&gt;Documentation!&lt;a class=&quot;h-anchor&quot; href=&quot;#documentation&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;2023 Update - The documentation has been moved to: &lt;a href=&quot;https://marscity.readthedocs.io/en/latest/servers/telerobotics/doc/index.html&quot; class=&quot;external&quot;&gt;https://marscity.readthedocs.io/en/latest/servers/telerobotics/doc/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The following paragraph is being kept in for posterity’s sake.&lt;/p&gt;
&lt;p&gt;The documentation underwent a major overhaul this week. In addition to &lt;strong&gt;commenting the code&lt;/strong&gt; since the beginning, I ensured to update/add the following documentation pages -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/doc/sad.rst?at=default&quot; class=&quot;external&quot;&gt;Software Architecture Document for Telerobotics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/doc/docker-instructions.rst?at=default&quot; class=&quot;external&quot;&gt;Docker Image Setup Instructions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/doc/telerobotics-guide.rst?at=default&quot; class=&quot;external&quot;&gt;Telerobotics Walkthrough&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/doc/setup-minoru.rst?at=default&quot; class=&quot;external&quot;&gt;Minoru Camera Calibration and Instructions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/erasvr/doc/setup.rst?at=default&quot; class=&quot;external&quot;&gt;Oculus Rift Troubleshooting and Installation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/doc/setup-ffmpeg.rst?at=default&quot; class=&quot;external&quot;&gt;Video Streaming FFmpeg Manual&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The latest version of the documentation can be &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/402e47bccb3e329c95596a06f8cc66cafcaa0658/servers/telerobotics/doc/?at=default&quot; class=&quot;external&quot;&gt;found here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The excitement of the final moments can be ascertained from my commit patterns on the last day -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/gsoc_ends.png&quot; alt=&quot;Archive Tagging&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;&lt;/figure&gt;
&lt;blockquote&gt;
&lt;p&gt;Learning Experience&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The past 12 weeks (and an almost equivalent time before that during application period) have been transformative.&lt;/p&gt;
&lt;p&gt;Just to get an idea of the different tools and concepts that I’ve been exposed to, here’s a list -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tango Controls&lt;/li&gt;
&lt;li&gt;Robot Operating System&lt;/li&gt;
&lt;li&gt;Blender Game Engine&lt;/li&gt;
&lt;li&gt;Oculus Rift&lt;/li&gt;
&lt;li&gt;FFmpeg&lt;/li&gt;
&lt;li&gt;Stereoscopic Cameras&lt;/li&gt;
&lt;li&gt;Video4Linux2&lt;/li&gt;
&lt;li&gt;Python&lt;/li&gt;
&lt;li&gt;OpenVPN&lt;/li&gt;
&lt;li&gt;Docker&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That indicates a great deal of experience in terms of tools alone.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I learned how to create software architecture documents, how to work in tandem with other developers, how to communicate in the Open Source Community, when to seek help, how to seek help, how to help others, how to document my work, how to blog, and much more.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;With so many things to say, here’s what I must definitely acknowledge -&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Thank you Python Software Foundation, Italian Mars Society, and Google Open Source Programs Office for this opportunity!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I seriously can’t imagine a better way in which I could have spent the past summer. I got a chance to pursue what I wanted to do, got an amazing mentoring and umbrella organization, a fascinating group of peers to work with, and arguably the best launchpad for Open Source contributions - the Google Summer of Code.&lt;/p&gt;
&lt;p&gt;Time for evaluations now! Fingers crossed :-)&lt;/p&gt;
&lt;p&gt;I have maintained a weekly-updated blog since the beginning of this summer of code. My organization required the blog frequency to be one post every two weeks. I loved blogging about my progress throughout. The eighteen posts so far can be found in the &lt;a href=&quot;https://sidcode.github.io/categories/gsoc/&quot; class=&quot;internal&quot;&gt;GSoC Category of my website&lt;/a&gt;.
In case you are interested in this project with the Italian Mars Society, you can follow the &lt;a href=&quot;https://sidcode.github.io/tags/ims/&quot; class=&quot;internal&quot;&gt;page of my blog&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ciao!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Telerobotics - The Penultimate Crescendo</title>
    <link href="https://sidcode.github.io/letters/telerobotics-the-penultimate-crescendo/"/>
    <id>https://sidcode.github.io/letters/telerobotics-the-penultimate-crescendo/</id>
    <published>2015-08-14T11:53:00.000Z</published>
    <updated>2015-08-14T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Seventeenth Post for the seventh bi-weekly report for the Google Summer of Code 2015 program</summary>
    <content type="html">&lt;p&gt;Hi! As the hard-deadline date for the &lt;em&gt;Google Summer of Code&lt;/em&gt; program draws to a close, I can feel the palpable tension that is shared by my mentors and fellow students at the &lt;strong&gt;Italian Mars Society&lt;/strong&gt; and the &lt;strong&gt;Python Software Foundation&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;#All-Hands Meeting&lt;/p&gt;
&lt;p&gt;We at the &lt;em&gt;Italian Mars Society&lt;/em&gt; had the third all-hands meeting last evening (13th August). The almost two-hour Skype Conference call discussed a gamut of topics in-depth. Some of these were-&lt;/p&gt;
&lt;h2 id=&quot;software-testing--guidelines&quot;&gt;&lt;strong&gt;Software Testing&lt;/strong&gt;  guidelines&lt;a class=&quot;h-anchor&quot; href=&quot;#software-testing--guidelines&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Ezio described the various ways of &lt;strong&gt;Unit Testing&lt;/strong&gt; in different applications like rover movements, bodytracking, etc. In my case I had been checking for setup prerequisites and establishing the serializability of the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; system before other modules could start up. That way the it is successfully ensured that all the required distributed systems are up and running before they are used. &lt;strong&gt;Integration Testing&lt;/strong&gt; is crucial in the &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; application where things like Telerobotics, Bodytracking, and the &lt;span class=&quot;smallcaps-auto&quot;&gt;EUROPA&lt;/span&gt; Planner all blend together seamlessly. I’ve integrated Telerobotics and Bodytracking which can be observed in &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/commits/e87a0c1bfb46e0b8ba4b684b51060f8527aa1d6b&quot; class=&quot;external&quot;&gt;this commit&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;telerobotics&quot;&gt;Telerobotics&lt;a class=&quot;h-anchor&quot; href=&quot;#telerobotics&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Telerobotics in its current state is more precise than ever. This video demonstrates this fact -&lt;/p&gt;
&lt;figure class=&quot;embed embed-video&quot;&gt;&lt;div class=&quot;video-facade&quot; data-provider=&quot;youtube&quot; data-id=&quot;94vfIr1cu7k&quot; data-params=&quot;&quot; style=&quot;background-image:url(/media/youtube/94vfIr1cu7k.jpg)&quot;&gt;&lt;button class=&quot;video-play&quot; type=&quot;button&quot; aria-label=&quot;Play video (loads YouTube)&quot;&gt;&lt;span class=&quot;video-play-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;figcaption&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=94vfIr1cu7k&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Watch on YouTube&lt;/a&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The YouTube link for the video is &lt;a href=&quot;https://www.youtube.com/watch?v=94vfIr1cu7k&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I improved upon the previous integration with Bodytracking and handled the possible exceptions that may occur. The results have been stunning. I used the updated version of &lt;a href=&quot;https://vigentile.wordpress.com/2015/07/31/enhancement-of-kinect-integration-in-v-eras-fifth-report/&quot; class=&quot;external&quot;&gt;Vito’s bodytracker&lt;/a&gt; which can detect closed hands. Since the sensor refresh-rate has been reduced to 30 times per second, the Telerobotics module has much smoother movements. Here is a snapshot of the Bodytracking application running in a Windows Virtual Machine -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/visual-3.png&quot; alt=&quot;Visual Tracker&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;838&quot; height=&quot;553&quot;&gt;&lt;/figure&gt;
&lt;h2 id=&quot;europa-planner-and-navigation-integration&quot;&gt;EUROPA Planner and Navigation Integration&lt;a class=&quot;h-anchor&quot; href=&quot;#europa-planner-and-navigation-integration&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Shridhar has been working on the Planner which outputs Cartesian coordinates in the format &lt;code&gt; (x,y)&lt;/code&gt; to which the rover must navigate. I am using the &lt;code&gt;AMCL&lt;/code&gt; navigation algorithm for known maps in addition to the &lt;code&gt;actionlib&lt;/code&gt; server of &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; to facilitate this integration. The challenge here is to resolve between the Cartesian coordinates of &lt;code&gt;EUROPA&lt;/code&gt; and that of &lt;code&gt;ROS&lt;/code&gt;. This should be hopefully complete in the next couple of days.&lt;/p&gt;
&lt;h2 id=&quot;amadee15-mission&quot;&gt;AMADEE15 mission&lt;a class=&quot;h-anchor&quot; href=&quot;#amadee15-mission&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Yuval described that the the recently concluded mission was a huge success which focused on the following frontiers-&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;GPS&lt;/span&gt; integration with Blender&lt;/li&gt;
&lt;li&gt;Photogrammetry to reproduce Blender scenes for Virtual &lt;span class=&quot;smallcaps-auto&quot;&gt;EVA&lt;/span&gt;s.&lt;/li&gt;
&lt;li&gt;Unity3D and Oculus Integration&lt;/li&gt;
&lt;li&gt;AoudaX realtime software&lt;/li&gt;
&lt;li&gt;Generic &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; Data Logger&lt;/li&gt;
&lt;li&gt;Husky navigation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Franco explained in brief about the &lt;em&gt;Neuro-vestibular&lt;/em&gt; and &lt;em&gt;Husky&lt;/em&gt; Scientific experiments.&lt;/p&gt;
&lt;h2 id=&quot;other-things&quot;&gt;Other things&lt;a class=&quot;h-anchor&quot; href=&quot;#other-things&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Final efforts with Docker - After a lot of success, I have just one gripe with &lt;strong&gt;Docker&lt;/strong&gt;.  Running the Gazebo simulator, &lt;code&gt;rviz&lt;/code&gt; (&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; visualizer), and the Telerobotics module requires &lt;span class=&quot;smallcaps-auto&quot;&gt;THREE&lt;/span&gt; terminals.Working with &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; as a master inherently requires access to a lot of terminals for logging, echoing topic messages, starting programs, etc.  The current ways to achieve multiple terminals and Qt applications in Docker are at best makeshift workarounds. To handle a graphics-heavy application like Telerobotics, we require a Graphical Environment. Docker is great for providing a common service framework but not so good at graphical applications like &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;. That’s why I have been unable to get Docker working with the graphical aspects of &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;#Documentation&lt;/p&gt;
&lt;p&gt;In the final leg of the program, it is vital to go all-guns-blazing with the documentation of the software work that the students do. This is to ensure future development, maintainability, and clarity of thought. I recently added instructions in the Documentation directory - &lt;code&gt;telerobotics/doc/&lt;/code&gt; to &lt;strong&gt;replicate my setup&lt;/strong&gt;. This can be found in my &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/commits/dcd59b09d09f2e782e8c596f9f76b529eafd2151&quot; class=&quot;external&quot;&gt;current  commit&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I am ensuring that my mentors would be able to replicate my setup and give feedback very soon. The last week of GSoC is quite frenzied with the action to produce a consistent wrap-up of the project. The next post will officially be the last post of my GSoC 2015 experience. In reality, of course, I would keep working on the project and keep blogging :)&lt;/p&gt;
&lt;p&gt;Till then, ciao.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Fine-tuning Telerobotics</title>
    <link href="https://sidcode.github.io/letters/fine-tuning-telerobotics/"/>
    <id>https://sidcode.github.io/letters/fine-tuning-telerobotics/</id>
    <published>2015-08-07T11:53:00.000Z</published>
    <updated>2015-08-07T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Sixteenth Post for the Google Summer of Code 2015 program</summary>
    <content type="html">&lt;p&gt;Hi! As discussed in the previous week, I have been &lt;strong&gt;able&lt;/strong&gt; to get the &lt;strong&gt;integration of Telerobotics and Bodytracking&lt;/strong&gt; up and running. Huge Victory :) Let me say the same thing in a much bolder typeface -&lt;/p&gt;
&lt;p&gt;##Integration Successful!&lt;/p&gt;
&lt;p&gt;The following screenshot demonstrates what I’m talking about -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/telerobotics-0.png&quot; alt=&quot;Telerobotics Integration&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;&lt;/figure&gt;
&lt;p&gt;##Screen recording - YouTube Video&lt;/p&gt;
&lt;p&gt;I used the same tool for screen capturing this integration that I used for real-time streaming from a 3-D camera. The output is as follows -&lt;/p&gt;
&lt;figure class=&quot;embed embed-video&quot;&gt;&lt;div class=&quot;video-facade&quot; data-provider=&quot;youtube&quot; data-id=&quot;T3qbZaGvYao&quot; data-params=&quot;&quot; style=&quot;background-image:url(/media/youtube/T3qbZaGvYao.jpg)&quot;&gt;&lt;button class=&quot;video-play&quot; type=&quot;button&quot; aria-label=&quot;Play video (loads YouTube)&quot;&gt;&lt;span class=&quot;video-play-icon&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;figcaption&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=T3qbZaGvYao&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Watch on YouTube&lt;/a&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;If my blogging platform is unable to embed the video on the page, you could &lt;a href=&quot;https://youtu.be/T3qbZaGvYao&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;use this link&lt;/a&gt; to watch the first version of Telerobotics and Bodytracking integration. The Visual Tracker designed by Vito looks like this -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/visual-2.png&quot; alt=&quot;Visual Tracker&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1019&quot; height=&quot;701&quot;&gt;&lt;/figure&gt;
&lt;p&gt;##Current Status&lt;/p&gt;
&lt;p&gt;It is evident from the video that the setup is functional but not efficient. Moreover, it is buggy. The velocity values are way off the mark that &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; can take which results in jerks in Husky’s motion. Also there is a disparity between the refresh rates of &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and Tango-Controls which is identified by the Device not being unavailable intermittently.&lt;/p&gt;
&lt;p&gt;I strongly hope I’ll be able to solve these issues in the next post. Of all the &lt;strong&gt;aha&lt;/strong&gt; moments that I have been privy to, watching the Integration working was probably the biggest one of them all. It looks futuristic to me. With the Internet of Everything, a lot of things are going to use Teleoperation. I am so glad that we at the Italian Mars Society are gauging the future trends and experimenting with them in the present. I am honored to be facilitate that experiment.&lt;/p&gt;
&lt;p&gt;My next post is surely going to be a much more exciting run-down on how Telerobotics progresses :)&lt;/p&gt;
&lt;p&gt;Stay Tuned. Ciao!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Telerobotics and Bodytracking - The Rendezvous</title>
    <link href="https://sidcode.github.io/letters/telerobotics-and-bodytracking-the-rendezvous/"/>
    <id>https://sidcode.github.io/letters/telerobotics-and-bodytracking-the-rendezvous/</id>
    <published>2015-07-31T11:53:00.000Z</published>
    <updated>2015-07-31T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Fifteenth Post for the sixth bi-weekly report of the Google Summer of Code 2015 program</summary>
    <content type="html">&lt;p&gt;Hi! The past week was a refreshingly positive one. I was able to solve some of the insidious issues that were plaguing the efforts that I was putting in last week.&lt;/p&gt;
&lt;h2 id=&quot;virtual-machine-networking-issues-solved&quot;&gt;Virtual Machine Networking issues Solved!&lt;a class=&quot;h-anchor&quot; href=&quot;#virtual-machine-networking-issues-solved&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I was able to use the Tango server across the Windows 7 Virtual Machine and the Tango Host on my Ubuntu 14.04 Host Machine. The proper Networking mode for this turns out to be &lt;strong&gt;Bridged Networking mode&lt;/strong&gt; which basically tunnels a connection between the Virtual Machine and the host.&lt;/p&gt;
&lt;p&gt;In the bridged mode, the Virtual Machine exposes a Virtual Network interface with its own IP Address and Networking stack. In my case it was &lt;code&gt;vm8&lt;/code&gt; with an IP Address different from the IP Address patterns that were used by the &lt;em&gt;real&lt;/em&gt; Ethernet and WiFi Network Interface Cards. Using bridged mode, I was able to maintain the Tango Device Database server on Ubuntu and use Vito’s Bodytracking device on Windows. The Virtual Machine didn’t slow down things by any magnitude while communicating across the Tango devices.&lt;/p&gt;
&lt;p&gt;This image explains what I’m talking about -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/jive_windows_ubuntu.png&quot; alt=&quot;Jive on Windows and Ubuntu machines&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;&lt;/figure&gt;
&lt;p&gt;In bridged mode, I chose the IP Address on the host which corresponds to the Virtual Machine interface - &lt;code&gt;vmnet8&lt;/code&gt; in my case. I used the &lt;code&gt;vmnet8&lt;/code&gt; interface on Ubuntu and a similar interface on the Windows Virtual Machine. I read quite a bit about how Networking works in Virtual Machines and was fascinated by the Virtualization in place.&lt;/p&gt;
&lt;h2 id=&quot;bodytracking-meets-telerobotics&quot;&gt;Bodytracking meets Telerobotics&lt;a class=&quot;h-anchor&quot; href=&quot;#bodytracking-meets-telerobotics&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;With Tango up and running, I had to ensure that &lt;a href=&quot;https://vigentile.wordpress.com/2015/07/31/enhancement-of-kinect-integration-in-v-eras-fifth-report/&quot; class=&quot;external&quot;&gt;Vito’s Bodytracking application&lt;/a&gt; works on the Virtual Machine. To that end, I installed &lt;em&gt;Kinect for Windows &lt;span class=&quot;smallcaps-auto&quot;&gt;SDK&lt;/span&gt;&lt;/em&gt;, &lt;em&gt;Kinect Developer Tools&lt;/em&gt;, &lt;em&gt;Visual Python&lt;/em&gt;, &lt;em&gt;Tango-Controls&lt;/em&gt;, and &lt;em&gt;PyTango&lt;/em&gt;. Setting a new &lt;em&gt;virtual&lt;/em&gt; machine up mildly slowed me down but was a necessary step in the development.&lt;/p&gt;
&lt;p&gt;Once I had that bit running, I was able to visualize the **simulated Martian Motivity walk done in Innsbruck ** in a training station. The Bodytracking server created by Vito &lt;em&gt;published&lt;/em&gt; events corresponding to the &lt;code&gt;moves&lt;/code&gt; attribute which is a list of the following two metrics -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Position&lt;/li&gt;
&lt;li&gt;Orientation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I was able to read the attributes that the Bodytracking device was publishing by &lt;strong&gt;subscribing&lt;/strong&gt; to Event Changes to that attribute.  This is done in the following way -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    while TRIGGER:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        # Subscribe to the &#39;moves&#39; event from the Bodytracking interface&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        moves_event = device_proxy.subscribe_event(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                                                                                 &#39;moves&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                                                                                  PyTango.EventType.CHANGE_EVENT,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                                                                                  cb, [])&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        # Wait for at least REFRESH_RATE Seconds for the next callback.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        time.sleep(REFRESH_RATE)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This ensures that the Subscriber doesn’t exhaust the polled attributes at a rate faster than they are published. In that unfortunate case, an &lt;code&gt;EventManagerException&lt;/code&gt; occurs which must be handled properly.&lt;/p&gt;
&lt;p&gt;Note the &lt;code&gt;cb&lt;/code&gt; attribute, it refers to the Callback function that is triggered when an Event change occurs. The callback function is responsible for reading and processing the attributes.&lt;/p&gt;
&lt;p&gt;The processing part in our case is the core of the &lt;strong&gt;Telerobotics-Bodytracking interface&lt;/strong&gt;. It acts as the intermediary between Telerobotics  and Bodytracking - converting the &lt;em&gt;position&lt;/em&gt;, and &lt;em&gt;orientation&lt;/em&gt; values to &lt;strong&gt;linear and angular velocity&lt;/strong&gt; that Husky can understand. I use a high-performance container from the &lt;code&gt; collections&lt;/code&gt; class known as &lt;code&gt;deque&lt;/code&gt;. It can act both as a stack and a queue using &lt;code&gt;deque.append&lt;/code&gt;, &lt;code&gt;deque.appendleft&lt;/code&gt;, &lt;code&gt;deque.pop&lt;/code&gt;, &lt;code&gt;deque.popleft&lt;/code&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;To calculate velocity, I compute the differences between consecutive events and their corresponding timestamps. The events are stored in a &lt;code&gt;deque&lt;/code&gt;, popped when necessary and subtracted from the current event values&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;For instance this is how &lt;strong&gt;linear velocity&lt;/strong&gt; processing takes place -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  # Position and Linear Velocity Processing&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  position_previous = position_events.pop()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  position_current = position&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  linear_displacement = position_current - position_previous&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  linear_speed = linear_displacement / time_delta&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;ros-telerobotics-interface&quot;&gt;ROS-Telerobotics Interface&lt;a class=&quot;h-anchor&quot; href=&quot;#ros-telerobotics-interface&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;We are halfway through the Telerobotics-Bodytracking architecture. Once the velocities are obtained, we have everything we need to send to &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;. The challenge here is to use velocities which &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and the Husky &lt;span class=&quot;smallcaps-auto&quot;&gt;UGV&lt;/span&gt; can understand. The messages are published ot &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; &lt;em&gt;only&lt;/em&gt; when there is some change in the velocity. This has the added advantage of minimzing communication between &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and Tango. When working with multiple distributed systems, it is always wise to keep the communication between them minimial. That’s what I’ve aimed to do. I’ll be enhacing the interface even further by adding Trigger Overrides in case of an emergency situation. The speeds currently are not &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;-friendly. I am writing a high-pass and low-pass filter to limit the velocities to what Husky can sustain. Vito and I will be refining the User Step estimation and the corresponding Robot movements respectively.&lt;/p&gt;
&lt;p&gt;GSoC is only becoming more exciting. I’m certain that I will be contributing to this project after GSoC as well. The Telerobotics scenario is full of possibilities, most of which I’ve tried to cover in my GSoC proposal.&lt;/p&gt;
&lt;p&gt;I’m back to my university now and it has become hectic but enjoyably challenging to complete this project. My next post will hopefully be a culmination of the Telerobotics/Bodytracking interface and the integration of 3D streaming with Oculus Rift Virtual Reality.&lt;/p&gt;
&lt;p&gt;Ciao!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Virtual Machines + Virtual Reality = Real Challenges!</title>
    <link href="https://sidcode.github.io/letters/virtual-machines-virtual-reality-real-challenges/"/>
    <id>https://sidcode.github.io/letters/virtual-machines-virtual-reality-real-challenges/</id>
    <published>2015-07-24T11:53:00.000Z</published>
    <updated>2015-07-24T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Fourteenth Post for weeks 9-10 of the Google Summer of Code 2015 program</summary>
    <content type="html">&lt;p&gt;Hi! For the past couple of weeks, I’ve been trying to get a lot of things to work. Linux and Computer Networks seem to like me so much that they ensure my attention throughout the course of this program. This time it was dynamic libraries, Virtual Machine Networking, Docker Containers, Head-mounted display errors and so on.&lt;/p&gt;
&lt;p&gt;A brief discussion about these:&lt;/p&gt;
&lt;h2 id=&quot;dynamic-libraries-oculus-rift-and-python-bindings&quot;&gt;Dynamic Libraries, Oculus Rift, and Python Bindings&lt;a class=&quot;h-anchor&quot; href=&quot;#dynamic-libraries-oculus-rift-and-python-bindings&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Using the open-source Python bindings for the &lt;strong&gt;Oculus &lt;span class=&quot;smallcaps-auto&quot;&gt;SDK&lt;/span&gt;&lt;/strong&gt; available &lt;a href=&quot;https://github.com/jherico/python-ovrsdk&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;here&lt;/a&gt;, Franco and I ran into a problem -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;ImportError: &amp;#x3C;root&gt;/oculusvr/linux-x86-64/libOculusVR.so: undefined symbol: glXMakeCurrent&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To get to the root of the problem, I tried to list all dependencies of the &lt;strong&gt;shared object file&lt;/strong&gt; -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  linux-vdso.so.1 =&gt;  (0x00007ffddb388000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  librt.so.1 =&gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007f6205e1d000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libpthread.so.0 =&gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6205bff000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libX11.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f62058ca000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libXrandr.so.2 =&gt; /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f62056c0000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libstdc++.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f62053bc000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libm.so.6 =&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007f62050b6000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libgcc_s.so.1 =&gt; /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6204ea0000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6204adb000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  /lib64/ld-linux-x86-64.so.2 (0x00007f6206337000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libxcb.so.1 =&gt; /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f62048bc000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libdl.so.2 =&gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f62046b8000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libXext.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f62044a6000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libXrender.so.1 =&gt; /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f620429c000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libXau.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f6204098000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  libXdmcp.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f6203e92000)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glXMakeCurrent  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glEnable  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glFrontFace (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glDisable (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glClear (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glGetError  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glXDestroyContext (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glXCreateContext  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glClearColor  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glXGetCurrentContext  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glXSwapBuffers  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glColorMask (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glBlendFunc (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glBindTexture (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glDepthMask (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glDeleteTextures  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glGetIntegerv (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glXGetCurrentDrawable (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glDrawElements  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glTexImage2D  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glXGetClientString  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glDrawArrays  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glGetString (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glXGetProcAddress (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glViewport  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glTexParameteri (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glGenTextures (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  undefined symbol: glFinish  (./libOculusVR.so)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This clearly implied one thing - &lt;strong&gt;libGL&lt;/strong&gt; was not being linked. My task then was to &lt;em&gt;somehow&lt;/em&gt; link libGL to the SO file that came with the Python Bindings. I tried out the following two options -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Creating my own bindings&lt;/strong&gt;: Tried to regenerate the SO file from the Oculus C &lt;span class=&quot;smallcaps-auto&quot;&gt;SDK&lt;/span&gt; by using the amazing &lt;a href=&quot;https://github.com/davidjamesca/ctypesgen&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;Python Ctypesgen&lt;/a&gt;. This method didn’t work out as I couldn’t resolve the &lt;em&gt;header&lt;/em&gt; files that are requied by &lt;em&gt;Ctypesgen&lt;/em&gt;. Nevertheless, I learned how to create Python Bindings and that is a huge take-away from the exercise. I had always wondered how Python interfaces are created out of programs written in other languages.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Making the existing shared object file believe that it is linked to libGL&lt;/strong&gt;: So here’s what I did - after a lot of searching, I found the nifty little environment variable that worked wonders for our Oculus development - &lt;strong&gt;LD_PRELOAD&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As &lt;a href=&quot;https://rafalcieslak.wordpress.com/2013/04/02/dynamic-linker-tricks-using-ld_preload-to-cheat-inject-features-and-investigate-programs/&quot; class=&quot;external&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;https://blog.chaselambda.com/2014/11/28/how-tmux-starts-up-an-adventure-with-linux-tools-updated.html&quot; class=&quot;external&quot;&gt;this&lt;/a&gt; articles delineate the power of LD_PRELOAD, it is possible to force-load a dynamically linked shared object in the memory.
If you set LD_PRELOAD to the path of a shared object, that file will be loaded before any other library (including the C runtime, libc.so). For example, to run &lt;code&gt;ls&lt;/code&gt; with your special malloc() implementation, do this:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$ LD_PRELOAD=/path/to/my/malloc.so /bin/ls&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Thus, the solution to my problem was to place this in the &lt;code&gt;.bashrc&lt;/code&gt; file -&lt;/p&gt;
&lt;p&gt;&lt;code&gt;LD_PRELOAD=&quot;/usr/lib/x86_64-linux-gnu/libGL.so&quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This allowed Franco to create the Oculus Test Tango server and ensured that our Oculus Rift development efforts continue with gusto.&lt;/p&gt;
&lt;h2 id=&quot;ros-and-autonomous-navigation&quot;&gt;ROS and Autonomous Navigation&lt;a class=&quot;h-anchor&quot; href=&quot;#ros-and-autonomous-navigation&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;On the programming side, I’ve been playing around with &lt;code&gt;actionlib&lt;/code&gt; to interface Bodytracking with Telerobotics. I have created a simple walker script which provides a certain degree of autonomy to the robot and avoids collissions with objects to override human teleoperation commands. An obstacle could be a Martian rock in a simulated environment or an uneven terrain with a possible ditch ahead. To achieve this, I use the &lt;code&gt;LaserScan&lt;/code&gt; message and check for the range readings at frequent intervals. The &lt;em&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;LIDAR&lt;/span&gt;&lt;/em&gt; readings ensure that the robot is in one of the following states -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Approaching an obstacle&lt;/li&gt;
&lt;li&gt;Going away from an obstacle&lt;/li&gt;
&lt;li&gt;Hitting an obstacle&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The state can be inferred from the LaserScan Messages. A &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Action Server then waits for one of these events to happen and triggers the callback which tells the robot to stop, turn and continue.&lt;/p&gt;
&lt;h2 id=&quot;windows-and-pykinect&quot;&gt;Windows and PyKinect&lt;a class=&quot;h-anchor&quot; href=&quot;#windows-and-pykinect&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In order to run Vito’s bodytracking code, I needed a Windows installation. Running into problems with a 32-bit Windows 7 Virtual Machine image I had, I needed to reinstall and use a 64-bits Virtual Machine image. I installed all the dependencies to run the bodytracking code. I am still stuck with Networking modes between the Virtual Machine and the Host machine. The &lt;span class=&quot;smallcaps-auto&quot;&gt;TANGO&lt;/span&gt; host needs to be configured correctly to allow the TANGO_MASTER to point to the host and the TANGO_HOST to the virtual machine.&lt;/p&gt;
&lt;h2 id=&quot;docker-and-qt-apps&quot;&gt;Docker and Qt Apps&lt;a class=&quot;h-anchor&quot; href=&quot;#docker-and-qt-apps&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Qt applications don’t seem to work with sharing the display in a Docker container. The way out is to create users in the Docker container which I’m currently doing. I’ll enable &lt;span class=&quot;smallcaps-auto&quot;&gt;VNC&lt;/span&gt; and X-forwarding to allow the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Qt applications to work so that the other members of the Italian Mars Society can use the Docker container directly.&lt;/p&gt;
&lt;h2 id=&quot;gazebo-mars-model&quot;&gt;Gazebo Mars model&lt;a class=&quot;h-anchor&quot; href=&quot;#gazebo-mars-model&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I took a brief look at the 3D models of Martial terrain available for free use on the Internet. I’ll be trying to obtain the Gale Crater region and represent it in Gazebo to drive the Husky in a Martian Terrain.&lt;/p&gt;
&lt;h2 id=&quot;documentation-week&quot;&gt;Documentation week!&lt;a class=&quot;h-anchor&quot; href=&quot;#documentation-week&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In addition to strong-arming my CS concepts against the Networking and Linux issues that loom over the project currently, I updated and added documentation for the modules developed so far.&lt;/p&gt;
&lt;p&gt;Hope the next post explains how I solved the problems described in this post. Ciao!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Streamed away (in Real-Time)!</title>
    <link href="https://sidcode.github.io/letters/streamed-away-in-real-time/"/>
    <id>https://sidcode.github.io/letters/streamed-away-in-real-time/</id>
    <published>2015-07-16T11:53:00.000Z</published>
    <updated>2015-07-16T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Thirteenth Post and fifth bi-weekly update for the Google Summer of Code 2015 program</summary>
    <content type="html">&lt;p&gt;Hi! This post is &lt;em&gt;all&lt;/em&gt; about &lt;strong&gt;Video Streaming and Cameras&lt;/strong&gt; :-) If you’ve wondered how services like YouTube Live or twitch.tv work, then this post is for you. After the &lt;em&gt;Innsbruck experiments&lt;/em&gt; and &lt;a href=&quot;https://sidcode.github.io/letters/remote-tests-in-telerobotics/&quot; class=&quot;internal&quot;&gt;Remote tests in Telerobotics&lt;/a&gt;, it was time for me to create a full-fledged Real Time Video Streaming solution for the &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; project. After a lot of frustration and learning, I’ve been able to achieve the following milestones -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Stream losslessly from a single camera in real-time to a Blender Game Engine instance.&lt;/li&gt;
&lt;li&gt;Create example Blender projects to test &lt;em&gt;multiple video sources&lt;/em&gt; streaming over a network.&lt;/li&gt;
&lt;li&gt;Record a &lt;strong&gt;live stream&lt;/strong&gt; from a &lt;strong&gt;stereoscopic camera&lt;/strong&gt; into a side-by-side video encoded on the fly.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It’s going to be a very long post as I’ve been playing around with lots of video streaming stuff. All this experience has turned me into a confident Multimedia streamer.&lt;/p&gt;
&lt;h2 id=&quot;why-am-i-doing-this&quot;&gt;Why am I doing this?&lt;a class=&quot;h-anchor&quot; href=&quot;#why-am-i-doing-this&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Integrating &lt;em&gt;Augmented&lt;/em&gt; and &lt;em&gt;Virtual Reality&lt;/em&gt; requires one to know the nitty-gritty of &lt;strong&gt;Multimedia Streaming&lt;/strong&gt;. This week was spent in learning and tinkering with the various options provided by &lt;a href=&quot;https://ffmpeg.org/&quot; class=&quot;external&quot;&gt;FFmpeg&lt;/a&gt; and &lt;a href=&quot;linuxtv.org/downloads/v4l-dvb-apis/&quot;&gt;Video4Linux2&lt;/a&gt;. One of the aims of the Telerobotics project is to allow streaming of Rover Camera input to the Astronaut’s Head-Mounted Device (&lt;strong&gt;Minoru 3D&lt;/strong&gt; camera and &lt;strong&gt;Oculus Rift&lt;/strong&gt; in my case). The streamed video has multiple uses -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It is used by the various Tango servers (Planning, Vision, Telerobotics, etc) and processed to obtain Semantic relationships between objects in the Martian environment.&lt;/li&gt;
&lt;li&gt;The video, in addition to the &lt;span class=&quot;smallcaps-auto&quot;&gt;LIDAR&lt;/span&gt; and other sensing devices are the interface of the Human world in the &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; habitat on Mars. The video stream provides a window to Mars.&lt;/li&gt;
&lt;li&gt;The real-time stream helps the astronaut and the simulated astronaut to guide the rover and the simulated rover around on Mars.&lt;/li&gt;
&lt;li&gt;Streaming is an integral component of both &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; and V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; which we at the Italian Mars Society are currently working on.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;initial-impressions&quot;&gt;Initial Impressions&lt;a class=&quot;h-anchor&quot; href=&quot;#initial-impressions&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;When I started with 3D streaming, it &lt;em&gt;appeared&lt;/em&gt; easy. “I did it with a single camera, two cameras can’t be a huge deal, right!”. &lt;em&gt;I had never been so wrong&lt;/em&gt;. I found myself stuck in the usual embedded device vs the Linux kernel interface -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The hardware of desktop machines are unsuitable for Streaming applications.&lt;/li&gt;
&lt;li&gt;The Kernel is not configured to use multiple webcams&lt;/li&gt;
&lt;li&gt;This results in lots of &lt;strong&gt;memory-related&lt;/strong&gt; errors - &lt;code&gt;insufficient memory&lt;/code&gt;, &lt;code&gt;rt_underflow&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To tweak the Minoru camera and strike an optimum settings agreement with this cute little stereo camera, I began to dig into the core software components involved -&lt;/p&gt;
&lt;h2 id=&quot;video4linux2-saves-the-day&quot;&gt;Video4Linux2 saves the day!&lt;a class=&quot;h-anchor&quot; href=&quot;#video4linux2-saves-the-day&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The Video4Linux is an important driver framework which makes it possible for Linux users to use Video Capture devices (webcams and streaming equipment). It supports multiple features. The ones that this project is concerned with are -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Video Capture/Output and Tuning (&lt;code&gt;/dev/videoX&lt;/code&gt;, streaming and control)&lt;/li&gt;
&lt;li&gt;Video Capture and Output overlay (&lt;code&gt;/dev/videoX&lt;/code&gt;, control)&lt;/li&gt;
&lt;li&gt;Memory-to-Memory (Codec) devices (&lt;code&gt;/dev/videoX&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;https://archive.fosdem.org/2014/schedule/event/v4l_intro/&quot; class=&quot;external&quot;&gt;These slides&lt;/a&gt; by Hans Verkuil (Cisco Systems) are and informative entry point for understanding how Video4Linux works.&lt;/p&gt;
&lt;p&gt;The different Streaming Modes supported by Video4Linux are -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Read/Write (&lt;strong&gt;Supported by Minoru&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;Memory Mapped Streaming I/O (&lt;strong&gt;Supported by Minoru&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;User Pointer Streaming I/O&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;DMA&lt;/span&gt; (Direct Memory Access) Buffer Streaming I/O&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The take-away from Video4Linux is understanding how streaming works. So a Stream requires the following - queue setup, preparing the buffer, start streaming, stop streaming, wait to prepare, wait to finish, compression and encoding of the input stream, transmission/feeding on a channel, decompression and decoding the received stream, and facilities for playback and time-seek.&lt;/p&gt;
&lt;p&gt;The Qt frontend to &lt;code&gt;v4l2&lt;/code&gt; made me realize where the problem with the camera lied -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/minoru-qv4l2.jpg&quot; alt=&quot;Qv4l2 Minoru&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1588&quot; height=&quot;848&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The &lt;code&gt;video4linux2&lt;/code&gt; specification allows for querying and configuring &lt;strong&gt;everything&lt;/strong&gt; about Video Capture Cards. The nifty command-line utitlity &lt;code&gt;v4l2-ctl&lt;/code&gt; is a lifesaver while debugging cameras.&lt;/p&gt;
&lt;p&gt;For instance, with the Stereo Camera connected, ```v4l2-ctl --list-devices`` gives -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Vimicro USB2.0 PC Camera (usb-0000:00:14.0-1.1):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        /dev/video1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Vimicro USB2.0 PC Camera (usb-0000:00:14.0-1.4):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        /dev/video2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;WebCam SC-13HDL11939N (usb-0000:00:1a.0-1.4):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        /dev/video0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;v4l2-ctl --list-frameintervals=width=640,height=480,pixelformat=&#39;YUYV&#39;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;gives&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;ioctl: VIDIOC_ENUM_FRAMEINTERVALS&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        Interval: Discrete 0.033s (30.000 fps)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        Interval: Discrete 0.067s (15.000 fps)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This means that I’ve to use one of these settings for getting input from the camera, and then transcode them into the desired stream characteristics.&lt;/p&gt;
&lt;h2 id=&quot;knowing-your-stereoscopic-camera&quot;&gt;Knowing your stereoscopic Camera&lt;a class=&quot;h-anchor&quot; href=&quot;#knowing-your-stereoscopic-camera&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/stereo-1.png&quot; alt=&quot;Stereo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1291&quot; height=&quot;483&quot;&gt;&lt;/figure&gt;
&lt;p&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;VLC&lt;/span&gt; carefully configured to stream the Left and Right Minoru Cameras/&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.minoru3d.com/&quot; class=&quot;external&quot;&gt;Minoru 3D&lt;/a&gt; webcam uses the following &lt;em&gt;Color Spaces&lt;/em&gt; -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;RGB3&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;YU12&lt;/li&gt;
&lt;li&gt;YV12&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;YUYV&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;BGR3&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Explanations ahead…&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;When colors meet computers and humans&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Color Spaces are models of ‘Color Organization’ that enable reproducible representations of color in different media (analog, digital). Color is a human subjective visual perceptual property. Recursing these definitions on Wikipedia took me back to Middle School. Color is a physical (observable and measurable) property. The way us humans see it is not the same as a color sensing photodiodes see it and the computer monitors reproduce it. Translating color from one base to another requires a data structure known as the &lt;strong&gt;color space&lt;/strong&gt;. The signals from the webcam are encoded into one of the color spaces. Just in case you’re wondering - &lt;span class=&quot;smallcaps-auto&quot;&gt;YUV&lt;/span&gt; model describes colors in terms of a &lt;strong&gt;Luma (luminance)&lt;/strong&gt; component and two chrominance components (U and V). The 2-D UV plane can describe all colors. &lt;span class=&quot;smallcaps-auto&quot;&gt;YUV&lt;/span&gt; can be converted into &lt;span class=&quot;smallcaps-auto&quot;&gt;RGB&lt;/span&gt; and vice-versa. The &lt;span class=&quot;smallcaps-auto&quot;&gt;YUV422&lt;/span&gt; data format shares U and V values between two pixels. As a result, these values are transmitted to the PC image buffer only once for every two pixels, resulting in an average transmission rate of 16 bits per pixel.
Capturing on the &lt;span class=&quot;smallcaps-auto&quot;&gt;YUV&lt;/span&gt; 4:2:2 format is more efficient than &lt;span class=&quot;smallcaps-auto&quot;&gt;RGB&lt;/span&gt; formats whereas color reproduction on a pixel array is more convenient via &lt;span class=&quot;smallcaps-auto&quot;&gt;RGB&lt;/span&gt;.
For the purposes of Video Streaming from a Stereo Camera System like Minoru, using a &lt;span class=&quot;smallcaps-auto&quot;&gt;RGB&lt;/span&gt; color space is the best option because it results in faster performance with a codec like &lt;span class=&quot;smallcaps-auto&quot;&gt;MJPEG&lt;/span&gt; (Multi-part &lt;span class=&quot;smallcaps-auto&quot;&gt;JPEG&lt;/span&gt;) which is the final requirement for the Blender Game Engine stream. I hope this theoretical explanation superveniently describes the challenge I’ve been trying to crack.&lt;/p&gt;
&lt;p&gt;FFmpeg built with &lt;code&gt;v4l2-utils&lt;/code&gt; support is used for the Stereo Streaming.&lt;/p&gt;
&lt;h2 id=&quot;experiments-with-blender&quot;&gt;Experiments with Blender&lt;a class=&quot;h-anchor&quot; href=&quot;#experiments-with-blender&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I tried capturing the two video devices directly from the Blender Game Engine application. It was a good experience learning about creating basic Blender Games.&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/blender-try-two-sources.jpg&quot; alt=&quot;Blender Game&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1491&quot; height=&quot;810&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The workflow to this end was -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create two Cube Meshes&lt;/li&gt;
&lt;li&gt;Enable &lt;span class=&quot;smallcaps-auto&quot;&gt;GLSL&lt;/span&gt; shading mode&lt;/li&gt;
&lt;li&gt;Set Object Shading to &lt;code&gt;Shadeless&lt;/code&gt; to enhance brightness&lt;/li&gt;
&lt;li&gt;Add Image Textures to both images/articles/2015&lt;/li&gt;
&lt;li&gt;Add a &lt;code&gt;sensor&lt;/code&gt; that is triggered to &lt;code&gt;True&lt;/code&gt; &lt;strong&gt;always&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Add a Python script controller corresponding to each sensor.&lt;/li&gt;
&lt;li&gt;The script to control the right camera of the stereo system is -&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;import VideoTexture&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;import bge&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;contr = bge.logic.getCurrentController()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;obj = contr.owner&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;if not hasattr(bge.logic, &#39;video&#39;):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    matID = VideoTexture.materialID(obj, &#39;IMimage.png&#39;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    bge.logic.video = VideoTexture.Texture(obj, matID)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    bge.logic.video.source = VideoTexture.VideoFFmpeg(&quot;/dev/video2&quot;,0)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    bge.logic.video.source.scale = True&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    bge.logic.video.source.flip = True&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    bge.logic.video.source.framerate = 0.2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    bge.logic.video.source.repeat = -1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    bge.logic.video.source.play()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;print(&quot;In Video 2 fps: &quot;, bge.logic.video.source.framerate)    &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;bge.logic.video.refresh(True)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But it turns out Blender Game Engine does not provide extensive Video Device control. It relies on the default settings provided by Video4Linux. Since the Minoru camera is unable to stream both camera outputs at 30 frames per second - Blender simply gives in and compromises by playing the first camera output that it receives. Video4Linux simply reports &lt;code&gt;Insufficient Memory&lt;/code&gt; for the other stream.&lt;/p&gt;
&lt;p&gt;The output could only support one camera at a time -
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/blender-try-two-cameras.jpg&quot; alt=&quot;Blender cameras&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1489&quot; height=&quot;748&quot;&gt;&lt;/p&gt;
&lt;p&gt;The &lt;span class=&quot;smallcaps-auto&quot;&gt;BGE&lt;/span&gt; documentation is ambiguous in the use of the VideoTexture command while controlling webcam devices.&lt;/p&gt;
&lt;p&gt;It was an exciting learning experience about contemporary game design nevertheless. The take-away was that Blender Game Engine is unable to handle cameras at the hardware level. Network Streaming with FFmpeg was the only option.&lt;/p&gt;
&lt;h2 id=&quot;ffmpeg---the-one-stop-shop-for-multimedia&quot;&gt;FFmpeg - the one-stop-shop for Multimedia&lt;a class=&quot;h-anchor&quot; href=&quot;#ffmpeg---the-one-stop-shop-for-multimedia&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;My search for the perfect tool for streaming ended with FFmpeg. It amazes me how versatile this software is. Some people even call it the &lt;a href=&quot;https://sonnati.wordpress.com/2011/08/08/ffmpeg-%E2%80%93-the-swiss-army-knife-of-internet-streaming-%E2%80%93-part-ii/&quot; class=&quot;external&quot;&gt;Swiss-army knife of Internet streaming&lt;/a&gt;. So I had to basically work with Streams.
Streams are essentially Multimedia resources which are identified with the help of a &lt;em&gt;Media Resource Locator&lt;/em&gt; (&lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;MRL&lt;/span&gt;&lt;/strong&gt;). A combination of &lt;code&gt;ffmpeg&lt;/code&gt; and &lt;code&gt;ffserver&lt;/code&gt; is what I used to achieve the desired results. The stereoscopic stream produced will be used by multiple applications-&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Streaming to the Head-Mounted Device (currently Oculus Rift)&lt;/li&gt;
&lt;li&gt;Processing Martian environment’s video.&lt;/li&gt;
&lt;li&gt;View in the &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; application from ground control.&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;Why FFmpeg?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;It is fast, reliable, and free.&lt;/li&gt;
&lt;li&gt;It provides a complete solution from streaming and transcoding to media playback, conversion, and probe analysis.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Quoting from its &lt;a href=&quot;https://ffmpeg.org/ffmpeg.html&quot; class=&quot;external&quot;&gt;documentation&lt;/a&gt; -&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ffmpeg reads from an arbitrary number of input “files” (which can be regular files, pipes, network streams, grabbing devices, etc.), specified by the -i option, and writes to an arbitrary number of output “files”, which are specified by a plain output static. Anything found on the command line which cannot be interpreted as an option is considered to be an output static.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I tinkered with loads of &lt;code&gt;ffmpeg&lt;/code&gt; options and created a lot of useful junkcode. The good thing about GSoC is that it makes you aware of the open-source influences out there. Throughout this work on streaming, I was motivated by the philosophy of &lt;strong&gt;Andrew Tridgell&lt;/strong&gt; who says that &lt;a href=&quot;https://samba.org/ftp/tridge/talks/junkcode.pdf&quot; class=&quot;external&quot; data-link-icon-svg=&quot;pdf&quot;&gt;“junkcode can be an important learning tool”&lt;/a&gt;.&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;ffmpeg -f v4l2 -framerate 15 -video_size 640x480 -i /dev/video1 outp1.mp4 -framerate 15 -i /dev/video2 outp2.mp4&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This resulted in a steady video stream -&lt;/p&gt;
&lt;p&gt;A sample of three different frames at&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;frame= 1064 fps= 16 q=27.0 q=27.0 size=631kB time=00:01:07.06&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;frame= 1072 fps= 16 q=27.0 q=27.0 size=723kB time=00:01:07.60&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;frame= 1079 fps= 16 q=27.0 q=27.0 size=750kB time=00:01:08.06&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Learning about the &lt;code&gt;ffmpeg-filters&lt;/code&gt; made this experience worthwhile. I was not able to overlay videos side-by-side and combine them in real-time. This is the script that I used -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;ffmpeg -s 320x240 -r 24 -f video4linux2 -i /dev/video1 -s 320x240 -r 24 -f video4linux2 -i /dev/video2 -filter_complex &quot;[0:v]setpts=PTS-STARTPTS, pad=iw*2:ih[bg];[1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w&quot; -c:v libx264 -crf 23 -preset medium -movflags faststart nerf.mp4&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It basically tells ffmpeg to use a resolution of 320x240 and 24 fps for each of the camera devices and apply an overlay filter to enable side-by-side video output. &lt;code&gt;PTS-STARTPTS&lt;/code&gt; allows for time synchronization of the two streams and the presets enable efficient encoding.&lt;/p&gt;
&lt;p&gt;I shot a video using the Minoru video camera. After applying the Overlay filter, I got a nice video with the Left and Right video streams arranged side-by-side. In this screenshot, I am pointing my little brother’s Nerf guns towards each of the Minoru’s two cameras -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/minoru-nerf.png&quot; alt=&quot;Minoru Nerf Gun&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;640&quot; height=&quot;240&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I can experiment with the &lt;strong&gt;Stereoscopic anaglyph filters&lt;/strong&gt; to extend it to a single-screen 3D live stream. But the present task involves streaming to the Oculus Rift which is what I’ll be working on next. In addition to &lt;code&gt;ffmpeg&lt;/code&gt;, I also made use of &lt;code&gt;ffserver&lt;/code&gt; and &lt;code&gt;ffplay&lt;/code&gt; in my Streaming workflow. These have been explained in a &lt;a href=&quot;https://sidcode.github.io/letters/mid-term-report-gsoc-15/&quot; class=&quot;internal&quot;&gt;previous post&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;experiments-with-v4l2stereo&quot;&gt;Experiments with &lt;code&gt;v4l2stereo&lt;/code&gt;&lt;a class=&quot;h-anchor&quot; href=&quot;#experiments-with-v4l2stereo&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Working with stereoscopic cameras is atypical to a traditional Computer Vision workflow. Each of the cameras require calibration in order for Range-Imaging applications like depth maps and point clouds to work. I calibrated my camera using the excellent &lt;a href=&quot;https://github.com/bashrc/v4l2stereo&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;v4l2stereo&lt;/a&gt; tool.&lt;/p&gt;
&lt;p&gt;Here are some screenshots -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/minoru-calibration.jpg&quot; alt=&quot;Minoru Calibration&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;766&quot; height=&quot;807&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Basic Feature detection -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/minoru-features.jpg&quot; alt=&quot;Minoru Calibration&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1075&quot; height=&quot;641&quot;&gt;&lt;/figure&gt;
&lt;h2 id=&quot;closing-remarks&quot;&gt;Closing remarks&lt;a class=&quot;h-anchor&quot; href=&quot;#closing-remarks&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This was a very hectic couple of weeks. The output I produced pales in comparison to the tinkering that I had been doing. I’ll be using all the important scripts that did not make it to the final repository in the documentation so that future students won’t have to wade through the insurmountable learning curve of Multimedia Streaming. All the work regarding this can be found &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/a31a7a135eb0315c4d3aa4d968e0832666af14eb/servers/telerobotics/streams/?at=default&quot; class=&quot;external&quot;&gt;here&lt;/a&gt;. I realized the overwhelming importance of &lt;span class=&quot;smallcaps-auto&quot;&gt;IRC&lt;/span&gt; channels when I got help from #ffmpeg and #v4l2 channels when I was stuck with no end in sight. I gathered a &lt;span class=&quot;smallcaps-auto&quot;&gt;GREAT&lt;/span&gt; &lt;span class=&quot;smallcaps-auto&quot;&gt;DEAL&lt;/span&gt; of experience in Video Streaming which I hope will go a long way.&lt;/p&gt;
&lt;p&gt;This has been one giant bi-weekly report. Thank you for reading. &lt;em&gt;Ciao!&lt;/em&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>RIP, Mr. Iwata</title>
    <link href="https://sidcode.github.io/letters/rip-mr-iwata/"/>
    <id>https://sidcode.github.io/letters/rip-mr-iwata/</id>
    <published>2015-07-13T08:07:00.000Z</published>
    <updated>2015-07-13T08:07:00.000Z</updated>
    <category term="games"/><category term="people"/><category term="legends"/><category term="pokemon"/>
    <summary>Remembering Saturo Iwata through Pokemon Crystal</summary>
    <content type="html">&lt;p&gt;Saturo Iwata died on July 11, 2015. I (coincidentally) started replaying Pokemon Emerald and Crystal on July 11. Completed most of Crystal in the next two days to celebrate his wonderful creation.&lt;/p&gt;
&lt;p&gt;More about him-
&lt;a href=&quot;https://bulbapedia.bulbagarden.net/wiki/Satoru_Iwata&quot; class=&quot;external&quot; data-link-icon=&quot;◓&quot; data-link-icon-style=&quot;sans&quot;&gt;https://bulbapedia.bulbagarden.net/wiki/Satoru_Iwata&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;He got the battle system up and running in Pokemon games. He was the producer of Pokemon crystal.&lt;/p&gt;
&lt;p&gt;Realizing the news of his death on July 14, I became misty-eyed (no Pokemon pun intended). This was the least coincidental thing that I’d expect. Crystal was his baby. It is because of him that the whole Kanto region could be added to Pokemon &lt;span class=&quot;smallcaps-auto&quot;&gt;GSC&lt;/span&gt;. He will be missed. I never thought I  would take up Pokemon again after 2005.&lt;/p&gt;
&lt;p&gt;Regarding Video Games - I also saw &lt;span class=&quot;smallcaps-auto&quot;&gt;VGHS&lt;/span&gt; this summer, which has its own take on Pokemon - Pokermon.&lt;/p&gt;
&lt;p&gt;I’m misty-eyed now. I also played Pokemon Stadium which he developed. To honor his contribution, I played all the Pokemon console game soundtracks on a loop.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Remote tests in Telerobotics</title>
    <link href="https://sidcode.github.io/letters/remote-tests-in-telerobotics/"/>
    <id>https://sidcode.github.io/letters/remote-tests-in-telerobotics/</id>
    <published>2015-07-08T11:53:00.000Z</published>
    <updated>2015-07-08T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Twelfth Post in the GSoC 2015 series.</summary>
    <content type="html">&lt;p&gt;Ciao :)  The &lt;em&gt;sixth week&lt;/em&gt; of GSoC 2015 got over. According to the &lt;a href=&quot;https://erasproject.org/2015-gsoc/#2&quot; class=&quot;external&quot;&gt;Telerobotics project timeline&lt;/a&gt;, this week was supposed to be the &lt;strong&gt;Buffer Week&lt;/strong&gt; to account for any unforeseen work that may pop up. We at the &lt;strong&gt;Italian Mars Society&lt;/strong&gt; were trying to get &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; communication possible over a &lt;em&gt;large&lt;/em&gt; network. After effective discussion via mail and prioritizing on Trello, the &lt;strong&gt;first Husky test&lt;/strong&gt; was scheduled on July 1, &lt;strong&gt;second test&lt;/strong&gt; on July 7 and the &lt;strong&gt;third test&lt;/strong&gt; on July 8. It was an international effort spanning timezones in &lt;span class=&quot;smallcaps-auto&quot;&gt;UTC&lt;/span&gt;-5:00, &lt;span class=&quot;smallcaps-auto&quot;&gt;UTC&lt;/span&gt;+2:00, and &lt;span class=&quot;smallcaps-auto&quot;&gt;UTC&lt;/span&gt;+5:30 regions. So zeroing in on a common time was an interesting sub-challenge in itself.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;By a &lt;strong&gt;large&lt;/strong&gt; network, I mean this -&lt;/p&gt;
&lt;/blockquote&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/remote-problem.png&quot; alt=&quot;Remote Testing&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2273&quot; height=&quot;1688&quot;&gt;&lt;/figure&gt;
&lt;p&gt;On visceral observation, the problem statement looks quite tractable and practical. But like all problems in Computer Networks, this one looked easy in theory, but frustrated the budding Computer Scientist in me as the solutions proposed didn’t work out.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Husky Test 1&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Matt (from the Space Research Systems Group, Carleton University), Franco, and I were trying to get the Husky &lt;span class=&quot;smallcaps-auto&quot;&gt;UGV&lt;/span&gt; in Canada to respond to the commands sent from the three parts of world involved (Canada, India, Italy). The few problems we came across -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; version issues caused a minor problem. The Husky robot was running an older version of &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; (Hydro) while Franco and I were using the newer version (Indigo). This caused problems in reading certain Husky messages. Solution - Upgrade &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; version on the Husky robot OR downgrade our version to &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Hydro and Ubuntu 12.04.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Network Issues - Unable to communicate with all three computers in all cases. There was no bidirectional communication between the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; computers and ports were blocked.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Success&lt;/strong&gt; - &lt;span class=&quot;smallcaps-auto&quot;&gt;GPS&lt;/span&gt; Messages and status messages were received from the Husky robot laptop set as the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Master. But the Husky laptop was unable to receive Teleoperation messages from Franco’s computer and my computer (even though it detected that we were publishing messages). Again a Network problem.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;Solution - &lt;strong&gt;Virtual Private Networks&lt;/strong&gt;, well almost…&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;At first, I had to ensure that the TP-Link WiFi Router at home was not creating problems. To ensure this, I added my laptop interface in the &lt;strong&gt;Demilitarized Zone (&lt;span class=&quot;smallcaps-auto&quot;&gt;DMZ&lt;/span&gt;)&lt;/strong&gt;, and enabled &lt;strong&gt;Port Forwarding&lt;/strong&gt; for all the ports of interest.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Success&lt;/em&gt; with Blender Game Engine Streaming&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Now, this solved quite a few problems - my public IP could now behave like one. To prove this, Franco and I held a Web-Stream session in which his laptop in Italy behaved as the Blender Game Engine Client while I provided a live video feed from the Minoru Camera while using a &lt;strong&gt;FFMpeg Server&lt;/strong&gt;. His words - “You are live. I can see the stream.” provided the much-needed boost I required to tackle the pending Computer Networks problems I had to solve in the following couple of days.&lt;/p&gt;
&lt;p&gt;Coming to the &lt;span class=&quot;smallcaps-auto&quot;&gt;VPN&lt;/span&gt; problem, I first read about the various &lt;span class=&quot;smallcaps-auto&quot;&gt;VPN&lt;/span&gt; Server solutions available, like -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;OpenVPN&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;PPTP&lt;/span&gt; (Point-to-Point Tunneling Protocol)&lt;/li&gt;
&lt;li&gt;IPSec&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;SSH&lt;/span&gt; Tunneling&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The second Husky test was done with a &lt;span class=&quot;smallcaps-auto&quot;&gt;PPTP&lt;/span&gt; &lt;span class=&quot;smallcaps-auto&quot;&gt;VPN&lt;/span&gt; setup which wasn’t quite succesful. The reason being - &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; requires bidirectional communication between the peers, and I couldn’t become a peer while I was the &lt;span class=&quot;smallcaps-auto&quot;&gt;VPN&lt;/span&gt; server. It caused a slew of other pesky problems like &lt;code&gt;REQ TIMEOUTS&lt;/code&gt;, Disconnected &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Nodes, disabling Internet on the &lt;span class=&quot;smallcaps-auto&quot;&gt;VPN&lt;/span&gt; server, etc. But as a start, it was assuring that the problem could be solved. I realized that the learning curve for working with computers at the scale of the Internet is no child’s play. But there was another takeaway with the second Husky test. Andrea (from the Husky team) could work with my remote node as the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; master and still get the Husky up and running. This means that all the Husky traffic and node maintenance could be relegated through my PC and transferred to the Husky. &lt;em&gt;Much assuring.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Armed with the Computer Networks concepts I learnt at my college, I set on to set up the slightly tougher OpenVPN server. This is a snapshot of the OpenVPN access server that I set up -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/openvpn-users.png&quot; alt=&quot;OpenVPN users&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1065&quot; height=&quot;795&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I was not only able to set up a world-wide &lt;span class=&quot;smallcaps-auto&quot;&gt;VPN&lt;/span&gt;, but also able to set up communication among the peers. But the firewalls on the Husky computer network were strong for it and sent Andrea’s laptop in a continous &lt;em&gt;Trying to Reconnect&lt;/em&gt; loop. There went our hopes with OpenVPN. I am still looking into this issue. The main issue was that the &lt;span class=&quot;smallcaps-auto&quot;&gt;UDP&lt;/span&gt; channel of OpenVPN was accessible in the Husky network but not the &lt;span class=&quot;smallcaps-auto&quot;&gt;TCP&lt;/span&gt; channels. This caused intermittent connection losses and the OpenVPN client couldn’t figure out what to do. There must be a solution to this and I’ll find it.&lt;/p&gt;
&lt;p&gt;Throughout this experience, I learnt a lot of new things about practical Computer Networks. Once I’m able to crack the &lt;span class=&quot;smallcaps-auto&quot;&gt;VPN&lt;/span&gt; problem, I could put it to use in diverse scenarios (remote robotics testing, as a road warrior, Internet of Things applications, creating a network of friends, etc. ). &lt;span class=&quot;smallcaps-auto&quot;&gt;VPN&lt;/span&gt; brings everyone on the same page (or logical subnet). I also did quite a bit of work with the Stereo Video Streaming which would be the theme of my next post. Stay tuned.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ciao!&lt;/em&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Mid-term Report - GSoC &#39;15</title>
    <link href="https://sidcode.github.io/letters/mid-term-report-gsoc-15/"/>
    <id>https://sidcode.github.io/letters/mid-term-report-gsoc-15/</id>
    <published>2015-07-01T11:53:00.000Z</published>
    <updated>2015-07-01T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Mid-term summary and the Eleventh Post in the GSoC 2015 series.</summary>
    <content type="html">&lt;p&gt;Hi all! I made it through the first half of the &lt;a href=&quot;https://sidcode.github.io/categories/gsoc/&quot; class=&quot;internal&quot;&gt;GSoC 2015 program&lt;/a&gt;. This is the &lt;strong&gt;evaluation week&lt;/strong&gt; of the &lt;a href=&quot;https://www.google-melange.com/gsoc/homepage/google/gsoc2015&quot; class=&quot;external&quot;&gt;Google Summer of Code 2015 program&lt;/a&gt; with the &lt;a href=&quot;https://www.python.org/psf/&quot; class=&quot;external&quot; data-link-icon=&quot;py&quot; data-link-icon-style=&quot;mono&quot;&gt;Python Software Foundation&lt;/a&gt; and the &lt;a href=&quot;https://erasproject.org/&quot; class=&quot;external&quot;&gt;Italian Mars Society &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; Project&lt;/a&gt;. Mentors and students evaluate the journey so far in the program by answering some questions about their students and mentors respectively. On comparing with the timeline, I reckoned that I am on track with the project so far.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The entire &lt;strong&gt;Telerobotics with Virtual Reality&lt;/strong&gt; project can be visualized in the following diagram -&lt;/p&gt;
&lt;/blockquote&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/telerobotics-diagram.png&quot; alt=&quot;Project Architecture&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2417&quot; height=&quot;2709&quot;&gt;&lt;/figure&gt;
&lt;h2 id=&quot;achievements-&quot;&gt;Achievements-&lt;a class=&quot;h-anchor&quot; href=&quot;#achievements-&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id=&quot;husky-ros-tango-interface&quot;&gt;Husky-ROS-Tango Interface&lt;a class=&quot;h-anchor&quot; href=&quot;#husky-ros-tango-interface&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;-Tango interfaces&lt;/strong&gt; to connect the &lt;strong&gt;Telerobotics&lt;/strong&gt; module with the &lt;strong&gt;rest of &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Interfaces for Navigation and Control of Husky
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/navigate-ros.png&quot; alt=&quot;Husky Navigation&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1202&quot; height=&quot;638&quot;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://sidcode.github.io/letters/the-half-life-of-telerobotics/&quot; class=&quot;internal&quot;&gt;Logging Diagnostics&lt;/a&gt; of the robot to the Tango Bus&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Driving the Husky around using human commands
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/husky-command.png&quot; alt=&quot;Husky Commands&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;video-streaming&quot;&gt;Video Streaming&lt;a class=&quot;h-anchor&quot; href=&quot;#video-streaming&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Single Camera Video streaming to Blender Game Engine&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is how it works. &lt;strong&gt;ffmpeg&lt;/strong&gt; is used as the streaming server to which Blender Game Engine subscribes.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;ffserver.conf&lt;/code&gt; file is configured as follows which describes the characterstics of the stream:&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Port 8190&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;BindAddress 0.0.0.0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;MaxClients 10&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;MaxBandwidth 50000&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;NoDaemon&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&amp;#x3C;Feed webcam.ffm&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;file /tmp/webcam.ffm&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;FileMaxSize 2000M&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&amp;#x3C;/Feed&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&amp;#x3C;Stream webcam.mjpeg&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Feed webcam.ffm&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Format mjpeg&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;VideoSize 640x480&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;VideoFrameRate 30&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;VideoBitRate 24300&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;VideoQMin 1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;VideoQMax 5&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&amp;#x3C;/Stream&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then the Blender Game Engine and its associated Python library &lt;code&gt;bge&lt;/code&gt; kicks in to display the stream on the &lt;strong&gt;Video Texture&lt;/strong&gt;:&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;# Get an instance of the video texture&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;bge.logic.video = bge.texture.Texture(obj, ID)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;# a ffmpeg server is streaming the feed on the IP:PORT/FILE&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;# specified in FFMPEG_PARAM,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;# BGE reads the stream from the mjpeg file.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;bge.logic.video.source = bge.texture.VideoFFmpeg(FFMPEG_PARAM)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;bge.logic.video.source.play()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;bge.logic.video.refresh(True)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;The entire source code for single camera streaming can be found &lt;a href=&quot;https://bitbucket.org/italianmarssociety/v-eras-blender/src/42063c0b489152a9f124f80824ad095a752c29ff/scripts/webstream/single%20camera/?at=default&quot; class=&quot;external&quot;&gt;in this repository&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Setting up the &lt;strong&gt;Minoru Camera&lt;/strong&gt; for stereo vision
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/minoru.jpg&quot; alt=&quot;Minoru Camera&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1123&quot; height=&quot;1500&quot;&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It turns out this camera can stream at &lt;strong&gt;30 frames per second&lt;/strong&gt; for both cameras. The last week has been particularly challenging to figure out the optimal settings for the Minoru Webcam to work. It depends on the Video Buffer Memory allocated by the &lt;strong&gt;Linux Kernel&lt;/strong&gt; for &lt;code&gt;libuvc&lt;/code&gt; and &lt;code&gt;v4l2&lt;/code&gt; compatible webcams. Different kernel versions result in different performances. It is inefficient to stream the left and right cameras at a frame rate greater than 15 fps with the kernel version that I am using.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Setting up the Oculus Rift DK1 for the &lt;strong&gt;Virtual Reality&lt;/strong&gt; work in the upcoming second term
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/oculus-rift.jpg&quot; alt=&quot;Oculus Rift&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;640&quot; height=&quot;427&quot;&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;crash-testing-and-roadblocks&quot;&gt;Crash-testing and Roadblocks&lt;a class=&quot;h-anchor&quot; href=&quot;#crash-testing-and-roadblocks&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This project was not without its share of obstacles. A few memorable roadblocks come to mind-&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Remote Husky testing&lt;/strong&gt; - Matt (from &lt;strong&gt;Canada&lt;/strong&gt;), Franco (from &lt;strong&gt;Italy&lt;/strong&gt;), and I (from &lt;strong&gt;India&lt;/strong&gt;) tested whether we could remotely control Husky. The main issue we faced was &lt;strong&gt;Network Connectivity&lt;/strong&gt;. We were all on different networks geographically, which the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; in our machines could not resolve. Thus some messages (like &lt;span class=&quot;smallcaps-auto&quot;&gt;GPS&lt;/span&gt;) were accessible  whereas the others (like Husky Status messages) were not. The solution we sought is to create a &lt;strong&gt;Virtual Private Network&lt;/strong&gt; for our computers for future testing.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Minoru Camera Performance differences&lt;/strong&gt; - Since the Minoru’s performance varies with the Kernel version, I had to bump down the frames per second to &lt;em&gt;15 fps&lt;/em&gt; for both cameras and stream them in the Blender Game Engine. This temporary hack should be resolved as &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; moves to newer Linux versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Tango related&lt;/strong&gt; - Tango-controls is a sophisticated piece of &lt;span class=&quot;smallcaps-auto&quot;&gt;SCADA&lt;/span&gt; library with a server database for maintaining device server lists. It was painful to use the provided &lt;span class=&quot;smallcaps-auto&quot;&gt;GUI&lt;/span&gt; - Jive to configure the device servers. To make the process in line with other development activities, I wrote a little &lt;span class=&quot;smallcaps-auto&quot;&gt;CLI&lt;/span&gt;-based Device server registration and de-registration interactive script. A &lt;a href=&quot;https://sidcode.github.io/letters/when-two-distributed-systems-meet/&quot; class=&quot;internal&quot;&gt;blog post&lt;/a&gt; which explains this in detail.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Common testing platform&lt;/strong&gt; -  I needed to use &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Indigo, which is supported only on Ubuntu 14.04. &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; is currently using Ubuntu 14.10. In order to enable Italian Mars Society and the members to execute my scripts, they needed my version of Ubuntu. &lt;strong&gt;Solution&lt;/strong&gt; - Virtual Linux Containers. We are using a &lt;strong&gt;Docker Image&lt;/strong&gt; which my mentors can use on their machine regarding of their native OS. &lt;a href=&quot;https://sidcode.github.io/letters/all-for-docker-docker-for-all/&quot; class=&quot;internal&quot;&gt;This post&lt;/a&gt; explains this point.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;expectations-from-the-second-term&quot;&gt;Expectations from the second term&lt;a class=&quot;h-anchor&quot; href=&quot;#expectations-from-the-second-term&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is a huge project in that I have to deal with &lt;em&gt;many different technologies&lt;/em&gt; like -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Robot Operating System&lt;/li&gt;
&lt;li&gt;FFmpeg&lt;/li&gt;
&lt;li&gt;Blender Game Engine&lt;/li&gt;
&lt;li&gt;Oculus VR &lt;span class=&quot;smallcaps-auto&quot;&gt;SDK&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Tango-Controls&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So far, the journey has been exciting and there has been a lot of learning and development. The second term will be intense, challenging, and above all, fun.&lt;/p&gt;
&lt;p&gt;To-do list -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Get Minoru webcam to work with ffmpeg streaming&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use Oculus for an Augmented Reality application
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/oculus-mars.jpg&quot; alt=&quot;Oculus Rift&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;640&quot; height=&quot;360&quot;&gt;
&lt;a href=&quot;https://vimeo.com/111243246&quot; class=&quot;external&quot; data-link-icon-svg=&quot;play&quot;&gt;Source&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Integrate Bodytracking with Telerobotics&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Automation in Husky movement and using a UR5 manipulator&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set up a &lt;a href=&quot;https://pptpclient.sourceforge.net/&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;PPTP&lt;/span&gt;&lt;/a&gt; or &lt;a href=&quot;https://openvpn.net/&quot; class=&quot;external&quot;&gt;OpenVPN&lt;/a&gt; for &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Time really flies by fast when I am learning new things. GSoC so far has taught me how to not be a &lt;a href=&quot;https://www.quora.com/What-are-the-characteristics-of-a-bad-software-engineer&quot; class=&quot;external&quot;&gt;bad software engineer&lt;/a&gt;, but also how to be a good open source community contributor. That is what the spirit of Google Summer of Code is about and I have imbibed a lot. Besides, working with the Italian Mars Society has also motivated me to learn the Italian language. So Python is not the only language that I’m practicing over this summer ;)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Here’s to the second term of Google Summer of Code 2015!
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/gsoc-banner.png&quot; alt=&quot;GSoC Banner&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;920&quot; height=&quot;156&quot;&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Ciao :)&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>The Half-Life of Telerobotics</title>
    <link href="https://sidcode.github.io/letters/the-half-life-of-telerobotics/"/>
    <id>https://sidcode.github.io/letters/the-half-life-of-telerobotics/</id>
    <published>2015-06-24T11:53:00.000Z</published>
    <updated>2015-06-24T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Tenth Post in the GSoC 2015 series.</summary>
    <content type="html">&lt;p&gt;Hi all! If you’ve been following my &lt;a href=&quot;https://sidcode.github.io/categories/gsoc/&quot; class=&quot;internal&quot;&gt;previous posts&lt;/a&gt;, you’d have known that the Telerobotics module has been simmering for a couple of weeks. I’m happy to announce that it is almost complete and would hopefully be integrated with Vito’s Bodytracking module.&lt;/p&gt;
&lt;p&gt;The last week (week four and five) were the busiest weeks of GSoC for me.&lt;/p&gt;
&lt;h2 id=&quot;learning-experience&quot;&gt;Learning Experience&lt;a class=&quot;h-anchor&quot; href=&quot;#learning-experience&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;I learnt A &lt;span class=&quot;smallcaps-auto&quot;&gt;LOT&lt;/span&gt; about Python Software Development&lt;/li&gt;
&lt;li&gt;Different types of &lt;a href=&quot;https://www.oreilly.com/programming/free/software-architecture-patterns.csp&quot; class=&quot;external&quot;&gt;software architectures&lt;/a&gt;,&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://pyvideo.org/video/1093/the-development-process-of-python&quot; class=&quot;external&quot;&gt;The development process of Python&lt;/a&gt; by one of the members of the Italian Mars Society who has been the reason I’m able to write more Pythonic code  - &lt;a href=&quot;https://wolfprojects.altervista.org/&quot; class=&quot;external&quot;&gt;Ezio Melotti&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.esrf.eu/computing/cs/tango/tango_doc/kernel_doc/pytango/latest/quicktour.html#pytango-quick-tour&quot; class=&quot;external&quot;&gt;PyTango&lt;/a&gt; Development&lt;/li&gt;
&lt;li&gt;ipython and how helpful it can be for Tango applications&lt;/li&gt;
&lt;li&gt;Message queues - Both &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and Tango utilize ZeroMQ - which makes integration of &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and Tango much scalable&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.vlfeat.org/overview/sift.html&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;SIFT&lt;/span&gt;&lt;/a&gt; in Python - I will be working with my mentor Fabio Nigi on this very soon&lt;/li&gt;
&lt;li&gt;Making my own stereo camera&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;deliverables&quot;&gt;Deliverables&lt;a class=&quot;h-anchor&quot; href=&quot;#deliverables&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; node&lt;/strong&gt; which collects information from all interesting topics from the Husky robot. This can be found &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/db8c7061f4768534ebb2621296a20a016bd240ad/servers/telerobotics/src/robot-info-collector.py?at=default&quot; class=&quot;external&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;Tango Server&lt;/strong&gt; which integrates with &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; to provide diagnostic information from the robot (&lt;em&gt;Battery Status, Temperature Levels, Current Draw, Voltate, Error Conditions&lt;/em&gt; )&lt;/li&gt;
&lt;li&gt;A simulated version of the Tango server for the Planning and Scheduling application that Shridhar is working on. These can be accessed &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/db8c7061f4768534ebb2621296a20a016bd240ad/servers/telerobotics/src/robot-diagnostics-server.py?at=default&quot; class=&quot;external&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;** Soft Real-time network streaming** &lt;span class=&quot;smallcaps-auto&quot;&gt;FFMPEG&lt;/span&gt; server and Blender Client for a single camera video stream. This can be found &lt;a href=&quot;https://bitbucket.org/italianmarssociety/v-eras-blender/src/42063c0b489152a9f124f80824ad095a752c29ff/scripts/webstream/single%20camera/?at=default&quot; class=&quot;external&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;under-heavy-development&quot;&gt;Under &lt;strong&gt;heavy&lt;/strong&gt; Development&lt;a class=&quot;h-anchor&quot; href=&quot;#under-heavy-development&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Integration of Bodytracking with Telerobotics. The following message format has been decided upon by the mentors and students:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;# Attribute definitions for various diagnostic messages&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  moves = attribute(label=&quot;Linear and angular displacement&quot;, dtype = (float,),&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                              display_level = DispLevel.EXPERT,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                              access = AttrWriteType.READ,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                              unit = &quot;(meters, radians)&quot;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                              fget=&quot;getMoves&quot;, polling_period = POLLING,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                              max_dim_x = 2, max_dim_y = 1,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;                              doc=&quot;An attribute for Linear and angular displacements&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Vito’s Bodytracker would &lt;strong&gt;publish events&lt;/strong&gt; in the form of Tango events. The associated data would be a float tuple of dimensions &lt;strong&gt;2,1&lt;/strong&gt; (2 columns, 1 row). Such a tuple, like (3.4, 1.2) would specify a relative linear and angular displacement of the astronaut. My Telerobotics module would &lt;strong&gt;subscribe to this Tango event&lt;/strong&gt; and &lt;em&gt;transform&lt;/em&gt; this data to a &lt;strong&gt;Twist&lt;/strong&gt; message that the Husky can understand.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Extension of Camera Streaming to a dual camera setup. I am extending the streaming capabilty for a stereo camera.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Mid-term evaluations start tomorrow! Eagerly looking forward to them. It has been an eventful and productive half summer of code. I hope the next half is even more exciting and challenging as the one that passed.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ciao&lt;/em&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>When two Distributed Systems meet!</title>
    <link href="https://sidcode.github.io/letters/when-two-distributed-systems-meet/"/>
    <id>https://sidcode.github.io/letters/when-two-distributed-systems-meet/</id>
    <published>2015-06-18T11:53:00.000Z</published>
    <updated>2015-06-18T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Ninth Post in the GSoC 2015 series. This post is the third bi-weekly update for the Google Summer of Code 2015 program</summary>
    <content type="html">&lt;p&gt;Hi! This post is meant to be an insight into the experience and progress of the third and fourth weeks of my (a)vocation with the Google Summer of Code Program. Things got much pacier and smooth in the past two weeks. I’ve been able to get a stable codebase up and running with respect to the aims discussed in the timeline.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/workspace2.png&quot; alt=&quot;Sublime Text Workspace&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;
&lt;the usual=&quot;&quot; rant=&quot;&quot;&gt; I had to totally restructure my programming workspace for the second time to support Intelligent &lt;span class=&quot;smallcaps-auto&quot;&gt;IDE&lt;/span&gt; like features since the Python packages I am working with (&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and Tango) have a fair number of modules whose documentation I need to read on the fly while coding away. Thus I set up both my &lt;strong&gt;Vim and Sublime Text&lt;/strong&gt; environments to support  &lt;em&gt;intelli-sense&lt;/em&gt;, &lt;em&gt;code completion&lt;/em&gt;, &lt;em&gt;block syntax completion&lt;/em&gt;, etc. I also added a dual monitor setup with the unused &lt;span class=&quot;smallcaps-auto&quot;&gt;LCD&lt;/span&gt; television at my home to make for an efficient programming ambience.
&lt;usual rant=&quot;&quot;&gt;&lt;/usual&gt;&lt;/the&gt;&lt;/p&gt;
&lt;h2 id=&quot;telerobotics-code-pushed&quot;&gt;Telerobotics Code Pushed&lt;a class=&quot;h-anchor&quot; href=&quot;#telerobotics-code-pushed&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;As I mentioned in my &lt;a href=&quot;https://sidcode.github.io/letters/gsoc-2015-with-the-italian-mars-society/&quot; class=&quot;internal&quot;&gt;first post&lt;/a&gt;, the contributors of the &lt;strong&gt;Italian Mars Society&lt;/strong&gt; are given &lt;em&gt;write access&lt;/em&gt; to the online Bitbucket repository. This is a tremendous responsibility to ensure that the updates don’t disturb the stability of the project. To work with this, I follow the simple and effective advice of my mentors -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;hg pull&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;hg update&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;hg add .&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;hg commit -m &quot;My awesome Commit Message&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;hg push&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This simple algorithm ensures that all students can work at their pace without breaking the system. &lt;a href=&quot;https://hginit.com/&quot; class=&quot;external&quot;&gt;This simple tutorial&lt;/a&gt; can help the uninitiated to understand what I just said.&lt;/p&gt;
&lt;p&gt;So while working with Tango servers for my project, I had to constantly use the bundled &lt;span class=&quot;smallcaps-auto&quot;&gt;GUI&lt;/span&gt; - &lt;strong&gt;Jive&lt;/strong&gt; which works as a one-stop solution for &lt;a href=&quot;https://www.esrf.eu/computing/cs/tango/tango_doc/kernel_doc/pytango/latest/quicktour.html&quot; class=&quot;external&quot;&gt;Device Servers&lt;/a&gt;. But my primordial hacker instincts prompted me to write a &lt;a href=&quot;https://en.wikipedia.org/wiki/Command-line_interface&quot; class=&quot;external&quot; data-link-icon=&quot;W&quot; data-link-icon-style=&quot;serif&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;CLI&lt;/span&gt;&lt;/a&gt; solution to add and remove device servers using the amazing &lt;a href=&quot;https://www.esrf.eu/computing/cs/tango/tango_doc/kernel_doc/pytango/latest/#&quot; class=&quot;external&quot;&gt;PyTango &lt;span class=&quot;smallcaps-auto&quot;&gt;API&lt;/span&gt;&lt;/a&gt;. Thanks to Ezio’s excellent comments on my commits, I’ve been able to contribute a Pythonic solution for working with Device Servers in a jiffy. The script can be found &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/2da8222593354228a1eb426bef556654e794365c/servers/telerobotics/utility/setup-device.py?at=default&quot; class=&quot;external&quot;&gt;here&lt;/a&gt;. It has a nice UI to help the user figure out what he/she needs to enter. I have yet to correct some formatting errors to make it more consistent with &lt;span class=&quot;smallcaps-auto&quot;&gt;PEP8&lt;/span&gt; and the &lt;a href=&quot;https://docs.python.org//glossary.html#term-eafp&quot; class=&quot;external&quot; data-link-icon=&quot;py&quot; data-link-icon-style=&quot;mono&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;EAFP&lt;/span&gt;&lt;/a&gt; idiom. The current stage of argument validation is more like &lt;span class=&quot;smallcaps-auto&quot;&gt;LBYL&lt;/span&gt; (Look Before You Leap) which is slow for the script’s use-case.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The second module&lt;/strong&gt; I pushed is the &lt;strong&gt;Husky Test&lt;/strong&gt; script to ensure if the Husky installation works or not on a particular setup. The &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/2da8222593354228a1eb426bef556654e794365c/servers/telerobotics/utility/test_husky.py?at=default&quot; class=&quot;external&quot;&gt;test script&lt;/a&gt; which allows a Husky to move with a particular linear and angular velocity. The &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/2da8222593354228a1eb426bef556654e794365c/servers/telerobotics/doc/sad.rst?at=default&quot; class=&quot;external&quot;&gt;Software Architecture Document&lt;/a&gt; was also updated to account for the new changes in the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;-Tango interface architecture. A better understanding of the &lt;span class=&quot;smallcaps-auto&quot;&gt;SAD&lt;/span&gt; can be had in &lt;a href=&quot;https://sidcode.github.io/letters/software-architecture-document-for-telerobotics/&quot; class=&quot;internal&quot;&gt;an earlier post&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;docker&quot;&gt;Docker&lt;a class=&quot;h-anchor&quot; href=&quot;#docker&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I explained the Docker setup and distribution in a &lt;a href=&quot;https://sidcode.github.io/letters/all-for-docker-docker-for-all/&quot; class=&quot;internal&quot;&gt;quick mini-post&lt;/a&gt;. I tested that the X-errors don’t impede with the scripts that I have been developing since &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; topics can be accessed from the command line as well. This is a good thing. The Docker repository for my workspace can be found &lt;a href=&quot;https://registry.hub.docker.com/u/sidcode/ros-eras/&quot; class=&quot;external&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;python-reading&quot;&gt;Python Reading&lt;a class=&quot;h-anchor&quot; href=&quot;#python-reading&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I have been voraciously consulting the following sources for getting the knack of Python and PyTango programming -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Python Docs for &lt;a href=&quot;https://docs.python.org/2/&quot; class=&quot;external&quot; data-link-icon=&quot;py&quot; data-link-icon-style=&quot;mono&quot;&gt;Python 2&lt;/a&gt; and &lt;a href=&quot;https://docs.python.org/3/&quot; class=&quot;external&quot; data-link-icon=&quot;py&quot; data-link-icon-style=&quot;mono&quot;&gt;Python 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://shop.oreilly.com/product/0636920027072.do&quot; class=&quot;external&quot;&gt;Python Cookbook&lt;/a&gt; by O’Reilly Publishers&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://shop.oreilly.com/product/0636920032519.do&quot; class=&quot;external&quot;&gt;Fluent Python&lt;/a&gt; (early access) again by O’Reilly Publishers&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.esrf.eu/computing/cs/tango/tango_doc/kernel_doc/pytango/latest/index.html&quot; class=&quot;external&quot;&gt;PyTango documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The happiest point of all this reading kicked in when I could help Vito to reduce &lt;strong&gt;fifty lines of code to just two&lt;/strong&gt; with the use of the &lt;code&gt;exec&lt;/code&gt; construct in Python. In case you’re wondering, this is the &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/commits/2da8222593354228a1eb426bef556654e794365c#Lservers/body_tracker/tracker/tracker.pyT40&quot; class=&quot;external&quot;&gt;code written by Vito&lt;/a&gt; -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;   joints = [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_head&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_neck&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_left_shoulder&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_right_shoulder&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_left_elbow&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_right_elbow&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_left_hand&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_right_hand&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_torso&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_left_hip&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_right_hip&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_left_knee&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_right_knee&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_left_foot&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        &#39;skeleton_right_foot&#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    attr_init_params = dict(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        dtype=(&#39;float32&#39;,),&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        unit=&#39;m&#39;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        max_dim_x=3,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        polling_period=POLLING&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    )&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    for joint in joints:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;        exec &quot;%s = attribute(**attr_init_params)&quot; % joint&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note that without the &lt;code&gt;exec&lt;/code&gt; usage, each line would’ve to be manually written for each of the joint that we see in the &lt;code&gt;joints&lt;/code&gt; list.&lt;/p&gt;
&lt;h2 id=&quot;ongoing-stuff&quot;&gt;Ongoing Stuff&lt;a class=&quot;h-anchor&quot; href=&quot;#ongoing-stuff&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;There are certain deliverables in the pipeline currently waiting to be pushed to the online repository over the course of the next week. I have been working on -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;-feedback Aggregator Device Server for Tango&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Commander Node for the Husky&lt;/li&gt;
&lt;li&gt;Tango Client to understand Husky status (battery levels, sensor monitor, etc.)&lt;/li&gt;
&lt;li&gt;Mathematical Transformations and Named Tuples for different structures that Telerobotics requires.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;GSoC with &lt;span class=&quot;smallcaps-auto&quot;&gt;PSF&lt;/span&gt; and Italian Mars Society is turning out to be fun-and-challenging. Mid-term Evaluations start in a week. Lots of work to do. I strongly hope my next post will be a celebratory one highlighting the pushed code I described in &lt;em&gt;Ongoing Stuff&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Until then, Ciao!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>All for Docker; Docker for all!</title>
    <link href="https://sidcode.github.io/letters/all-for-docker-docker-for-all/"/>
    <id>https://sidcode.github.io/letters/all-for-docker-docker-for-all/</id>
    <published>2015-06-12T11:53:00.000Z</published>
    <updated>2015-06-12T11:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Eighth Post in the GSoC 2015 series. This post describes my third week of the Google Summer of Code 2015 program</summary>
    <content type="html">&lt;p&gt;Hi! This is going to be a short post about my developments in the Week 3 of my GSoC project. Since my &lt;a href=&quot;https://sidcode.github.io/letters/tango-ing-with-ros-week-2/&quot; class=&quot;internal&quot;&gt;last post&lt;/a&gt;, I have had the chance to work with some exciting state-of-the-art technologies which allow easy distribution and scalability. These are -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Docker
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/docker-logo.png&quot; alt=&quot;Docker Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1354&quot; height=&quot;1208&quot;&gt;&lt;/li&gt;
&lt;li&gt;Tango-Controls
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/tangologo.png&quot; alt=&quot;Tango Controls logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2155&quot; height=&quot;646&quot;&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I used the &lt;a href=&quot;https://registry.hub.docker.com/_/ubuntu/&quot; class=&quot;external&quot;&gt;Ubuntu 14.04&lt;/a&gt; &lt;em&gt;Docker Container&lt;/em&gt; to setup my system which can be used by anyone in the world as a common platform to test the applications that I am working on. This has multiple advantages -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Setup-time for collaborators is null. The developer sets up the Docker container and the community members can use it directly.&lt;/li&gt;
&lt;li&gt;Host platform-independent. It doesn’t matter whether the collaborator’s host system is Arch Linux, Windows 8, or a specific version of Ubuntu. Docker uses &lt;a href=&quot;https://www.toptal.com/linux/separation-anxiety-isolating-your-system-with-linux-namespaces&quot; class=&quot;external&quot;&gt;Linux namespaces&lt;/a&gt; and ensures a separation of concerns.&lt;/li&gt;
&lt;li&gt;Revision control mechanism. The developer plays around with a Docker Image just as he/she would do with any other &lt;strong&gt;Distribution Revision Control system&lt;/strong&gt;. I &lt;strong&gt;push&lt;/strong&gt; my changes to the repository (Docker image) and my mentors can simply &lt;strong&gt;pull the updates&lt;/strong&gt; to get the new system configuration.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So far, I have setup Tango-Controls, &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Indigo, and the Husky libraries for my Docker image. These can be found in the &lt;a href=&quot;https://registry.hub.docker.com/u/sidcode/ros-eras/&quot; class=&quot;external&quot;&gt;Docker Registry Hub&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The issues that I am currently facing are -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Graphics Problems. X-server Bad Drawing errors. A way to get around this will be to better understand how &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; applications use the X-server and then provide Docker the appropriate graphics capabilities. But this does not impede with the Command Line applications of &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and Tango which I have been working on.&lt;/li&gt;
&lt;li&gt;MySQL connection problems. The workaround currently is to use the Host OS’s Tango &lt;span class=&quot;smallcaps-auto&quot;&gt;HOST&lt;/span&gt;. I observed that it works fine that way.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is it for this post. I mainly discussed about Docker in this post, which was an important thing that we discussed in the &lt;strong&gt;All-hands meeting on 8th June&lt;/strong&gt;. I’ll go into much more detail with Tango Controls in the upcoming blog posts and the biweekly reports.&lt;/p&gt;
&lt;p&gt;Ciao!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Tango-ing with ROS- Week 2!</title>
    <link href="https://sidcode.github.io/letters/tango-ing-with-ros-week-2/"/>
    <id>https://sidcode.github.io/letters/tango-ing-with-ros-week-2/</id>
    <published>2015-06-07T16:53:00.000Z</published>
    <updated>2015-06-07T16:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Seventh Post in the GSoC 2015 series. This post describes my second week of the Google Summer of Code 2015 program</summary>
    <content type="html">&lt;p&gt;Hi! This one is about my &lt;strong&gt;second week of the Google Summer of Code 2015 program&lt;/strong&gt;. It was a busy long &lt;strong&gt;week two&lt;/strong&gt; with some crucial design decisions to be implemented and new things to learn. It was also a hectic week of reading how to write better Python code (&lt;code&gt;Fluent Python - O&#39;Reilly Publishers&lt;/code&gt;, maintaining Python2 and Python3 compatibility, etc) After finalizing on the architecture last week (shown below), it was time to work on implementing it -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/rostango.png&quot; alt=&quot;ROS and Tango&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2213&quot; height=&quot;1350&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Evidently from the diagram, there are &lt;strong&gt;two distributed systems&lt;/strong&gt; involved - both significantly complicated. These are -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tango Controls&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; (Robot Operating System)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The  challenge here is to create an &lt;strong&gt;event-triggered Tango Device&lt;/strong&gt; which serves &lt;strong&gt;as both a client and a server&lt;/strong&gt;. This Tango device listens for new events on the Tango bus, and sends data to it when need be. In addition, this is also interfaced with &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; in that the required Tango events for &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; are processed by the device and published to the appropriate &lt;code&gt;TangoROS&lt;/code&gt; topic when required. It also subscribes to &lt;code&gt;ROSTango&lt;/code&gt; topic to listen to any incoming updates from the robot.&lt;/p&gt;
&lt;p&gt;Some use-cases for this are as follows -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The Bodytracking server pushes the location/orientation data on the bus.&lt;/li&gt;
&lt;li&gt;The TangoROS Device subscribes to the events of the Bodytracking data on the Tango bus.&lt;/li&gt;
&lt;li&gt;When an event is triggered, the device processes the data into &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;-compatible messages (&lt;code&gt;location&lt;/code&gt; and &lt;code&gt;orientation&lt;/code&gt; are &lt;strong&gt;transformed&lt;/strong&gt; into &lt;code&gt;linear velocity&lt;/code&gt; and &lt;code&gt;angular velocity&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;The &lt;em&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Commander&lt;/em&gt; node (which is subscribed to the &lt;code&gt;ROSTango&lt;/code&gt; topic)&lt;/li&gt;
&lt;li&gt;The &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Commander node continuously monitors the robot for different measurements (&lt;strong&gt;sensor readings, battery status, navigation feedback, etc&lt;/strong&gt;). The important signals are published to the &lt;code&gt;ROSTango bus&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is my first time working with the powerful Tango-Controls system. It is used by -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Italian Mars Society&lt;/li&gt;
&lt;li&gt;The very large solar array network (&lt;span class=&quot;smallcaps-auto&quot;&gt;SAK&lt;/span&gt;)&lt;/li&gt;
&lt;li&gt;Synchotrons and Particle Accelerators around Europe&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I’ll discuss how I work with Tango and &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; in my next blog post.&lt;/p&gt;
&lt;p&gt;The Italian Mars Society had an All-hands Skype meeting on 8th June, 2015 where all the GSoC students and mentors discussed project status, software architecture document feedback, roadblocks, hardware needs, collaboration, field tests etc.&lt;/p&gt;
&lt;p&gt;Things that were discussed and to be done-&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Docker Image for &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; setup (&lt;strong&gt;very important&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;Battery status Tango server&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Tango Client&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Tango server for certain use cases&lt;/li&gt;
&lt;li&gt;Tango events&lt;/li&gt;
&lt;li&gt;Timestamp based Transformation of parameters in a time-series data&lt;/li&gt;
&lt;li&gt;Set up the Minoru 3D camera and the Oculus Rift device&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is a week where I’d like most of these things to fall in place. GSoC is turning out to be exciting and challenging! Til the next post. Over to week three.&lt;/p&gt;
&lt;p&gt;Ciao!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Programming a Mars rover - Week 1!</title>
    <link href="https://sidcode.github.io/letters/programming-a-mars-rover-week-1/"/>
    <id>https://sidcode.github.io/letters/programming-a-mars-rover-week-1/</id>
    <published>2015-06-02T16:53:00.000Z</published>
    <updated>2015-06-02T16:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Sixth Post in the GSoC 2015 series. This post describes my first week of the Google Summer of Code</summary>
    <content type="html">&lt;p&gt;Hi! This is the sixth post in my &lt;a href=&quot;https://sidcode.github.io/categories/gsoc/&quot; class=&quot;internal&quot;&gt;GSoC ‘15 blog series&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So the much awaited coding period began on 25th May, 2015. After a refreshing &lt;a href=&quot;https://sidcode.github.io/letters/gsoc-15-community-bonding/&quot; class=&quot;internal&quot;&gt;Community Bonding&lt;/a&gt; experience, &lt;a href=&quot;https://sidcode.github.io/letters/workspace-setup-for-telerobotics/&quot; class=&quot;internal&quot;&gt;setting up my workspace&lt;/a&gt;, and &lt;a href=&quot;https://sidcode.github.io/letters/software-architecture-document-for-telerobotics/&quot; class=&quot;internal&quot;&gt;creating a Software Architecture Document&lt;/a&gt; - I was in a position to start coding.&lt;/p&gt;
&lt;h2 id=&quot;aims-and-milestones&quot;&gt;Aims and Milestones&lt;a class=&quot;h-anchor&quot; href=&quot;#aims-and-milestones&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This week, according to the &lt;a href=&quot;https://sidcode.github.io/letters/gsoc-15-about-my-project/&quot; class=&quot;internal&quot;&gt;timeline&lt;/a&gt;, my aims were -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Creating the initial set of &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; nodes for the Husky model for linear and angular motion&lt;/li&gt;
&lt;li&gt;Zeroing in on the basic interface for mapping the Kinect bodytracking information and Motivity interface being concurrently developed by Vito to teleoperation commands that Husky can understand&lt;/li&gt;
&lt;li&gt;Figuring out a way to integrate &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and Tango into &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So far it has been a good week and I am on schedule. I am able to manipulate the motion of the simulated Husky via an external stimuli.&lt;/p&gt;
&lt;h2 id=&quot;architecture&quot;&gt;Architecture&lt;a class=&quot;h-anchor&quot; href=&quot;#architecture&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Before I describe my programs, let me first describe the high-level architecture with help of a simple diagram -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/arch2.png&quot; alt=&quot;Telerobotics Architecture&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1134&quot; height=&quot;1235&quot;&gt;&lt;/figure&gt;
&lt;p&gt;As is evident from the diagram, there are &lt;strong&gt;two distributed systems&lt;/strong&gt; involved - both fairly complicated. These are -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tango Controls&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; (Robot Operating System)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This was by far the &lt;strong&gt;biggest challenge&lt;/strong&gt; of the project. Interfacing data from one distributed system to the other while maintaining low latency and ensuring high performance.&lt;/p&gt;
&lt;p&gt;Another challenge was handling real-time streaming data.
I banged my head against Python Streams. Message brokers like &lt;a href=&quot;https://www.rabbitmq.com/&quot; class=&quot;external&quot;&gt;RabbitMQ&lt;/a&gt; and &lt;a href=&quot;https://zeromq.org/&quot; class=&quot;external&quot;&gt;ZeroMQ&lt;/a&gt;. But as &lt;strong&gt;Albert Einstein&lt;/strong&gt; said -&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“If you can’t explain it to a six year old, you don’t understand it yourself.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;All this while, I was confused in transferring data over an &lt;strong&gt;additional&lt;/strong&gt; inter-process communication structure between two distributed systems. Meh. Sounds complicated. It actually is. And that is why I chucked that idea out. After spending three full days on this, I realized a &lt;strong&gt;much simpler architecture&lt;/strong&gt; -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/rostango.png&quot; alt=&quot;ROS and Tango&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2213&quot; height=&quot;1350&quot;&gt;&lt;/figure&gt;
&lt;p&gt;&lt;em&gt;Voila!&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The good thing about this diagram is that it works at scale with as many &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; nodes one may like to add for the rover (Husky) without compromising on the data coming from the Tango bus. The &lt;strong&gt;missing piece&lt;/strong&gt; of the &lt;em&gt;two distributed systems&lt;/em&gt; puzzle is solved by a Tango &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Node. Now I have a plan to work on in the second week of coding.&lt;/p&gt;
&lt;p&gt;These requirements had to be reflected in the Software Architecture Document as well. To this end, I set up the excellent &lt;a href=&quot;https://github.com/timonwong/OmniMarkupPreviewer&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;OmniMarkupPreviewer&lt;/a&gt; for &lt;em&gt;Sublime Text&lt;/em&gt; to preview the &lt;strong&gt;reStructuredText&lt;/strong&gt; (&lt;strong&gt;.rst&lt;/strong&gt;) documents that I created.&lt;/p&gt;
&lt;h2 id=&quot;tryst-with-ros-and-husky&quot;&gt;Tryst with ROS and Husky&lt;a class=&quot;h-anchor&quot; href=&quot;#tryst-with-ros-and-husky&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I had never worked with an Unmanned Ground Vehicle before. I did use &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; for robotics experiments at my university lab but needed to quickly jog my memory about &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; programming with &lt;strong&gt;rospy&lt;/strong&gt;. The excellent &lt;a href=&quot;https://wiki.ros.org/ROS/Tutorials&quot; class=&quot;external&quot; data-link-icon=&quot;ROS&quot; data-link-icon-style=&quot;sans&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; wiki&lt;/a&gt; and the book &lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; By Example&lt;/strong&gt; -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/rbxlogo.png&quot; alt=&quot;ROS By Example&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;244&quot; height=&quot;320&quot;&gt;&lt;/figure&gt;
&lt;p&gt;It is a haven for robot hobbyists like me and I’ll continue to refer to it for time to come.&lt;/p&gt;
&lt;p&gt;Alright, I started my week with &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; programming. My first job was to bring up the simulator and make sure that Husky model responds to commands -&lt;/p&gt;
&lt;p&gt;Husky (and other &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; robots) describes movements in the form of &lt;a href=&quot;https://docs.ros.org/api/geometry_msgs/html/msg/Twist.html&quot; class=&quot;external&quot; data-link-icon=&quot;ROS&quot; data-link-icon-style=&quot;sans&quot;&gt;Twist&lt;/a&gt; messages -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;[(x, y, z), (a,b,c) ] where x,y,z is linear velocity along the x,y,z axes. And (a,b,c) is the angular velocity about the x,y,z axes.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So to move in a circle, we issue [ (5,0,0) , (0,0,2) ]. This would result in a linear speed of 5 in the x direction and angular speed of 2 about the z axis, resulting in a circular motion.&lt;/p&gt;
&lt;p&gt;A simple way to explain the working is to use this command -&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;rostopic pub /husky_velocity_controller/cmd_vel geometry_msgs/Twist -r 100 &#39;[0.5,0,0]&#39; &#39;[0,0,0]&#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This publishes a Twist message to the Terminal telling the &lt;strong&gt;/husky_velocity_controller/cmd_vel&lt;/strong&gt; &lt;em&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; topic&lt;/em&gt; that the &lt;a href=&quot;https://docs.ros.org/api/geometry_msgs/html/msg/Twist.html&quot; class=&quot;external&quot; data-link-icon=&quot;ROS&quot; data-link-icon-style=&quot;sans&quot;&gt;Twist&lt;/a&gt; denotes a linear motion of 0.5 m/s along the x direction.&lt;/p&gt;
&lt;p&gt;This is Husky in action -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/husky_in_action.png&quot; alt=&quot;Husky in action&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;&lt;/figure&gt;
&lt;p&gt;To do the same using rospy, the procedure is simple -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Import the required libraries (to support &lt;em&gt;rospy&lt;/em&gt;, logging, and &lt;em&gt;Twist&lt;/em&gt; messages)&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;import roslib&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;import rospy&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;from geometry_msgs.msg import Twist&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Set up a &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; node - in this case &lt;strong&gt;move&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;rospy.init_node(&#39;move&#39;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; nodes act as identifiers (source and destination of messages) in the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; distributed system (modeled as a graph)&lt;/p&gt;
&lt;p&gt;For instance, this is the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; graph while the Husky is moving about -&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/rosgraph.png&quot; alt=&quot;ROS Graph&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2662&quot; height=&quot;368&quot;&gt;
This is why &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; scales so well. Any number of publisher and subscriber nodes can be added to extend different applications.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Set up a publisher to the appropriate &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; topic with the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; message type&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;p = rospy.Publisher(&#39;husky_velocity_controller/cmd_vel&#39;, Twist, queue_size = 100)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;queue_size&lt;/code&gt; argument specifies the message buffer length, and allows for asynchronous transfer of messages on the &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; meesage queue.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Construct a Twist Message&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;twist = Twist()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;twist.linear.x = 0.5;                   &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;twist.linear.y = 0; twist.linear.z = 0;     &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;twist.angular.x = 0; twist.angular.y = 0;  &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;twist.angular.z = 0;    &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Publish the message&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;p.publish(twist)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That was easy, isn’t it?&lt;/p&gt;
&lt;p&gt;Changing the attributes can allow the Husky to move in a circle and nautilus shape -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/husky_circle.png&quot; alt=&quot;Husky Circle&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;&lt;/figure&gt;
&lt;p&gt;In this way, I proceeded in creating &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; nodes to accept Twist messages from any application and made a small teleoperation program on the lines of the &lt;strong&gt;Arrow&lt;/strong&gt; server in &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;. With the help of Franco, I set up the Arrow Tango server and obtained the attributes for distance and orientation.&lt;/p&gt;
&lt;p&gt;The next aim is to use the distance and orientation information on the Tango bus and map it to Husky commands so that it may move around appropriately on ground like this -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/husky_nautilus.png&quot; alt=&quot;Husky Nautilus&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;&lt;/figure&gt;
&lt;p&gt;&lt;em&gt;Random &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Tidbit&lt;/em&gt; - While working with &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;, I came across this interesting command &lt;code&gt;source&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Why do I call it interesting?&lt;/p&gt;
&lt;p&gt;It does not have a &lt;strong&gt;man-page&lt;/strong&gt;, it does not have a &lt;strong&gt;--help&lt;/strong&gt; or &lt;strong&gt;-h&lt;/strong&gt; argument. It has one simple purpose -&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Execute the content of the file passed as argument &lt;strong&gt;in the current shell&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Note that it is not the same as &lt;strong&gt;./&lt;/strong&gt; which creates a new shell to run the command. Shells are nifty processes which allow other program processes to run. I wrote a shell from scratch for a Network Programming course assignment. You may find it &lt;a href=&quot;https://github.com/sidcode/sigshell&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;skype-meeting-for-bodytracking&quot;&gt;Skype Meeting for Bodytracking&lt;a class=&quot;h-anchor&quot; href=&quot;#skype-meeting-for-bodytracking&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Franco, Yuval, Fabio, Ezio, Vito and I had an important meeting on 2nd May( a couple of hours before writing this post). The purpose of the meeting was &lt;strong&gt;Mapping Bodytracking with Telerobotics&lt;/strong&gt;. The whole point of the project is to allow complete virtual and augmented reality immersion of the astronaut and the rover. This is what it means. The robot (a humanoid or a rover) should be able to mimic human action as much as possible. How? If the astronaut runs fast on the Motivity treadmill at a particular angle, the robot should move faster with that angle relative to the moving base position. This would make use of Vito’s Kinect-based bodytracking module for determining incremental distance and orientation.&lt;/p&gt;
&lt;p&gt;Since Husky understands velocity in the Twist message, the distance/orientation information must be transformed into linear/angular velocity. I’ll be working on it this week.&lt;/p&gt;
&lt;p&gt;Fabio brought up the important aspect of autonomy-control in the robotic system. He pressed upon the need of having three different stimuli to the robot -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;From the &lt;strong&gt;Bodytracking application&lt;/strong&gt; (external)&lt;/li&gt;
&lt;li&gt;From the &lt;strong&gt;robot’s onboard sensors&lt;/strong&gt; (internal)&lt;/li&gt;
&lt;li&gt;From an external source&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This suggestion definitely adds robustness to the entire design, it will help the robot to avoid hitting a rock and override an astronaut’s command in case of danger. I will look into it this week and keep semi-autonomy in Telerobotics in mind.&lt;/p&gt;
&lt;p&gt;Yuval talked about contacting the team in Canada which facilitated Husky during V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; 14. The work that I do will be tested on a real Husky eventually.&lt;/p&gt;
&lt;p&gt;Adding a UR10 robotic arm to the Husky to facilitate manipulation and imitation of the human hand was also proposed. I’ll look into that after the work on steering is complete.&lt;/p&gt;
&lt;p&gt;In this way, the meeting was &lt;strong&gt;quite important&lt;/strong&gt; and a bunch of &lt;strong&gt;crucial decisions&lt;/strong&gt; regarding &lt;strong&gt;Telerobotics and Bodytracking&lt;/strong&gt; were taken.&lt;/p&gt;
&lt;h2 id=&quot;the-week-ahead&quot;&gt;The Week ahead&lt;a class=&quot;h-anchor&quot; href=&quot;#the-week-ahead&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The following week, we’ll have another meeting with all the students and possibly a joint code review session. I will be integrating &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and Tango and adding support for different levels of Robot control through additional &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; nodes.&lt;/p&gt;
&lt;h2 id=&quot;summary&quot;&gt;Summary&lt;a class=&quot;h-anchor&quot; href=&quot;#summary&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In hindsight, I was scared my GSoC coding experience would turn out be like this before the start of the &lt;a href=&quot;&quot;&gt;Coding period&lt;/a&gt; -&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/codingbythesill.jpg&quot; alt=&quot;Coding By the Sill&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2048&quot; height=&quot;1435&quot;&gt;
Source - &lt;a href=&quot;https://www.facebook.com/cluecomics&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;CLUE&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;:) In fact I faced nothing like that (but the headphone and the loneliness is true :D ) There were minor setbacks. I had to reinstall &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; as a result of purging my MySQL configuration for Tango. Obviously these were the usual frustrations which crop up with computer programming and Linux, but nothing humongous.
But this is where the &lt;strong&gt;Zen of Python&lt;/strong&gt; kicks in! Using top-notch resources like the &lt;code&gt;logging&lt;/code&gt; module, &lt;code&gt;rqt-graph&lt;/code&gt;, and the inbuilt &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; logger; programming was a breeze. Add to it the awesomeness of Italian Mars Society. I faced a doubt in bodytracking, and six people decided on a Skype call to resolve the issues being faced, and resolve it we did, with gusto.&lt;/p&gt;
&lt;p&gt;The first week was super-hectic. Left with a computer and a programming problem; all-nighters were inevitable. It is proving to be a challenging and fun summer.&lt;/p&gt;
&lt;p&gt;Watch out for my next post in the GSoC 2015 series!&lt;/p&gt;
&lt;p&gt;Ciao!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Software Architecture Document for Telerobotics</title>
    <link href="https://sidcode.github.io/letters/software-architecture-document-for-telerobotics/"/>
    <id>https://sidcode.github.io/letters/software-architecture-document-for-telerobotics/</id>
    <published>2015-05-28T16:53:00.000Z</published>
    <updated>2015-05-28T16:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Fifth Post in the GSoC 2015 series. This one&#39;s about my experience while creating a formal Software Architecture Document for my GSoC project</summary>
    <content type="html">&lt;h2 id=&quot;the-first-three-days&quot;&gt;The First Three Days&lt;a class=&quot;h-anchor&quot; href=&quot;#the-first-three-days&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Hi! Last couple of days were quite hectic. I am still getting used to the &lt;em&gt;7-hours a day&lt;/em&gt; schedule of GSoC. But the good thing about GSoC is you can adjust the programming schedule according to your own convenience which is one more reason which takes it a notch above other summer coding programs. But I am devoting about 10 hours every day in these initial days to ensure I am well-positioned with respect to my timeline and also keep learning stuff on the go.&lt;/p&gt;
&lt;p&gt;Rants aside, I recently completed the first draft of the Software Architecture Document for my project.&lt;/p&gt;
&lt;h2 id=&quot;software-architecture-document&quot;&gt;Software Architecture Document&lt;a class=&quot;h-anchor&quot; href=&quot;#software-architecture-document&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Software Architecture Document&lt;/strong&gt; (quite funnily abbreviated as &lt;span class=&quot;smallcaps-auto&quot;&gt;SAD&lt;/span&gt;) is an important (read very) piece of information which entails and ensures what a software project is going to look like when it is built and shipped. I must thank the Italian Mars Society for giving me the much-needed push into the world of Open Source Software Engineering.&lt;/p&gt;
&lt;p&gt;Architecture of any program, especially open-source programs, as described in the excellent book &lt;a href=&quot;https://aosabook.org/en/index.html&quot; class=&quot;external&quot;&gt;Architecture of Open Source Applications&lt;/a&gt; describes software in terms of &lt;strong&gt;different&lt;/strong&gt; layers of abstraction components, depending on who wants to look and improve upon it. Open source applications are a product of efforts of multiple people working on different aspects of a project together. To facilitate effective and non-redundant collaboration with proper version control, a software architecture document comes in handy.&lt;/p&gt;
&lt;p&gt;To put it in one line -&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;SAD&lt;/span&gt; ensures all developers, testers, and users are on the same page.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;sad-for-telerobotics-application&quot;&gt;SAD for Telerobotics Application&lt;a class=&quot;h-anchor&quot; href=&quot;#sad-for-telerobotics-application&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Take my &lt;strong&gt;Telerobotics application&lt;/strong&gt; for instance. It is made up of three &lt;em&gt;distinct&lt;/em&gt; &lt;strong&gt;features&lt;/strong&gt; or &lt;strong&gt;functional requirements&lt;/strong&gt; -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mapping Human body-tracking information to rover motion instructions&lt;/li&gt;
&lt;li&gt;Allowing real-time streaming of the rover’s stereo camera-feed to the &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; application&lt;/li&gt;
&lt;li&gt;Providing an Augmented reality interface obtained from the processing the rover sensor data&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Although I am the only developer working on these aspects currently, I must ensure that the application is in a &lt;strong&gt;well-maintained state&lt;/strong&gt; throughout the life of the project. I must also ensure that a developer with skills in Robotics gets relevant information to the Robotics subsystem of the application (&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; knowledge). I must separate the concerns of a Network Communications developer from the user (the astronaut) while working on Real-time streaming from the rover to the Head Mounted Virtual Reality device.&lt;/p&gt;
&lt;p&gt;While the features describe the expected behaviour of the software system, they require a lot of background machinery which is essential for operation but not relevant for exposing to the end-user. These are &lt;strong&gt;non-functional requirements&lt;/strong&gt;. To give an example, &lt;strong&gt;Robotics Operating System&lt;/strong&gt; is used to manouver the Husky robot around. But the astronaut or the software system need not be concerned that robot communication, control, and command (C3 architecture) takes place using &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; or other robot platforms like &lt;span class=&quot;smallcaps-auto&quot;&gt;YARP&lt;/span&gt; or Player/Stage.&lt;/p&gt;
&lt;p&gt;Non-functional requirements in turn are quite important for satisfying the performance requirements of the software system. For instance, the Real-time streaming protocol (&lt;span class=&quot;smallcaps-auto&quot;&gt;RTSP&lt;/span&gt;) that I’ll be working with soon directly impacts the performance requirement of &lt;strong&gt;Hard-Real Time streaming support.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The Software Architecture Document is generic in that it keeps in mind the evolving technology that may be used to cater to the application in focus. For instance, the &lt;strong&gt;Unmanned Ground Vehicle&lt;/strong&gt; currently being considered is the &lt;strong&gt;Husky rover&lt;/strong&gt;. It is my responsibilty to ensure that the logical layers are independent of the robot being used. The software should be &lt;strong&gt;extensible&lt;/strong&gt; easily to a future ground vehicle that may use an altogether different control architecture than &lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Finally, &lt;span class=&quot;smallcaps-auto&quot;&gt;SAD&lt;/span&gt; is practical. It describes the timeline of development of the features.&lt;/p&gt;
&lt;h2 id=&quot;my-experience-with-sads&quot;&gt;My experience with SADs&lt;a class=&quot;h-anchor&quot; href=&quot;#my-experience-with-sads&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Working on the &lt;span class=&quot;smallcaps-auto&quot;&gt;SAD&lt;/span&gt; has been an immensely edifying experience for me for several reasons -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;My first foray into Software Engineering literature.&lt;/li&gt;
&lt;li&gt;Learning &lt;em&gt;reStructuredText&lt;/em&gt; as the documentation tool for &lt;span class=&quot;smallcaps-auto&quot;&gt;SAD&lt;/span&gt;.&lt;/li&gt;
&lt;li&gt;Appreciating how finely ingrained software-engineering principles are with Programming Language design. For instance, the sections of a &lt;span class=&quot;smallcaps-auto&quot;&gt;SAD&lt;/span&gt; directly imbue the features of Object Oriented Programming (abstraction, encapsulation, separation of concern) and Functional Programming (Side effects, Higher-order functions).&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;links-to-the-document&quot;&gt;Links to the document&lt;a class=&quot;h-anchor&quot; href=&quot;#links-to-the-document&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If you are interested, the link to my &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/src/132fff239c3ff892f7cfc8836d3a2921244e444e/servers/telerobotics/doc/?at=default&quot; class=&quot;external&quot;&gt;software architecture document source is this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The documentation on readthedocs can be found &lt;a href=&quot;eras.readthedocs.org/en/latest/servers/telerobotics/doc/sad.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Until my next post on my first week of coding.&lt;/p&gt;
&lt;p&gt;Ciao!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Workspace Setup for Telerobotics</title>
    <link href="https://sidcode.github.io/letters/workspace-setup-for-telerobotics/"/>
    <id>https://sidcode.github.io/letters/workspace-setup-for-telerobotics/</id>
    <published>2015-05-25T16:53:00.000Z</published>
    <updated>2015-05-25T16:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/><category term="ims"/><category term="italian-mars-society"/>
    <summary>Fourth Post in the GSoC 2015 series. This post describes how I set up my computer to work on Virtual Reality based Telerobotics</summary>
    <content type="html">&lt;p&gt;Hi! Yesterday was the start of the &lt;strong&gt;coding period&lt;/strong&gt; which will continue for another 12 weeks. The &lt;a href=&quot;https://sidcode.github.io/letters/gsoc-15-community-bonding/&quot; class=&quot;internal&quot;&gt;Community Bonding period&lt;/a&gt; gave me enough time to install the required packages. This post explains those packages in minimal detail.&lt;/p&gt;
&lt;h2 id=&quot;project-components&quot;&gt;Project Components&lt;a class=&quot;h-anchor&quot; href=&quot;#project-components&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;My work would heavily require the use of -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; (Robot Operating System)&lt;/strong&gt; to work with the &lt;a href=&quot;www.clearpathrobotics.com/husky/&quot;&gt;Husky Rover&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/roslogo.png&quot; alt=&quot;ROS Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;254&quot; height=&quot;73&quot;&gt;&lt;/figure&gt;
&lt;p&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; is the meta-operating system which is very popular with roboticists. My future posts would describe my work with &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; and the concepts that I am using, in detail.&lt;/p&gt;
&lt;p&gt;More specifically, I am working with &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Indigo Igloo, which is a &lt;span class=&quot;smallcaps-auto&quot;&gt;LTS&lt;/span&gt; (Long-term support) release&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/indigologo.png&quot; alt=&quot;Indigo Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;600&quot; height=&quot;499&quot;&gt;&lt;/figure&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;&lt;strong&gt;Gazebo Simulation environment&lt;/strong&gt; to test the programs written to drive the Husky around&lt;/li&gt;
&lt;/ol&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/gazebologo.png&quot; alt=&quot;Gazebo Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;245&quot; height=&quot;352&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I am working with Gazebo version 2.2.3.&lt;/p&gt;
&lt;ol start=&quot;3&quot;&gt;
&lt;li&gt;&lt;strong&gt;Tango-Controls&lt;/strong&gt; Supervisory Control and Data Acquistion system&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If data from different devices is the blood of &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;, then Tango is the circulatory system. It does an excellent job of handling multiple devices (Motivity treadmill, Kinect Sensors, Blender Game Engine Instances, and in my case a &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; machine with Husky interfaces)&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/tangologo.png&quot; alt=&quot;Tango Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2155&quot; height=&quot;646&quot;&gt;&lt;/figure&gt;
&lt;ol start=&quot;4&quot;&gt;
&lt;li&gt;&lt;strong&gt;Blender Game Engine&lt;/strong&gt; to model the standalone V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; application.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/blenderlogo.png&quot; alt=&quot;Blender Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;460&quot; height=&quot;128&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; simulation of the spacecraft looks like this -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/verassim.png&quot; alt=&quot;V-ERAS simulation&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;949&quot; height=&quot;528&quot;&gt;&lt;/figure&gt;
&lt;p&gt;In the second phase of the project, I will be involved in real-time streaming of rover stereo camera feed to the displays in the V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; simulation.&lt;/p&gt;
&lt;ol start=&quot;5&quot;&gt;
&lt;li&gt;&lt;strong&gt;Python&lt;/strong&gt; (of course :D )&lt;/li&gt;
&lt;/ol&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/python-logo.png&quot; alt=&quot;Python Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;601&quot; height=&quot;203&quot;&gt;&lt;/figure&gt;
&lt;ol start=&quot;6&quot;&gt;
&lt;li&gt;&lt;strong&gt;Ubuntu 14.04 (Trusty Tahr)&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Indigo offers complete support for this version of Ubuntu.&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/ubuntulogo.png&quot; alt=&quot;Ubuntu Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;300&quot; height=&quot;239&quot;&gt;&lt;/figure&gt;
&lt;p&gt;##Screenshots&lt;/p&gt;
&lt;p&gt;To Python-ify my experience even further, I installed &lt;strong&gt;Terminator&lt;/strong&gt;, a Python-based program which makes terminal arrangement as flexible as humanly possible on Linux.&lt;/p&gt;
&lt;p&gt;Working with &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; requires opening up a lot of terminal  and Terminator makes this hassle-free.&lt;/p&gt;
&lt;p&gt;Take a look for yourselves -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/terminator.png&quot; alt=&quot;Terminator&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I am using different text editors for different purposes.&lt;/p&gt;
&lt;p&gt;While working with &lt;strong&gt;Markdown&lt;/strong&gt; and &lt;strong&gt;reStructuredText&lt;/strong&gt;, I use Sublime Text.&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/sublimelogo.png&quot; alt=&quot;Sublime Text Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;256&quot; height=&quot;256&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Vim is my editor of choice for all things Python. I have been using it for open-source development since last year.&lt;/p&gt;
&lt;p&gt;So, with this I wrap up this setup post.&lt;/p&gt;
&lt;p&gt;Just for kicks, this is what my desktop looks like -&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/desktop.png&quot; alt=&quot;Desktop IMS&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I must admit it keeps me motivated to design software for Mars missions. Just in case you’re wondering, the theme I use is the MacBuntu theme. It is pretty distraction-free.&lt;/p&gt;
&lt;h2 id=&quot;to-coding-and-beyond&quot;&gt;To Coding and beyond!&lt;a class=&quot;h-anchor&quot; href=&quot;#to-coding-and-beyond&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;</content>
  </entry>
  <entry>
    <title>Room 276, Gandhi Bhawan, BITS Pilani</title>
    <link href="https://sidcode.github.io/letters/room-276-gandhi-bhawan-bits-pilani/"/>
    <id>https://sidcode.github.io/letters/room-276-gandhi-bhawan-bits-pilani/</id>
    <published>2015-05-23T16:53:00.000Z</published>
    <updated>2015-05-23T16:53:00.000Z</updated>
    <category term="personal"/><category term="retrospect"/><category term="introspect"/><category term="memorabilia"/><category term="history"/>
    <summary>Blog memorabilia for the room where I lived during my sophomore and junior years at BITS Pilani as a CS undergrad</summary>
    <content type="html">&lt;h2 id=&quot;why-write-a-post-about-an-indistinguishable-dorm-room&quot;&gt;Why write a post about an indistinguishable dorm room?&lt;a class=&quot;h-anchor&quot; href=&quot;#why-write-a-post-about-an-indistinguishable-dorm-room&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Gandhi 276&lt;/strong&gt; (Coordinates - 28.360874 N, 75.588507 E) ushers in a profuse stream of consciousness (and subconsciousness) for me.&lt;/p&gt;
&lt;p&gt;I made it my home for &lt;strong&gt;two&lt;/strong&gt; long academic years (that is four semesters (2013-2015) and a summer (2015).&lt;/p&gt;
&lt;p&gt;Today (24 June, 2015), I am leaving it as I complete the final phase of packing up the lightweight items. Incidentally, today is also the date when I took my &lt;span class=&quot;smallcaps-auto&quot;&gt;BITSAT&lt;/span&gt; exam in 2012. It also happily collides with the end of the community bonding period and the start of the coding period for GSoC which I explained in &lt;a href=&quot;https://sidcode.github.io/letters/gsoc-15-community-bonding/&quot; class=&quot;internal&quot;&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;how-i-got-this-room&quot;&gt;How I got this room?&lt;a class=&quot;h-anchor&quot; href=&quot;#how-i-got-this-room&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Out of pure whim. &lt;span class=&quot;smallcaps-auto&quot;&gt;BITS&lt;/span&gt; Pilani allows students to choose their wings and rooms. The final wings are decided by a lottery system in cases of a collision. So yes, our wing (the &lt;em&gt;‘ghot’&lt;/em&gt; wing) got the upper back wing, and consequently I got this room.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;About Gandhi 276&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;experiences-with-gn-276&quot;&gt;Experiences with GN-276&lt;a class=&quot;h-anchor&quot; href=&quot;#experiences-with-gn-276&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I stepped foot in this room on &lt;strong&gt;July 31, 2013&lt;/strong&gt;. The previous room occupant, &lt;a href=&quot;https://in.linkedin.com/pub/lohi-uppalapati/2a/934/27a&quot; class=&quot;external&quot; data-link-icon=&quot;in&quot; data-link-icon-style=&quot;sans&quot;&gt;U.R. Lohi&lt;/a&gt; was the president of &lt;span class=&quot;smallcaps-auto&quot;&gt;BITS&lt;/span&gt; Pilani Student Union for the 2012-2013 session. So in a way, I got the president’s room, out of pure whim. &lt;em&gt;A cool and cringey bragging right to start with.&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;First Semester, 2013&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Best time of my CS program&lt;/li&gt;
&lt;li&gt;Gel in with the new wingmates (called &lt;em&gt;wingies&lt;/em&gt; at &lt;span class=&quot;smallcaps-auto&quot;&gt;BITS&lt;/span&gt;). Sidenote: the wing was called the “ghot” wing.&lt;/li&gt;
&lt;li&gt;The distraction-free semester, even with the new laptop&lt;/li&gt;
&lt;li&gt;Programmed extensively in Java, Prolog, C&lt;/li&gt;
&lt;li&gt;The last semester with an advanced Mathematics course, which I enjoyed (&lt;strong&gt;Differential Equations&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;Worked hard as the &lt;strong&gt;Technical Team&lt;/strong&gt; member of &lt;a href=&quot;https://embryo.bits-pilani.ac.in&quot; class=&quot;external&quot;&gt;&lt;strong&gt;BITSEmbryo&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Still a Windows user&lt;/li&gt;
&lt;li&gt;The start of my Robotics career&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Second Semester, 2014&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;The lowest point of my CS program&lt;/li&gt;
&lt;li&gt;Watched more than 500 films&lt;/li&gt;
&lt;li&gt;Avid Linux user (full-time Archer)&lt;/li&gt;
&lt;li&gt;Active &lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;BITS&lt;/span&gt; Firefox Community&lt;/strong&gt; member. Spent a lot of time to motivate people to use Free software&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;First Semester, 2014&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;The room gets a revamp.&lt;/li&gt;
&lt;li&gt;The pleasant &lt;strong&gt;research labs&lt;/strong&gt; phase of my undergrad life. I also made some friends for life during this time.&lt;/li&gt;
&lt;li&gt;The start of my Wearable and Pervasive Computing career&lt;/li&gt;
&lt;li&gt;Extensive use of Arduino and Raspberry Pi&lt;/li&gt;
&lt;li&gt;Positive change in attitude, thanks to new friends&lt;/li&gt;
&lt;li&gt;Network Programming phase of life&lt;/li&gt;
&lt;li&gt;My first Ping of Death to &lt;a href=&quot;https://www.quora.com/Shardul-Deshpande&quot; class=&quot;external&quot;&gt;Shardul&lt;/a&gt; (on the same wing subnet)&lt;/li&gt;
&lt;li&gt;The start of internship applications&lt;/li&gt;
&lt;li&gt;Embracing rejections&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Second Semester, 2015&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;The most stressful period of my life&lt;/li&gt;
&lt;li&gt;Embracing even more rejections&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Compiler Design&lt;/strong&gt; semester&lt;/li&gt;
&lt;li&gt;Selection in the &lt;a href=&quot;https://india.media.mit.edu/&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;MIT&lt;/span&gt; Media Lab Design Innovation Workshop 2015&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Made some awesome friends from all over India(and the world)&lt;/li&gt;
&lt;li&gt;Lost some awesome friends for stupid reasons&lt;/li&gt;
&lt;li&gt;Working for the &lt;a href=&quot;https://www.google-melange.com/gsoc/homepage/google/gsoc2015&quot; class=&quot;external&quot;&gt;Google Summer of Code&lt;/a&gt; as last respite&lt;/li&gt;
&lt;li&gt;Project proposal getting selected for GSoC 2015&lt;/li&gt;
&lt;li&gt;Juggling with Compilers, Robotics work, Computer Networks lab Teaching Assistantship, GSoC work, internship applications, Typeracing, Films&lt;/li&gt;
&lt;li&gt;The semester when I was out of spacetime&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Summer 2015&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;A hotchpotch of discipline and dust&lt;/li&gt;
&lt;li&gt;Dusty times with the wing being cleaned out&lt;/li&gt;
&lt;li&gt;Improved circadian rhythms and exercise&lt;/li&gt;
&lt;li&gt;The “Getting shit done” phase&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;The common denominator in all these eventful times - &lt;strong&gt;Gandhi 276&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;thank-you-gandhi-276&quot;&gt;Thank You Gandhi 276.&lt;a class=&quot;h-anchor&quot; href=&quot;#thank-you-gandhi-276&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;For standing by me. For becoming a home which I’d go on to endear more than my family home. For sheltering me from the sweltering heat and the frosty chills of this sleepy university town. I learnt to touchtype as fast as 100 words per minute in this room. My first Git commit. My first pull request. My first blog post. Thank you room for all the experiences, sicknesses, treatments, soporific ambiences, all-nighters, Gtalk &amp;#x26; &lt;span class=&quot;smallcaps-auto&quot;&gt;IRC&lt;/span&gt; sessions, and above all - a nurturing environment where I grew up as a Computer Scientist.&lt;/p&gt;
&lt;h2 id=&quot;closing-remarks&quot;&gt;Closing remarks&lt;a class=&quot;h-anchor&quot; href=&quot;#closing-remarks&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This has been a long farewell post. And this experience wouldn’t have been this awesome if not for the people around this room - Karan, Kunal, Gaurav, Sai Charan, Shreyansh, Priyank, Girish. I wish all the best in life and beyond to the future and past occupants of this room.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“May the GN276 Force be with you!”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So long and thanks for all the fish.&lt;/p&gt;
&lt;/blockquote&gt;</content>
  </entry>
  <entry>
    <title>GSoC &#39;15 Community Bonding</title>
    <link href="https://sidcode.github.io/letters/gsoc-15-community-bonding/"/>
    <id>https://sidcode.github.io/letters/gsoc-15-community-bonding/</id>
    <published>2015-05-22T16:53:00.000Z</published>
    <updated>2015-05-22T16:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/>
    <summary>Third Post in the GSoC 2015 series. Here I’ll take you through the engaging community bonding experience.</summary>
    <content type="html">&lt;p&gt;Third Post in the GSoC 2015 series. Here I’ll take you through the engaging community bonding experience.&lt;/p&gt;
&lt;h2 id=&quot;introduction-to-community-bonding&quot;&gt;Introduction to Community Bonding&lt;a class=&quot;h-anchor&quot; href=&quot;#introduction-to-community-bonding&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Community Bonding&lt;/strong&gt; is arguably one of the most important phases of the Google Summer of Code. In the 2015 edition, it took place from April 27 to May 25. This is what the &lt;a href=&quot;https://www.google-melange.com/gsoc/document/show/gsoc_program/google/gsoc2015/help_page&quot; class=&quot;external&quot;&gt;GSoC &lt;span class=&quot;smallcaps-auto&quot;&gt;FAQ&lt;/span&gt;&lt;/a&gt; has to say about this period -&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Students get to know mentors, read documentation, get up to speed to begin working on their projects.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;about-the-community&quot;&gt;About the community&lt;a class=&quot;h-anchor&quot; href=&quot;#about-the-community&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/eras-logo.jpg&quot; alt=&quot;ERAS logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;277&quot; height=&quot;128&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The &lt;strong&gt;Italian Mars Society&lt;/strong&gt; is a highly motivated group of incredibly smart and friendly scientists and developers who share the vision of working towards manned missions to Mars. I have been interacting with the community since March 2015 and I’ve never looked back. I was interested in the projects even during the brief period when it was unclear whether &lt;span class=&quot;smallcaps-auto&quot;&gt;IMS&lt;/span&gt; would be able to participate or not. I’m grateful to the community members for applying under the Python Software Foundation umbrella and giving students like me a brilliant opportunity to explore real world Open Source development. From what I’ve heard, this organization comes up with the &lt;em&gt;coolest&lt;/em&gt; projects for GSoC. And I concur with them - my project seems to blend in all the cool fields required for exploration - Robotics, Body-tracking, Virtual Reality, Oculus Rift, Real-time 3-D video streaming, Augmented Reality, etc.&lt;/p&gt;
&lt;h2 id=&quot;understanding-the-codebase&quot;&gt;Understanding the Codebase&lt;a class=&quot;h-anchor&quot; href=&quot;#understanding-the-codebase&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/mercurial.png&quot; alt=&quot;Mercurial logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;150&quot; height=&quot;180&quot;&gt;&lt;/figure&gt;
&lt;p&gt;To this end, there is a stable amount of software/hardware development shared on the Bitbucket platform. While interacting with Franco and Ezio, I discovered that all students are given &lt;strong&gt;write access&lt;/strong&gt; to the &lt;a href=&quot;https://bitbucket.org/italianmarssociety/eras/&quot; class=&quot;external&quot;&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;&lt;/a&gt; and &lt;a href=&quot;https://bitbucket.org/italianmarssociety/v-eras-blender&quot; class=&quot;external&quot;&gt;V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;&lt;/a&gt; repositories using the &lt;strong&gt;Mercurial&lt;/strong&gt; revision control system. This imparts tremendous responsiblity as new developers which I very much appreciate since it fosters trust and makes us mature community members.&lt;/p&gt;
&lt;p&gt;Going through the codebase a couple of weeks ago, I found well-documented code, almost all of which follows the &lt;span class=&quot;smallcaps-auto&quot;&gt;PEP8&lt;/span&gt; guidelines and written in Python 3. The heart of the V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; project is the &lt;a href=&quot;https://www.tango-controls.org/&quot; class=&quot;external&quot;&gt;Tango Controls&lt;/a&gt; server which is a distributed device server for Supervisory Control and Data Acquistion systems. This is ideal for a complex environment like &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; where multiple hardware and software devices like the Oculus VR, Kinect, Linux Machines, Husky Rover, and Blender Game Engine applications are involved in a distributed setup. The entire networking subsystem of &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; is well-explained in &lt;a href=&quot;https://erasproject.org/download/the-networking-sub-system-of-t-he-virtual-european-mar-s-analog-station-e-melotti-bachelors-thesis/&quot; class=&quot;external&quot;&gt;Ezio’s thesis&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;interacting-with-the-community&quot;&gt;Interacting with the Community&lt;a class=&quot;h-anchor&quot; href=&quot;#interacting-with-the-community&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;My experience with the Italian Mars Society has been memorable and pleasant right from the word go when I first entered the hallowed &lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;IMS&lt;/span&gt;&lt;/strong&gt; channel of &lt;span class=&quot;smallcaps-auto&quot;&gt;IRC&lt;/span&gt; (Internet Relay Chat) and introduced myself. I was promptly pointed to the right person for my project of interest. Within a single &lt;span class=&quot;smallcaps-auto&quot;&gt;IRC&lt;/span&gt; Chat session with Franco, I got a clear idea of what to expect from this GSoC. The &lt;span class=&quot;smallcaps-auto&quot;&gt;IRC&lt;/span&gt; channel though frequented by a small number of people is always bustling with activity. We’ve had fruitful discussion for each and every part of the project - from software architecture diagrams in the proposal, to the collaboration between two GSoC projects, and even some fun interactions about Python software development and Mars exploration. I always appreciate the levels of responsibity and feedback that the community members muster during interacting with students. Helping my fellow GSoC aspirants and seeking help from them is always a refreshing experience. Apart from &lt;span class=&quot;smallcaps-auto&quot;&gt;IRC&lt;/span&gt; and Email, I got the chance to &lt;strong&gt;video-conference&lt;/strong&gt; with all the project mentors on two occasions - &lt;em&gt;during my GSoC interview and in the Kickoff meeting after the GSoC selection&lt;/em&gt;. This was the first time I had a teleconference interview and I thank &lt;span class=&quot;smallcaps-auto&quot;&gt;IMS&lt;/span&gt; for that. It felt more like a sincere discussion of the things that I had in mind for the GSoC project rather than a test of my skills. The trust these guys had in me let me confidently speak out my mind which helped me make my points. The big GSoC Kickoff meeting meetup took place on April 29, 2015 where we all gathered on &lt;strong&gt;Google Hangouts&lt;/strong&gt; to discuss various important points for the upcoming summer of code such as -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The importance of blogging&lt;/li&gt;
&lt;li&gt;Hardware/Software requirements&lt;/li&gt;
&lt;li&gt;Strategic timeline of events&lt;/li&gt;
&lt;li&gt;Software engineering guidelines&lt;/li&gt;
&lt;li&gt;Suggestions of joint code review sessions&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I helped prepare the meeting minutes for this session since some members faced connection problems to join the Hangout. These are shared in &lt;a href=&quot;https://docs.google.com/document/d/1jRhBnmjlMINCjwuomrE18BPTKnUO8974-I9qexb5TfQ/edit?usp=sharing&quot; class=&quot;external&quot; data-link-icon=&quot;G&quot; data-link-icon-style=&quot;sans&quot;&gt;this document&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;setup-and-technologies&quot;&gt;Setup and Technologies&lt;a class=&quot;h-anchor&quot; href=&quot;#setup-and-technologies&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/husky1.jpe&quot; alt=&quot;Husky Rover&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;450&quot; height=&quot;299&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I have been exposed to an ample number of new concepts and technologies with this project.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Terrain Vehicle Rover&lt;/strong&gt; - Clearpath Robotics’ &lt;strong&gt;Husky robot&lt;/strong&gt; which is &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;-based&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Microsoft Kinect Sensor&lt;/strong&gt; for obtaining body-tracking information&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Minoru 3-d webcam&lt;/strong&gt; for stereo video streaming&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Oculus Rift Development Kit 2&lt;/strong&gt; for augmented reality applications&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To this end, I set up my workstation for the &lt;a href=&quot;https://docs.google.com/document/d/11iE-pQ8wEX8BUwbexGgULJddv0xWRN98MYRrd0iunOI/edit?usp=sharing&quot; class=&quot;external&quot; data-link-icon=&quot;G&quot; data-link-icon-style=&quot;sans&quot;&gt;project requirements&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;My current machine configuration for this GSoC project is as follows:&lt;/p&gt;
&lt;p&gt;-Ubuntu 14.04.2 (Trusty Tahr)
-&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; Indigo
-Python 3
-Blender 2.74
-Tango Controls 1.99
-Linux Kernel 3.2
-Mercurial 3.4
-Hardware: 8 GB &lt;span class=&quot;smallcaps-auto&quot;&gt;RAM&lt;/span&gt;, Intel Core i7 processor, Nvidia 2GB &lt;span class=&quot;smallcaps-auto&quot;&gt;GPU&lt;/span&gt; &lt;span class=&quot;smallcaps-auto&quot;&gt;GT650M&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In the last couple of weeks, I have been busy with setting up the various &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; packages which are required for &lt;em&gt;bodytracking based semi-autonmous teleoperation&lt;/em&gt;. The list of &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; packages will be added to the project documentation soon.&lt;/p&gt;
&lt;h2 id=&quot;learning-experience-so-far&quot;&gt;Learning Experience so far&lt;a class=&quot;h-anchor&quot; href=&quot;#learning-experience-so-far&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/ffmpeg.png&quot; alt=&quot;ffmpeg&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2000&quot; height=&quot;536&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I’ve learnt an unexpected great deal about a lot of different things during this project. I had to do a lot of reading to get up to speed with the existing state of V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;. Franco pointed me to the &lt;a href=&quot;https://eras.readthedocs.org/en/latest/index.html&quot; class=&quot;external&quot;&gt;project documentation pages&lt;/a&gt;. I learned about Blender and Blender Game Engine after pulling an all-nighter. &lt;span class=&quot;smallcaps-auto&quot;&gt;FFMPEG&lt;/span&gt; followed soon after that where I had to set up a &lt;span class=&quot;smallcaps-auto&quot;&gt;MJPEG&lt;/span&gt; streaming server for the &lt;span class=&quot;smallcaps-auto&quot;&gt;BGE&lt;/span&gt; client. That was followed by my first experience with &lt;span class=&quot;smallcaps-auto&quot;&gt;PEP8&lt;/span&gt;, Mercurial, architecture diagrams, Tango Control system. My GSoC proposal has been an extensive piece of work with 61 revisions and brilliant feedback from my mentors. The proposal can be found &lt;a href=&quot;https://erasproject.org/2015-gsoc/#2&quot; class=&quot;external&quot;&gt;here&lt;/a&gt;. A more comprehensive description of the project is taken up in &lt;a href=&quot;gsoc-02-project-details.md&quot;&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;To be continued…about &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;, Software Testing, Mapping, algorithms, etc&lt;/em&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Cracking the Google Summer of Code</title>
    <link href="https://sidcode.github.io/letters/cracking-the-google-summer-of-code/"/>
    <id>https://sidcode.github.io/letters/cracking-the-google-summer-of-code/</id>
    <published>2015-05-15T16:53:00.000Z</published>
    <updated>2015-05-15T16:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/>
    <summary>Introductory Post for my GSoC 2015 developments with the Python Software Foundation and Italian Mars Society</summary>
    <content type="html">&lt;p&gt;Hopped into the &lt;span class=&quot;smallcaps-auto&quot;&gt;IRC&lt;/span&gt; chat. Showed grit. Prepared prototypes, drafted documents. Wonderful things happened.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>GSoC &#39;15 - About my Project</title>
    <link href="https://sidcode.github.io/letters/gsoc-15-about-my-project/"/>
    <id>https://sidcode.github.io/letters/gsoc-15-about-my-project/</id>
    <published>2015-05-06T16:53:00.000Z</published>
    <updated>2015-05-06T16:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/>
    <summary>Second Post in the GSoC 2015 series. This post is intended to explain my project proposal.</summary>
    <content type="html">&lt;p&gt;Second Post in the GSoC 2015 series. This post is intended to explain my project proposal.&lt;/p&gt;
&lt;p&gt;The project proposal that I submitted can be found &lt;a href=&quot;https://erasproject.org/2015-gsoc/#2&quot; class=&quot;external&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/eras-station.jpg&quot; alt=&quot;ERAS Station&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1600&quot; height=&quot;900&quot;&gt;
&lt;em&gt;to be continued…&lt;/em&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>GSoC 2015 with the Italian Mars Society</title>
    <link href="https://sidcode.github.io/letters/gsoc-2015-with-the-italian-mars-society/"/>
    <id>https://sidcode.github.io/letters/gsoc-2015-with-the-italian-mars-society/</id>
    <published>2015-04-28T16:53:00.000Z</published>
    <updated>2015-04-28T16:53:00.000Z</updated>
    <category term="gsoc"/><category term="python"/><category term="psf"/><category term="computers"/><category term="science"/><category term="exploration"/><category term="space"/><category term="mars"/>
    <summary>Introductory Post for my GSoC 2015 developments with the Python Software Foundation and Italian Mars Society</summary>
    <content type="html">&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/gsoc-banner.png&quot; alt=&quot;GSoC Banner&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;920&quot; height=&quot;156&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I got accepted into the eleventh edition of the &lt;strong&gt;Google Summer of Code&lt;/strong&gt; program (&lt;a href=&quot;https://www.google-melange.com/gsoc/homepage/google/gsoc2015&quot; class=&quot;external&quot;&gt;GSoC 2015&lt;/a&gt;) with the &lt;strong&gt;Python Software Foundation&lt;/strong&gt; umbrella organization. The list of selected students was announced on 28th April, 2015.&lt;/p&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/python-logo.png&quot; alt=&quot;Python Logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;601&quot; height=&quot;203&quot;&gt;&lt;/figure&gt;
&lt;p&gt;More specifically, I’ll be working with the Italian Mars Society under the &lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; (European MaRs Analogue Station) project.
Quoting from the &lt;a href=&quot;https://erasproject.org/&quot; class=&quot;external&quot;&gt;source&lt;/a&gt; -&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The European MaRs Analogue Station for Advanced Technologies Integration (&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;) is a program spearheaded by the Italian Mars Society (&lt;span class=&quot;smallcaps-auto&quot;&gt;IMS&lt;/span&gt;) which main goal is to provide an effective test bed for field operation studies in preparation for manned missions to Mars.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/eras-logo.jpg&quot; alt=&quot;ERAS logo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;277&quot; height=&quot;128&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The focus of this GSoC project is &lt;strong&gt;Virtual Reality based Telerobotics&lt;/strong&gt; for V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Virtual European Mars Analog Station (V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt;)&lt;/strong&gt; is based on immersive real-time environment simulations running on top of the Blender Game Engine (&lt;span class=&quot;smallcaps-auto&quot;&gt;BGE&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;This project has three distinct components -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;A &lt;strong&gt;&lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt;-Kinect&lt;/strong&gt; interface for the Teleoperative control of the Clearpath Husky Robot rover’s motion via human body-tracking.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Streaming the 3-D stereo camera video feed&lt;/strong&gt; from the rover to &lt;span class=&quot;smallcaps-auto&quot;&gt;BGE&lt;/span&gt; over the network.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Processing the video feed into an &lt;strong&gt;Augmented Reality&lt;/strong&gt; experience through a &lt;strong&gt;head-mounted Virtual Reality device&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The goal of this V-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; project is thus to develop a software and hardware system that enhances the capabilities of the crew members preparing for Mars missions.&lt;/p&gt;
&lt;p&gt;I feel elated to be a part of the Italian Mars Society and be able to contribute towards manned space exploration which is one of the vital aims of the next two decades. GSoC marks my first foray into the world of collaborative Open Source software development.&lt;/p&gt;
&lt;p&gt;I shall be mentored by two really cool people - &lt;a href=&quot;https://il.linkedin.com/in/yuvalbrodsky&quot; class=&quot;external&quot; data-link-icon=&quot;in&quot; data-link-icon-style=&quot;sans&quot;&gt;Yuval Brodsky&lt;/a&gt; and &lt;a href=&quot;https://plus.google.com/105053384149339279492/posts&quot; class=&quot;external&quot;&gt;Fabio Nigi&lt;/a&gt; with whom I share my interests in space exploration, robotics, networks, and free software. In addition, I’ll be constantly interacting with the &lt;span class=&quot;smallcaps-auto&quot;&gt;IMS&lt;/span&gt;-&lt;span class=&quot;smallcaps-auto&quot;&gt;ERAS&lt;/span&gt; community - &lt;a href=&quot;in.linkedin.com/pub/franco-carbognani/3/998/145&quot;&gt;Franco Carbognani&lt;/a&gt;, Ezio Melotti, Mario Tambos, Ambar Mehrotra, Shridhar Mishra, Vito Gentile.&lt;/p&gt;
&lt;p&gt;Thank you Google for this unique birthday gift :)&lt;/p&gt;
&lt;p&gt;Looking forward to a great and challenging summer of Code!&lt;/p&gt;
&lt;p&gt;I’ll share the details of the project in the next post in this series.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Notes for this blog</title>
    <link href="https://sidcode.github.io/letters/notes-for-this-blog/"/>
    <id>https://sidcode.github.io/letters/notes-for-this-blog/</id>
    <published>2015-03-31T16:53:00.000Z</published>
    <updated>2015-03-31T16:53:00.000Z</updated>
    <category term="movies"/><category term="robots"/><category term="soft"/><category term="ai"/><category term="healthcare"/><category term="computers"/><category term="robotics"/>
    <summary>A to-do list and topics to write on for this blog</summary>
    <content type="html">&lt;p&gt;List -
0. GSoC as of now (1st May 2015)&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Disqus comments integration&lt;/li&gt;
&lt;li&gt;About me page&lt;/li&gt;
&lt;li&gt;Blog name&lt;/li&gt;
&lt;li&gt;1pad - a post every two days&lt;/li&gt;
&lt;li&gt;On Typeracing&lt;/li&gt;
&lt;li&gt;On Movies and Literature&lt;/li&gt;
&lt;li&gt;On writing.&lt;/li&gt;
&lt;li&gt;on algorithms.&lt;/li&gt;
&lt;li&gt;on research.&lt;/li&gt;
&lt;li&gt;on mit media lab&lt;/li&gt;
&lt;li&gt;on linux (arch), etc.&lt;/li&gt;
&lt;/ol&gt;</content>
  </entry>
  <entry>
    <title>Tonight&#39;s Robot : TARS from Interstellar</title>
    <link href="https://sidcode.github.io/letters/tonights-robot-tars-from-interstellar/"/>
    <id>https://sidcode.github.io/letters/tonights-robot-tars-from-interstellar/</id>
    <published>2015-03-16T10:10:00.000Z</published>
    <updated>2015-03-16T10:10:00.000Z</updated>
    <category term="movies"/><category term="robots"/><category term="soft"/><category term="ai"/><category term="healthcare"/><category term="computers"/><category term="robotics"/>
    <summary>What TARS, CASE, and KIPPS have to teach us in Robotics?</summary>
    <content type="html">&lt;p&gt;With this post, I’ve decided to flag off a new blog series, **Tonight’s Robot ** whose raison-de-etre are the robots from real life research and fiction; what they can teach us about Robotics and its allied fields (Human-Robot Interaction, Artificial Intelligence, Roboethics, etc).&lt;/p&gt;
&lt;p&gt;So this post is about the U.S Marine Corps robot commanders from the 2014 blockbuster &lt;em&gt;Interstellar&lt;/em&gt; named &lt;span class=&quot;smallcaps-auto&quot;&gt;TARS&lt;/span&gt;, &lt;span class=&quot;smallcaps-auto&quot;&gt;CASE&lt;/span&gt;, and &lt;span class=&quot;smallcaps-auto&quot;&gt;KIPPS&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;#Robots of Interstellar (2014)
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/tars.jpg&quot; alt=&quot;interstellar&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1191&quot; height=&quot;670&quot;&gt;
&lt;em&gt;Picture by Jeorge B. George&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;heres-what-these-kitkat-bar-shaped-bots-teach-us&quot;&gt;Here’s what these KitKat bar shaped Bots teach us:&lt;a class=&quot;h-anchor&quot; href=&quot;#heres-what-these-kitkat-bar-shaped-bots-teach-us&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id=&quot;1-companionship&quot;&gt;1. Companionship&lt;a class=&quot;h-anchor&quot; href=&quot;#1-companionship&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;The space missions on Interstellar were decades-long (yeah, relativity). In this scenario, with crew commanders single-manning a ship and spending years with no human around - things can get quite monophobic. The Artificially Intelligent and almost sentient robots shown in Interstellar showcase &lt;em&gt;features&lt;/em&gt; like empathy, identification of needs, sarcasm, humour, honesty; just like one would expect a human to be.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;2-one-with-the-humans&quot;&gt;2. One with the humans&lt;a class=&quot;h-anchor&quot; href=&quot;#2-one-with-the-humans&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;The robots actually spend all their time with humans or other robots. They are as important as the human flight commanders. Equal responsibility and equal capability sans the Relativistic Math skills which Cooper didn’t possess. &lt;em&gt;Treatment as equals&lt;/em&gt; was something I covered in the post on &lt;em&gt;Big Hero 6’s&lt;/em&gt;  &lt;strong&gt;Soft Intelligent Bots&lt;/strong&gt; article as well. The robots of the future &lt;strong&gt;would not&lt;/strong&gt; be limited to the &lt;strong&gt;4Ds&lt;/strong&gt; - &lt;em&gt;Dangerous&lt;/em&gt;, &lt;em&gt;Dirty&lt;/em&gt;, &lt;em&gt;Daunting&lt;/em&gt;, &lt;em&gt;Dull&lt;/em&gt; but would cohabitate with humans as equals.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;3-human-centric-not-robo-centric&quot;&gt;3. Human-Centric, not Robo-Centric&lt;a class=&quot;h-anchor&quot; href=&quot;#3-human-centric-not-robo-centric&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;figure class=&quot;figure&quot;&gt;&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/baymaxtars.jpg&quot; alt=&quot;baymax meets tars&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1280&quot; height=&quot;1264&quot;&gt;&lt;/figure&gt;</content>
  </entry>
  <entry>
    <title>Soft Intelligent Bots</title>
    <link href="https://sidcode.github.io/letters/soft-intelligent-bots/"/>
    <id>https://sidcode.github.io/letters/soft-intelligent-bots/</id>
    <published>2015-03-10T16:53:00.000Z</published>
    <updated>2015-03-10T16:53:00.000Z</updated>
    <category term="movies"/><category term="robots"/><category term="soft"/><category term="ai"/><category term="healthcare"/><category term="computers"/><category term="robotics"/>
    <summary>Big Hero 6 - Celebrating the best sci-fi film of all time</summary>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;Disney doesn’t always make a robot movie, but when it does it creates a new yardstick for scientific research altogether.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;#Big Hero 6 - Disney (2014)
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/bighero.png&quot; alt=&quot;Baymax&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1280&quot; height=&quot;720&quot;&gt;&lt;/p&gt;
&lt;p&gt;This post is not a run-of-the-mill regular weekly thing I do. I happened to stumble over &lt;em&gt;Big Hero 6&lt;/em&gt;, a movie based on an adolescent roboticist’s life (enough to get me hooked). They say &lt;em&gt;serendipity&lt;/em&gt; is a good thing. And they couldn’t be more right. What are the odds of bumping into a life-changing movie after watching Apple’s latest keynote presentation of the new MacBook (tactile trackpad) and the new medical research platform -
&lt;a href=&quot;https://www.apple.com/researchkit/&quot; class=&quot;external&quot;&gt;ResearchKit&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;the-things-i-love-about-big-hero-6&quot;&gt;The things I love about &lt;strong&gt;Big Hero 6&lt;/strong&gt;&lt;a class=&quot;h-anchor&quot; href=&quot;#the-things-i-love-about-big-hero-6&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id=&quot;1-inspired-from-robotics-research-not-the-other-way-round&quot;&gt;1. Inspired from Robotics research, not the other way round&lt;a class=&quot;h-anchor&quot; href=&quot;#1-inspired-from-robotics-research-not-the-other-way-round&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;The film’s producers trailed a non-existent path by learning from the research on &lt;em&gt;Human-Robot interaction&lt;/em&gt; and &lt;em&gt;Soft Robotics&lt;/em&gt; at &lt;strong&gt;Robotics Institute, Carnegie Mellon University&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;2-bot-fighting&quot;&gt;2. Bot-fighting&lt;a class=&quot;h-anchor&quot; href=&quot;#2-bot-fighting&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Real Steel&lt;/strong&gt; is passe now. ‘Big Hero 6’ starts with underground bot-fights in a conceptualized fusion town - San Fransokyo. And who wins the bot-fight. Not the strongest or goriest bot, but the agile bot with &lt;em&gt;magnetic-bearing servos&lt;/em&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;3-puberty&quot;&gt;3. Puberty&lt;a class=&quot;h-anchor&quot; href=&quot;#3-puberty&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;Hiro Hamada - the protagonist wunderkind takes a sloppy decision multiple times, goes through mood-swings. He has the same tragic flaws that all of us can connect with. He almost loses his mind over making a career in the winning-money-comes-easy bot fights. This is when the role of his elder brother - Tadashi kicks in. And boy does his short-lived (no pun) role inspire all of us to push the boundaries of Robotics.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;4-parenting-done-right&quot;&gt;4. Parenting done right.&lt;a class=&quot;h-anchor&quot; href=&quot;#4-parenting-done-right&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;Hiro wouldn’t be the humble prodigy if not for his brother Tadashi and his aunt Cass. The film dabbles with the myriad aspects of teenage and parenting - scolding, concern, care, love, help, unconditional support. The elder brother is a parent to him - guiding Hiro on the right path whenver he goes wayward…till the very end. Tadashi doesn’t die. &lt;em&gt;Tadashi is here.&lt;/em&gt; - says Baymax multiple times in the movie. And till the end, Tadashi lives through Baymax and Hiro. Later in the movie, it becomes quite prominent how Baymax becomes a parent to Hiro - Baymax to Hiro &lt;em&gt;“Seatbelts save lives. Always fasten them.”&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;5-robotics-is-hard-and-rewarding&quot;&gt;5. Robotics is hard, and rewarding&lt;a class=&quot;h-anchor&quot; href=&quot;#5-robotics-is-hard-and-rewarding&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“I would lose my mind if I don’t apply here”&lt;/em&gt; - says Hiro when Tadashi gives him a trip of his university lab. Flying cats, Industrial Manipulators playing Table Tennis, Electro-magnetic suspension on bike wheels, Laser-induced plasma, 3-d printed carbon fibre armours, Body-tracking, Chemical Metal embrittlement - &lt;strong&gt;this film inspired the maker in me&lt;/strong&gt;. It beats even Iron Man after a point, which by the way is/was my guide to Robotics.
And the &lt;em&gt;magnum opus&lt;/em&gt; - &lt;strong&gt;Baymax&lt;/strong&gt; - your personal health care assistant. He is the star of the film, through and through.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;6-soft-robotics&quot;&gt;6. Soft Robotics&lt;a class=&quot;h-anchor&quot; href=&quot;#6-soft-robotics&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;The film gets infinite brownie points for treading into the territory of Soft Actuated Robotics. The huggable inflatable Robot that can lift a 1000 pounds - that is what the future should be about - not metallic humanoids. This field of study is only beginning to emerge, and using a concept like Soft Robotics with the use case of a healthcare robot - &lt;strong&gt;the filmmakers have done a fascinating outstanding job&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;7-the-maker-spirit&quot;&gt;7. The Maker spirit&lt;a class=&quot;h-anchor&quot; href=&quot;#7-the-maker-spirit&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;The &lt;span class=&quot;smallcaps-auto&quot;&gt;MIT&lt;/span&gt; Media Lab Design Innovation workshop changed the way I look at hacking. It is about identifying problems, storyboarding ideas, thinking of solutions, and implementing them as efficiently as possible. Hiro Hamada, the quintessential maker - sees a need, and fulfills it in his garage. I would definitely have a garage like that soon.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;8-swarm-robotics&quot;&gt;8. Swarm Robotics&lt;a class=&quot;h-anchor&quot; href=&quot;#8-swarm-robotics&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;The cuteness of the Soft Robot is challenged by grey goo - neurotransmitter controlled &lt;strong&gt;Microbots&lt;/strong&gt; developed by Hiro for the Robotics exhibition. As Hiro comments - “The applications for this tech are &lt;strong&gt;limitless&lt;/strong&gt;; the only limit is your imagination.” He says it right. But a villainous imagination can only flip cars and kill people. And that’s what happens. Hiro battles this evil with his friends and Baymax till the very end.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;9-robots-treated-as-equals&quot;&gt;9. Robots treated as equals&lt;a class=&quot;h-anchor&quot; href=&quot;#9-robots-treated-as-equals&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;The title of the movie is Big Hero **6 **. This includes the 5 humans and Baymax, the film is a great step forward in Roboethics. &lt;strong&gt;Our programming prevents us from injuring a human being&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;10-expectations-from-a-health-care-robot&quot;&gt;10. Expectations from a Health Care robot&lt;a class=&quot;h-anchor&quot; href=&quot;#10-expectations-from-a-health-care-robot&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“I fail to see how this makes me a better healthcare companion ”&lt;/strong&gt;. Baymax voices this concern multiple times with his intimidating upgrades. The movie follows the lines of &lt;strong&gt;Robot and Frank&lt;/strong&gt; where a personal robot attendant understands the needs of its user - right or wrong. Baymax is reticent when it comes to following harm-causing orders. From this, we can learn that AI can be controlled, and need not result in singularity. Even if it does result, the robots would be intelligent enuough to keep the humans that are good at heart.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So here’s to the robots of today and tomorrow - who can feel just like a human - &lt;strong&gt;social robotics&lt;/strong&gt; and human-robot interaction are potential early adopters of the developments that sprout from this research.&lt;/p&gt;
&lt;p&gt;Here are some Social Robots that might interest you:&lt;/p&gt;
&lt;p&gt;#Jibo - &lt;span class=&quot;smallcaps-auto&quot;&gt;MIT&lt;/span&gt; Media Lab
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/jibo.jpg&quot; alt=&quot;Jibo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;464&quot; height=&quot;262&quot;&gt;&lt;/p&gt;
&lt;p&gt;#Romeo - Aldebaran Robotics
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/romeo.jpg&quot; alt=&quot;Romeo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;810&quot; height=&quot;540&quot;&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>My first experience with Pelican</title>
    <link href="https://sidcode.github.io/letters/my-first-experience-with-pelican/"/>
    <id>https://sidcode.github.io/letters/my-first-experience-with-pelican/</id>
    <published>2015-02-17T03:52:00.000Z</published>
    <updated>2015-02-18T02:57:00.000Z</updated>
    <category term="review"/><category term="personal"/><category term="blog"/>
    <summary>The bloghiker&#39;s guide to the Pelican galaxy</summary>
    <content type="html">&lt;p&gt;I am trying to set up Pelican here.&lt;/p&gt;
&lt;p&gt;Edit: The setup process was so much easier than Octopress that I could complete manual migration in less than half an hour.&lt;/p&gt;
&lt;p&gt;Thanks to the plugins and theme support, everything that a blogger might need is simply &lt;em&gt;battery included&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;So here is a list of resources that I found indispensable:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;##Octopress theme&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;The readablity and functionality offered by this minimalist theme is brilliant.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;##Social Media Integration&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;The configuration files &lt;em&gt;pelicanconf.py&lt;/em&gt; and &lt;em&gt;publishconf.py&lt;/em&gt; have ample variables for linking with the popular social media platforms - Facebook, Twitter, G+.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol start=&quot;3&quot;&gt;
&lt;li&gt;##Google Analytics&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;Open Source bloggers can use this to track hits and get visual visits-with-time feedback.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol start=&quot;4&quot;&gt;
&lt;li&gt;##Markdown&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;I like this typesetting format for multiple reasons - touchtyping friendly characters, frugal use of tags, expressiveness, and the LaTeX-like non-&lt;span class=&quot;smallcaps-auto&quot;&gt;WYSIWYG&lt;/span&gt; nature.&lt;/p&gt;
&lt;/blockquote&gt;</content>
  </entry>
  <entry>
    <title>BeautifulSoup for Coursera</title>
    <link href="https://sidcode.github.io/letters/beautifulsoup-for-coursera/"/>
    <id>https://sidcode.github.io/letters/beautifulsoup-for-coursera/</id>
    <published>2015-02-16T16:53:00.000Z</published>
    <updated>2015-02-16T16:53:00.000Z</updated>
    <category term="computers"/><category term="education"/><category term="hacker-spirit"/>
    <summary>Circumventing the recent changes in Coursera video links structure</summary>
    <content type="html">&lt;p&gt;In a significant bandwidth-saving move, the &lt;span class=&quot;smallcaps-auto&quot;&gt;MOOC&lt;/span&gt; organization &lt;strong&gt;Coursera&lt;/strong&gt;  &lt;em&gt;removed&lt;/em&gt; the downloadable links from its course videos page. Here are the implications:&lt;/p&gt;
&lt;p&gt;##Earlier&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Use the DownThemAll Firefox plugin/coursera-dl/wget to get all links to all course videos and start downloading.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;#Current Scenario&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The student has to take a scattershot approach through the UI maze to reach the online video player. There is no single page with all downloadable links.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;##How does this affect the &lt;span class=&quot;smallcaps-auto&quot;&gt;MOOC&lt;/span&gt; user?&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;Courses will be chosen wisely&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;Watch only what you need.&lt;/li&gt;
&lt;li&gt;Salvaged Bandwidth - content loads faster&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;##Workaround
I am trying to learn and use the Python-based parsing library &lt;strong&gt;BeautifulSoup&lt;/strong&gt; to parse the html pages and extract the video links at one place so that the tools like &lt;em&gt;DownThemAll&lt;/em&gt; become instrumental to this end again.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;It’s only a matter of time that this impending inconvenience be resolved - await the nifty hacks!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Till then, Ta!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Human Sensor Network and Fusion</title>
    <link href="https://sidcode.github.io/letters/human-sensor-network-and-fusion/"/>
    <id>https://sidcode.github.io/letters/human-sensor-network-and-fusion/</id>
    <published>2015-02-14T16:53:00.000Z</published>
    <updated>2015-02-14T16:53:00.000Z</updated>
    <category term="computers"/><category term="robots"/><category term="networks"/><category term="ai"/><category term="analogy"/>
    <summary>Comparing Sensor Networks with the Human Sensory System</summary>
    <content type="html">&lt;p&gt;In the true spirit of &lt;em&gt;Sweat and Neurons&lt;/em&gt;, this rambling mindgasm is about an exquisite biosensor and intelligent network - a living organism’s sensory and nervous systems.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Proactive vs Reactive systems&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Sensory&lt;/em&gt; systems are reactive whereas the &lt;em&gt;nervous system&lt;/em&gt; exhibits reinforcement - it learns from its past and grows stronger on positive feedback - that is, it is proactive to future decisions.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;&lt;strong&gt;How the systems evolved?&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;Evolution (artificial and natural selection, genetic aberrations) compounded by the survival of the fittest, most agile (reactive), and most adaptive (proactive) species caused these systems to reach to the point where they place currently.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol start=&quot;3&quot;&gt;
&lt;li&gt;&lt;strong&gt;Where are these systems headed?&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;Research on sensor networks(wired/wireless), Cellular Automata and Artificial Intelligence suggest our disposition towards making an electronic human. Evolution might have to struggle with the same hiccups like sensor resolution, power requirements, accuracy, layout, response time, data fusion that researchers struggle today.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So here’s to the robots of tomorrow - who can feel just like a human - &lt;strong&gt;social robotics&lt;/strong&gt; and human-robot interaction are potential early adopters of the developments that sprout from this research.&lt;/p&gt;
&lt;p&gt;Here are some Social Robots that might interest you:&lt;/p&gt;
&lt;p&gt;#Jibo - &lt;span class=&quot;smallcaps-auto&quot;&gt;MIT&lt;/span&gt; Media Lab
&lt;img src=&quot;https://sidcode.github.io/images/articles/2015/jibo.jpg&quot; alt=&quot;Jibo&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;464&quot; height=&quot;262&quot;&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Identifying Bots from above</title>
    <link href="https://sidcode.github.io/letters/identifying-bots-from-above/"/>
    <id>https://sidcode.github.io/letters/identifying-bots-from-above/</id>
    <published>2015-02-12T16:53:00.000Z</published>
    <updated>2015-02-12T16:53:00.000Z</updated>
    <category term="maths"/><category term="robots"/><category term="computers"/><category term="vision"/><category term="robotics"/>
    <summary>QR code structure for mobile robots</summary>
    <content type="html">&lt;p&gt;After a firm resolve to abstinate from using C++ for any programming project, I am back to square one - this time with a Robotics research project. The team at The Robotics lab is creating a testbed for swarm algorithms on epuck bots. This entails localization and communication. I have chosen to ID each of the bots while moving via a QR code. This will be done using OpenCV and C++. Learnt about -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CMake&lt;/li&gt;
&lt;li&gt;g++ compatibility and flags&lt;/li&gt;
&lt;li&gt;OpenCV warping and contours&lt;/li&gt;
&lt;li&gt;Cascade Classifiers&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;code&gt;zbar&lt;/code&gt;	 library for linux makes decoding qr codes a breeze. All this while, figuring out the perfect library for this job was a red herring. It even turns out that &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; has its own wrapper library - &lt;strong&gt;roszbar&lt;/strong&gt; to use the features of zbar as a &lt;span class=&quot;smallcaps-auto&quot;&gt;ROS&lt;/span&gt; node, thus extending the scope of the lab to work with our TurtleBot much easier.&lt;/p&gt;
&lt;p&gt;Here’s to visually identifying robots in a lab.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Memcomputing is here to stay</title>
    <link href="https://sidcode.github.io/letters/memcomputing-is-here-to-stay/"/>
    <id>https://sidcode.github.io/letters/memcomputing-is-here-to-stay/</id>
    <published>2015-02-04T16:53:00.000Z</published>
    <updated>2015-02-04T16:53:00.000Z</updated>
    <category term="computers"/><category term="electronics"/><category term="nano"/><category term="computer-science"/>
    <summary>On recent results in the paradigm-altering field</summary>
    <content type="html">&lt;p&gt;Competitive Programming is about to perish. Information Processing and Storage at the same space and time.&lt;/p&gt;
&lt;p&gt;Now that I have your undivided attention, it would be worth the spacetime to take a look at the research being conducted on &lt;strong&gt;Memcomputing&lt;/strong&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Memcomputing is a theorized notion introduced in the 70’s which is currently being realized by nanoparticles.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It utilizes the features of special materials on the nanoscale - memcomputers, memresistors, memcapacitors, meminductors.&lt;/p&gt;
&lt;p&gt;The recent arXiv paper on &lt;em&gt;Universal Memcomputing Machines&lt;/em&gt; convinces me that Moore’s law is here to stay. It surpasses the von Neumann bottleneck that code and data have to be stored at different places but still depend on each other. Memory devices like those mentioned above maintain a history of the current, charge, and flux respectively. This enables them to act like normal electric components as well as instill them with the properties of a transistor.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Alan Turing would be so proud!&lt;/p&gt;
&lt;/blockquote&gt;</content>
  </entry>
  <entry>
    <title>Life is a 2-D board game!</title>
    <link href="https://sidcode.github.io/letters/life-is-a-2-d-board-game/"/>
    <id>https://sidcode.github.io/letters/life-is-a-2-d-board-game/</id>
    <published>2015-02-03T16:53:00.000Z</published>
    <updated>2015-02-03T16:53:00.000Z</updated>
    <category term="interactive"/><category term="maths"/><category term="computers"/><category term="evolution"/><category term="robots"/><category term="patterns"/><category term="networks"/><category term="computer-science"/>
    <summary>Conway&#39;s Game of Life in Robotics</summary>
    <content type="html">&lt;p&gt;&lt;strong&gt;Conway’s Game of Life&lt;/strong&gt; or the single-player zero sum game comprised of cellular automata with four simple rules. It was proposed by John Conway as a &lt;em&gt;Scientific American&lt;/em&gt; article and not very long ago, it reassured me of the beauty of Mathematics.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The game has intrigued me for quite a long time.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I got the opportunity to dabble with the intricate patterns and get to know the rules when I alter the rules. The results are to say the least, quite disastrous. The conditions for Conway’s game begin to crumble down with simple changes in the rules. Simulations under way.&lt;/p&gt;
&lt;p&gt;I am thinking along the lines of applying the Game of Life in &lt;strong&gt;Pattern Formation problems in Robotics&lt;/strong&gt;. For its automaton-ness…no history, no future. Adaptability to future outcome, modification of rules as and when you like, the tenacity of the patterns. Oscillators, still lifes all can be used in different domains of Robotics.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;An entire world of Robots can be imagined where all the different kinds of bots follow the rules of the game of life.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This not only controls the population, but also results in self-sufficient communities. This can teach us things about Android epistemology. For instance, a robot meant for video surveillance would not move, hence lives a  Still Life. A robot meant to patrol a region frequently should be an Oscillator. The simple states of the Automata ensure crispness of pattern formation.&lt;/p&gt;
&lt;p&gt;However it would be a challenge to deploy robots to the next states in the Automata, ensure which robots to move where, which robots to keep, which robots to summon. Virtually making a cell dead even when a robot lives there.&lt;/p&gt;
&lt;p&gt;Cellular Automata would prove beneficial in self-organizing systems.&lt;/p&gt;
&lt;p&gt;People tried the game with QR codes.&lt;/p&gt;
&lt;p&gt;Fun Fact: I was introduced to Conway’s Game via a strategy board game with the same name - “Game of Life”.&lt;/p&gt;
&lt;aside class=&quot;note-from&quot; aria-label=&quot;Note from 2026&quot;&gt;&lt;p class=&quot;note-from-label&quot;&gt;Note from 2026&lt;/p&gt;&lt;p&gt;You can play it now, right here. Click cells to bring them to life, or load the glider gun and watch it fire gliders forever. Still no robots, though. Eleven years and counting.&lt;/p&gt;&lt;/aside&gt;
&lt;p&gt;&lt;game-of-life cols=&quot;48&quot; rows=&quot;22&quot; pattern=&quot;glider&quot;&gt;&lt;/game-of-life&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>The LaTeX course of life</title>
    <link href="https://sidcode.github.io/letters/the-latex-course-of-life/"/>
    <id>https://sidcode.github.io/letters/the-latex-course-of-life/</id>
    <published>2015-01-10T08:42:00.000Z</published>
    <updated>2015-01-10T08:42:00.000Z</updated>
    <category term="computers"/><category term="foss"/><category term="open-source"/><category term="typesetting"/><category term="professional"/>
    <summary>When things get *LaTeX*-y and time is scarce</summary>
    <content type="html">&lt;p&gt;Summer internships’ deadlines knell by as I key this post. A common section in all application forms is the Curriculum Vitae/Résumé. Having made 2 versions of my résumé in Microsoft Word, the &lt;span class=&quot;smallcaps-auto&quot;&gt;FOSS&lt;/span&gt; enthusiast in me felt the pinch.&lt;/p&gt;
&lt;h2 id=&quot;i-decided--my-résumé-should-be-in-latex---the-typesetting-framework-based-on-knuths-tex&quot;&gt;I decided- my résumé should be in LaTeX - the typesetting framework based on Knuth’s TeX.&lt;a class=&quot;h-anchor&quot; href=&quot;#i-decided--my-résumé-should-be-in-latex---the-typesetting-framework-based-on-knuths-tex&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Having just a theoretical knowledge of how LaTeX worked, I probed into the open-source community. Forked Debarghya Das’ résumé which I liked because of its brevity and summarization in just one page.&lt;/p&gt;
&lt;p&gt;This exercise taught me the importance of documentation, yet again. I was not merely modifying someone’s LaTeX code. The documentation was edifying and I actually learnt a lot in the process.&lt;/p&gt;
&lt;p&gt;Ok, enough said. I urge you to try out LaTeX if you haven’t already. It has a steep learning curve for certain - but I am sure the hacker in you will be happy to help you climb the TeXy mountain.&lt;/p&gt;
&lt;p&gt;Alright, back to completing my application forms :)&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>I like my factors Prime and and my numbers Random</title>
    <link href="https://sidcode.github.io/letters/i-like-my-factors-prime-and-and-my-numbers-random/"/>
    <id>https://sidcode.github.io/letters/i-like-my-factors-prime-and-and-my-numbers-random/</id>
    <published>2015-01-10T08:07:00.000Z</published>
    <updated>2015-01-10T08:07:00.000Z</updated>
    <category term="maths"/><category term="computers"/><category term="foss"/><category term="puzzles"/><category term="hacker"/><category term="random"/><category term="theoretical-computer-science"/>
    <summary>A rundown on the 2014 PCG Random Number generator</summary>
    <content type="html">&lt;p&gt;A Quadratic Sieve is currently factorizing 7393913335919140050521110339491123405991919445111971 as I write this post. And the choice of this 52-digit number is not random.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The largest prime factor of this number will lead me to the next level in hacker.org challenges.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I am currently working on creating the Python bindings to the &lt;span class=&quot;smallcaps-auto&quot;&gt;PCG&lt;/span&gt; family of Random-number generators. A &lt;a href=&quot;www.pcg-random.org&quot;&gt;recent approach&lt;/a&gt; claims to be perform significantly well over other &lt;span class=&quot;smallcaps-auto&quot;&gt;PRNG&lt;/span&gt;s across different statistical metrics.&lt;/p&gt;
&lt;p&gt;hacker.org teaches me a lot of nifty tricks in my favorite language of late - Python.&lt;/p&gt;
&lt;p&gt;To know more about all the bit-level twiddling stuff, refer to &lt;strong&gt;Hacker’s Delight&lt;/strong&gt; by Henry Warren Jr.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>A Computing Era gone by...</title>
    <link href="https://sidcode.github.io/letters/a-computing-era-gone-by/"/>
    <id>https://sidcode.github.io/letters/a-computing-era-gone-by/</id>
    <published>2014-06-28T06:55:00.000Z</published>
    <updated>2014-06-28T06:55:00.000Z</updated>
    <category term="computers"/><category term="history"/><category term="electronics"/><category term="nix"/><category term="world"/><category term="linux"/><category term="computer-science"/>
    <summary>A nostalgic flashback to bit-twiddling</summary>
    <content type="html">&lt;p&gt;Being a 90s person, mine was one of the first generation adopters of intuitive Graphical User Interfaces. It took me 18 years to properly lose my Unix virginity. It not only brought a plethora of hacking skills, but also a deep appreciation of our rich computer heritage. Computer Science is the best thing to happen to the world in the last century. Turing had a hunch - to replace the scores of women ‘computers’ calculating away during the World Wars, with a hypothetical machine that follows instructions and operates on data - continuously maintaining one of its several states.&lt;/p&gt;
&lt;p&gt;We have come a long way since. The Computer History Museum does an awesome job at preserving the heroics of the people who contrived contraptions that made life easier.&lt;/p&gt;
&lt;p&gt;Microsoft dominated the Unix market with its licensed platform - Xenix. &lt;span class=&quot;smallcaps-auto&quot;&gt;DOS&lt;/span&gt; is heavily inspired by Unix. But then they split ways.&lt;/p&gt;
&lt;p&gt;Much more to be added in this post. Keep looking for the buzz.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Computer_terminals&quot; class=&quot;external&quot; data-link-icon=&quot;W&quot; data-link-icon-style=&quot;serif&quot;&gt;https://en.wikipedia.org/wiki/Computer_terminals&lt;/a&gt;
&lt;a href=&quot;https://en.wikipedia.org/wiki/Teletype_Model_33&quot; class=&quot;external&quot; data-link-icon=&quot;W&quot; data-link-icon-style=&quot;serif&quot;&gt;https://en.wikipedia.org/wiki/Teletype_Model_33&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Refer : Unix Prog. Environment by Kernighan and Pike
The Man who knew too much - Life of Alan Turing&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>The Tree of Life</title>
    <link href="https://sidcode.github.io/letters/the-tree-of-life/"/>
    <id>https://sidcode.github.io/letters/the-tree-of-life/</id>
    <published>2014-06-16T14:43:00.000Z</published>
    <updated>2014-06-16T14:43:00.000Z</updated>
    <category term="astronomy"/><category term="evolution"/><category term="learning"/><category term="life"/><category term="universe"/><category term="science"/>
    <summary>Retrospecting on evolution of life forms</summary>
    <content type="html">&lt;p&gt;Watching Cosmos [&lt;span class=&quot;smallcaps-auto&quot;&gt;S01E02&lt;/span&gt;]. Neil deGrasse Tyson speaks about artificial and natural selection ( dog breeds, and polar bears; respectively ). He also talks that we share our &lt;span class=&quot;smallcaps-auto&quot;&gt;DNA&lt;/span&gt; with plants, and furthermore, plants and humans share &lt;span class=&quot;smallcaps-auto&quot;&gt;DNA&lt;/span&gt; with birds, etc..So we can backtrack in a similar inductive fashion to reason that life started as &lt;span class=&quot;smallcaps-auto&quot;&gt;ONE&lt;/span&gt; &lt;span class=&quot;smallcaps-auto&quot;&gt;COMMON&lt;/span&gt; ancestor.&lt;/p&gt;
&lt;p&gt;What I think?
We have ML, and DM backtracking mechanisms available. Why not think in this direction, that we can establish a correlation between different species, a coming together of various kingdoms, in a way that both explains and justifies evolution - both in the artificial, and the natural way.&lt;/p&gt;
&lt;p&gt;My hunches are sometimes right, and mostly overstated. But we can try, right? It’ll teach us a lot of things. Firstly it’ll make us better at looking at ourselves, at the world as one great family (that’s what Vasudev Kutumb is all about, right?)&lt;/p&gt;
&lt;p&gt;If we can use backtracking to predict disease vectors, and weather conditions (from the &lt;span class=&quot;smallcaps-auto&quot;&gt;IIRS&lt;/span&gt; orientation session), I believe we can collectively develop a genealogy project for species all over.&lt;/p&gt;
&lt;p&gt;After all, why am I learning all the tools to process data, and to code? To make the world a better place, right?&lt;/p&gt;
&lt;p&gt;Remember, we don’t need to save the planet, the planet is strong enough to sustain itself; we need to save ourselves, from the disasters we can cause artificially.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>From GitHub pages to sidcode.github.io</title>
    <link href="https://sidcode.github.io/letters/from-github-pages-to-sidcodegithubio/"/>
    <id>https://sidcode.github.io/letters/from-github-pages-to-sidcodegithubio/</id>
    <published>2014-06-13T16:53:00.000Z</published>
    <updated>2014-06-13T16:53:00.000Z</updated>
    <category term="internet"/>
    <summary>A run-down of this *blog site&#39;s* architecture</summary>
    <content type="html">&lt;p&gt;Being a total amateur when it comes to Domain Names, &lt;span class=&quot;smallcaps-auto&quot;&gt;TLD&lt;/span&gt;s,&lt;code&gt;CNAME&lt;/code&gt; records, and selecting a service from the brutal competition among Domain/Host providers; this journey has been exhausting, time consuming, but essentially important.&lt;/p&gt;
&lt;p&gt;Basically everything boils down to communication between two computers in the world. Computers on the World Wide Web (the Internet as we know it - ignoring deep web for now), are addressed by a set of numbers known as IP (Internet Protocol) addresses. Just like your home address, this helps all the computers in the world to know where “on the network”, your computer/ your domain provider’s computer is. IP addresses are generally of the form “192.30.252.153”, in the IPv4 scheme (read more about Combinatorial Explosion and IP in this post’s footnotes ).&lt;/p&gt;
&lt;p&gt;Since memorizing numbers for humans is considered too brain-intensive, we delegate this important task to computers, and create human-friendly names in Natural Languages (like English, Arabic, Hindi, Mandarin etc). For example google.com runs on a lot of computers and one such address is 173.194.36.5. Copy paste this number in your browser’s address bar and you’ll reach google.com :D . How do I know about this number? There are a number of ways to find it out. I used:&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;ping google.com&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which resulted in&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.7&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.4&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.5&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.3&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.14&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.6&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.9&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;google.com.             91      IN      A       173.194.36.8&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;ping is a useful utility to test connections over any type of network topology - I’ll be using it more frequently when I talk about my Raspberry Pi setup over a &lt;span class=&quot;smallcaps-auto&quot;&gt;VNC&lt;/span&gt; server. (There also I’ll have to create a Static IP)&lt;/p&gt;
&lt;p&gt;So getting back to IP address mapping to English language words - henceforth referred to as “domain names”. People like you and me, have the choice to select a name of our choice (similar in spirit to christening children, naming a company, or naming anything in general). Of course, with choice comes competition - and more often than not, the domain name that we want is already chosen by somebody else (remember it has to be unique unlike human names). In my case, siddhant.org was already taken. Since this blog focuses on the confluence of Computer Science and Everything, I decided to append a “sci” to my name, and hence this domain is &lt;a href=&quot;http://www.sidcode.github.io&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;www.sidcode.github.io&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Initially this site was hosted on GitHub Pages i.e at sidcode.github.io . I always wanted a custom domain name ( David Malan sir’s CS50 lectures also motivated me to get one :D ).&lt;/p&gt;
&lt;p&gt;So I went domain service provider hunting. Having just a brief idea about some providers like GoDaddy - I was shocked at the intense competition in this domain (pun unintended). With every other company claiming about features like “Unlimited Bandwidth”, “Unlimited Domains”, “Unlimited email addresses”, and what not - I got wayward, and lost. Of course the limitlessness provided by these providers is an illusion for the people hosting their site on their servers. Servers are simply normal computers running dedicated software to receive incoming connections, and relay outputs according to the requests. And they have to run &lt;span class=&quot;smallcaps-auto&quot;&gt;ALL&lt;/span&gt; &lt;span class=&quot;smallcaps-auto&quot;&gt;THE&lt;/span&gt; &lt;span class=&quot;smallcaps-auto&quot;&gt;TIME&lt;/span&gt;, otherwise the site would go down - since there would be no computer at the receiver’s end to reply. But I realized that I don’t need a special server on these hosting solution providers - since this blog would be hosted on GitHub pages. All I needed was a domain name to which I can point this blog to.&lt;/p&gt;
&lt;p&gt;Thus I just bought the domain name for a year (the damage was around 13$) on HostGator.&lt;/p&gt;
&lt;p&gt;I modified the &lt;span class=&quot;smallcaps-auto&quot;&gt;DNS&lt;/span&gt; records to point to GitHub’ IP addresses provided on &lt;a href=&quot;https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages&lt;/a&gt; .
So I created an &lt;code&gt;A record&lt;/code&gt; to point from the host(sidcode.github.io) to the static IPs provided by GitHub. On GitHub’s side I created a &lt;code&gt;CNAME&lt;/code&gt; file with just the content - “&lt;a href=&quot;http://www.sidcode.github.io&quot; class=&quot;external&quot; data-link-icon-svg=&quot;github&quot;&gt;www.sidcode.github.io&lt;/a&gt;” in it. This essentially aliased sidcode.github.io to sidcode.github.io.&lt;/p&gt;
&lt;p&gt;Now I have to wait for another day to get the two computers of the world, and the Domain Management System to acknowledge this mapping, before you can access this site. If you are reading this, it means that everything is properly configured.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Lessons from the Octopress Setup</title>
    <link href="https://sidcode.github.io/letters/lessons-from-the-octopress-setup/"/>
    <id>https://sidcode.github.io/letters/lessons-from-the-octopress-setup/</id>
    <published>2014-06-11T15:37:00.000Z</published>
    <updated>2014-06-11T15:37:00.000Z</updated>
    <category term="computers"/><category term="foss"/><category term="linux"/><category term="open-source"/>
    <summary>Rambling through Ruby-based Octopress. It was good while it lasted!</summary>
    <content type="html">&lt;p&gt;This is my first post on this blog. I am learning to play with the various commands and get a knack of the basic publishing workflow.&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;This is how syntax highlighting is done&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After creating &lt;code&gt;.markdown&lt;/code&gt; files, all one has to do is to push changes to the master branch of the remote repo:&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;bundle exec rake generate&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;bundle exec rake deploy&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Git commands to be used:&lt;/p&gt;
&lt;p&gt;To update the &lt;code&gt; source&lt;/code&gt; branch with the latest changes (it is recommended to keep a backup)&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;git add .&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;git commit -m &quot;source update #&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;git push origin source&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;whereas to revert to the master branch, go to the _deploy directory, and run:&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot; class=&quot;shiki code-block&quot; data-lang=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;git pull origin master&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;bundle exec rake deploy&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To-do:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add pages: about, travel, competitive programming, open source contributions, &lt;span class=&quot;smallcaps-auto&quot;&gt;BITS&lt;/span&gt; work, SciTech News, etc.&lt;/li&gt;
&lt;li&gt;Understand the different plugins that are available for the blog, and use some of them - like Google Analytics, g+ integration, etc.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Finally, after posting couple of posts on Blogger and WordPress, I feel at home@Octopress.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Effectively enforcing eloquent English expression</title>
    <link href="https://sidcode.github.io/letters/effectively-enforcing-eloquent-english-expression/"/>
    <id>https://sidcode.github.io/letters/effectively-enforcing-eloquent-english-expression/</id>
    <published>2004-09-07T09:21:00.000Z</published>
    <updated>2004-09-07T09:21:00.000Z</updated>
    <category term="education"/><category term="english"/><category term="school"/><category term="skills"/><category term="language"/><category term="repetition"/><category term="game"/><category term="formative"/>
    <summary>English escapades from class 5D</summary>
    <content type="html">&lt;p&gt;Today I managed to snag three &lt;em&gt;stars&lt;/em&gt; from two classmates. Let me explain. &lt;em&gt;the protagonist clears his prepubescent throat. Out comes a distinct alto voice trained in some Hindustani Classical music&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;This is a &lt;em&gt;game&lt;/em&gt; that my classy class teacher conjured up.  She wants us to actively improve conversational English as we stand at the cusp of magnificently mortifying middle school. The rules of the game are-&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Every student starts with 5 paper stars they craft and personalize. They have to give up one star to the student who catches them speak a language other than English (usually Hindi, but could be anything else really). At the end of the week, whoever loses all their stars are made to deliver a two minute impromptu speech in english. Whoever gets the most stars gets to relax for a day on the whole english speaking thing &lt;span class=&quot;smallcaps-auto&quot;&gt;AND&lt;/span&gt; redistribute their extra stars to the ones who have less than five. A rising tide lifts all the boats. And guess what, it did just that!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Conclusion of the experiment- we could speak and think in english at will without subconsciouly switching to other languages. This feat just took a month for our preteen prefrontal cortices to pick up.&lt;/p&gt;
&lt;p&gt;I also realized the following-&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;You could gamify even the most mundane minutiae and will a bunch of pavlovian primitive preteens into anything you desire as a result.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I’ll return to my religious Pokemon (5 PM) and Digimon (5:30 PM) ritual on Cartoon Network.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Fin&lt;/em&gt;&lt;/p&gt;
&lt;aside class=&quot;note-from&quot; aria-label=&quot;Note from 2010s&quot;&gt;&lt;p class=&quot;note-from-label&quot;&gt;Note from 2010s&lt;/p&gt;&lt;p&gt;This was a very primitive form of seeders and leechers in torrenting. We could have managed to game the game by ensuring no student runs out of stars. But we didn’t. Children can be cruelly competitive at the lamest of games.&lt;/p&gt;&lt;/aside&gt;
&lt;aside class=&quot;note-from&quot; aria-label=&quot;Note from the roaring 2020s&quot;&gt;&lt;p class=&quot;note-from-label&quot;&gt;Note from the roaring 2020s&lt;/p&gt;&lt;p&gt;Moments like this game are what made me me as english follows through me like body english. I always wondered there was a name what batsmen did after missing a ball. Fortunately, I found &lt;em&gt;body english&lt;/em&gt; while watching some videos on proper lifting form. Body english or momentum lifting is a bad idea in the gym.&lt;/p&gt;&lt;/aside&gt;
&lt;aside class=&quot;note-from&quot; aria-label=&quot;Note from the lulled 2030s&quot;&gt;&lt;p class=&quot;note-from-label&quot;&gt;Note from the lulled 2030s&lt;/p&gt;&lt;p&gt;There are no real people snagging stars, only bots. School life is either too cooperative or too competitive (depending on which virtual school the student attends). Everyone thinks only in English as that is the only language the brain-computer interface understands at the moment.&lt;/p&gt;&lt;/aside&gt;
&lt;aside class=&quot;note-from&quot; aria-label=&quot;Note from 2040s&quot;&gt;&lt;p class=&quot;note-from-label&quot;&gt;Note from 2040s&lt;/p&gt;&lt;p&gt;Such amazing foresight and intervention by a teacher that challenged us then kids just the right amount.&lt;/p&gt;&lt;/aside&gt;</content>
  </entry>
  <entry>
    <title>Ontologies of Orwell</title>
    <link href="https://sidcode.github.io/letters/ontologies-of-orwell/"/>
    <id>https://sidcode.github.io/letters/ontologies-of-orwell/</id>
    <published>1984-01-31T12:50:00.000Z</published>
    <updated>1984-01-31T12:50:00.000Z</updated>
    <category term="necrofiction"/>
    <summary>Nineteen Eighty Four</summary>
    <content type="html">&lt;h2 id=&quot;subtitle&quot;&gt;Subtitle&lt;a class=&quot;h-anchor&quot; href=&quot;#subtitle&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;People post keeping the future in mind. I’ll live through the past and rewrite my version of history, because I can. Backposting ftw!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>The Use of Knowledge in Society</title>
    <link href="https://sidcode.github.io/letters/the-use-of-knowledge-in-society/"/>
    <id>https://sidcode.github.io/letters/the-use-of-knowledge-in-society/</id>
    <published>1984-01-31T12:50:00.000Z</published>
    <updated>1984-01-31T12:50:00.000Z</updated>
    <category term="necrofiction"/>
    <summary>Austrian Economics</summary>
    <content type="html">&lt;h2 id=&quot;subtitle&quot;&gt;Subtitle&lt;a class=&quot;h-anchor&quot; href=&quot;#subtitle&quot; aria-label=&quot;Link to this section&quot;&gt;§&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Backposting ftw! Jimmy Wales will be very inspired by this &lt;a href=&quot;https://www.cato.org/sites/cato.org/files/articles/hayek-use-knowledge-society.pdf&quot; class=&quot;external&quot; data-link-icon-svg=&quot;pdf&quot;&gt;essay&lt;/a&gt; and start Wikipedia.&lt;/p&gt;
&lt;p&gt;The wisdom of the crowds (decentralized knowledge) or &lt;strong&gt;street smartness&lt;/strong&gt; is as important as scientific knowledge.&lt;/p&gt;</content>
  </entry>
</feed>
