<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Memristor Robotics - Medium]]></title>
        <description><![CDATA[Robotics club Memristor that is mainly focused on building fully autonomus robots - Medium]]></description>
        <link>https://medium.com/memristor?source=rss----1354d7b17d31---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Memristor Robotics - Medium</title>
            <link>https://medium.com/memristor?source=rss----1354d7b17d31---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:32:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/memristor" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Node.js as a Part of Robotics Platform]]></title>
            <link>https://medium.com/memristor/node-js-as-a-part-of-robotics-platform-a64bf7a963d6?source=rss----1354d7b17d31---4</link>
            <guid isPermaLink="false">https://medium.com/p/a64bf7a963d6</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Darko Lukić]]></dc:creator>
            <pubDate>Sat, 14 Apr 2018 18:22:17 GMT</pubDate>
            <atom:updated>2018-04-19T07:43:12.138Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://memristorrobotics.com/">Memristor</a> has been developing firmware/software for robots for more than 10 years. The software has been changed many times and it evolved from implementation in C running on the microcontroller to JavaScript running on the Linux development board. The main goal has always been to develop a platform on top of which we can easily and rapidly define strategies, adapt to a new hardware and terrain imperfections.</p><p>Many years earlier it is proven that strategies should be written in some interpreted language, because anyone from team could edit/improve, no need for toolchain, and it doesn’t require compilation, which makes robot’s behavior testing much faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EI5UsVHjaGw_yCCKnnIh5w.jpeg" /></figure><p>Following the experience gathered from teamwork in Memristor as well as my own experience in software development, I chose to build a software platform for <a href="http://www.eurobot.org/">Eurobot</a> 2017 in Node.js and implement some modules in C/C++.</p><p>I have been impressed with event-loop and I thought it is just what we need in robotics. If you think about a robot from a software perspective it is similar to GUI. In GUI, you receive many different asynchronous events, click, cursor move, scroll, etc. Similarly, in robotics, we have a change of position, obstacle detection and many other challenges. Since the JavaScript is the most popular technology for building GUIs, I believed it will perfectly suit our needs as well.</p><p>After one year of experience and Eurobot competition in La Roche-sur-Yon, France, we would like to share our experience of using Node.js in robotics.</p><p><strong>Pros — Asynchronous Nature of JavaScript<br></strong>It is very easy to handle all those readings from sensors, current position, data from LiDAR, events from distance sensors, state of servos, various hardware failures and many more. We didn’t need to bother with threads.</p><p><strong>Pros — Package Management<br></strong>npm is an absolutely fantastic package manager, especially having in mind that C/C++ practically doesn’t have any. It was very easy to install, use and distribute platform with all its dependencies.</p><p><strong>Pros — JIT<br></strong>Node.js uses a very fast JIT for JavaScript. We haven’t lost time on the compilation but we still had a pretty fast execution.</p><p><strong>Cons — Hard to write C/C++ Modules</strong><br>Compared to Python it is much harder to native C/C++ modules, especially if you have to deal with C/C++ threads.</p><p><strong>Cons — Inconsistent Execution Time<br></strong>v8 optimizes code during runtime which may lead to inconsistent execution time. In the following example, execution time varies from ~90µs to ~3000µs. On the other hand, sensitive tasks should be executed on a real-time processor.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/961ef8cb782f76b3d1df14e03215b8c2/href">https://medium.com/media/961ef8cb782f76b3d1df14e03215b8c2/href</a></iframe><blockquote>Diff time 2935.336 microseconds<br>Diff time 739.212 microseconds<br>Diff time 97.603 microseconds<br>Diff time 96.093 microseconds<br>Diff time 90.832 microseconds<br>Diff time 89.426 microseconds</blockquote><p><strong>Cons — Nobody Knows JavaScript in Robotics World<br></strong>Community, neither your team, want to touch JavaScript code! Developer who code in JavaScript and engineers who do robotics are two different worlds.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a64bf7a963d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/memristor/node-js-as-a-part-of-robotics-platform-a64bf7a963d6">Node.js as a Part of Robotics Platform</a> was originally published in <a href="https://medium.com/memristor">Memristor Robotics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>