<?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[Stories by Bharat Jain on Medium]]></title>
        <description><![CDATA[Stories by Bharat Jain on Medium]]></description>
        <link>https://medium.com/@bharat.jain9793knp?source=rss-28e5b72287b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KhGH8BoA3z68R744C9SCOw.jpeg</url>
            <title>Stories by Bharat Jain on Medium</title>
            <link>https://medium.com/@bharat.jain9793knp?source=rss-28e5b72287b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:32:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bharat.jain9793knp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Built 24 ROS2 Projects in 8 Months. These 6 Taught Me Everything]]></title>
            <link>https://medium.com/@bharat.jain9793knp/i-built-24-ros2-projects-in-8-months-these-6-taught-me-everything-fb450a426eaf?source=rss-28e5b72287b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb450a426eaf</guid>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[ros2]]></category>
            <dc:creator><![CDATA[Bharat Jain]]></dc:creator>
            <pubDate>Sun, 18 Oct 2026 11:32:02 GMT</pubDate>
            <atom:updated>2026-10-18T11:32:02.550Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the past 8 months, I have built 24 different ROS2 robotics projects.</p><p>In this article, I will share the <strong>6 projects</strong> that helped me the most to go from a <strong>complete beginner to being proficient </strong>in ROS2<strong> </strong>making me over $10,000<strong>, </strong>the <strong>only ROS2 basics </strong>you need to know to get started, with complete resources<strong> </strong>and my <strong>AI workflows</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*2PsFjbQBudU6HCCXaZtk-Q.gif" /></figure><p>I’m not a robotics major, and had zero years of robotics experience.</p><p>However, most people (inc. me) used to assume that before learning ROS2 they need to <strong>spend months taking robotics courses</strong>, learn <strong>advanced math</strong> or have <strong>years of programming experience</strong>.</p><p>That is not true.</p><p><em>Let me tell you a secret — almost no developers today, including senior developers are writing their own code today.</em></p><p>In fact I did not write 99.99% percent of my code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxpKJ7IBNXs2zwhrihlnvQ.gif" /><figcaption>DHH (founder of Ruby on Rails) in a recent keynote</figcaption></figure><p>You can start working on real projects from Day 1 instead of waiting 6 months to learn how to code &amp; take courses passively.</p><p>The goal is to get your hands dirty and fill in your knowledge gaps along the way. This is is called <strong><em>“learning on-demand”.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E57Vk088mW1GAzjraF5syg.png" /></figure><p><strong>ROS, or Robot Operating System</strong> is by far the most widely used tool in robotics. In fact NASA picked ROS2 for the ground software of its VIPER Moon rover set to launch in late 2027, has been cited over 16,000 times and has nearly a billion downloads in 2025 alone. And all you need is a laptop to get started.</p><p>I would recommend reading this article completely once, then come back to it again as you work on the projects.</p><p><em>PS: Appreciate you are here. I’m also giving away 2 free gifts for anyone learning ROS2. Link is at the bottom.</em></p><h3>What is ROS2 and when do you actually need it?</h3><p>To understand the need for ROS 2, let’s start with a problem.</p><p>Imagine you are building a <strong>self-driving car</strong>. It will likely have <strong>sensors</strong> (like LiDAR and cameras) to see the world, an <strong>onboard computer</strong> to make decisions, and <strong>actuators</strong> (the motors that steer, accelerate and brake) to carry them out.</p><p>However, each sensor produces data at its <strong>own frequency and format</strong>. A LiDAR produces hundreds of thousands of<strong> 3D data points</strong> every second and a camera sends around <strong>30 images a second</strong>.</p><p>Your computer has to process all the data points coming from all the different sensors, run algorithms and send action commands to the actuators all in parallel.</p><p>This would mean writing an <strong>entire messaging system </strong>from scratch before you even write a single line of <strong>self-driving logic</strong>. And if everything lives in one giant program, a single bug in the camera code can bring the whole system down.</p><p>ROS simply acts as a reliable <strong>communication layer</strong> between all the parts of your robot, allowing you to develop higher level logic, without worrying about lower-level details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYwAsqgeWXB_xucLShiq6g.gif" /><figcaption>Internode communication in ROS2</figcaption></figure><p>ROS 2 is the current generation of ROS. The original <strong>ROS1 reached end of life in May 2025</strong>, so ROS 2 is the version to learn today.</p><p><strong>So, when do you need ROS 2?</strong></p><p>If your robot <strong>consists of several sensors and motors</strong>, require simulation using ROS2 will really help you.</p><p>You probably don’t need it for simple projects, like a <strong>line-following robot</strong> that one can easily build on an Arduino.</p><h3>The only ROS2 basics you need to know to get started</h3><h3>1. Nodes:</h3><p>Each function or program in ROS2 is <strong>called a node</strong>. A node is responsible for <strong>carrying out a single job.</strong></p><p>For example, in our car the LiDAR processor, camera processor, obstacle detection, planning and control would each be a separate node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7bMey8GUtZ_-Urt2M4AJVg.png" /><figcaption>Individual Nodes in Self-Driving Car</figcaption></figure><h3>2. Topics, services and actions</h3><p>These are only <strong>three ways nodes talk</strong> to each other.</p><h3>A. Topics</h3><p>Topic are for <strong>continuous streams of data</strong>. One node can be a publisher to a topic, which multiple other nodes can subscribe to.</p><p>For example, the LiDAR node publishes its 3D points to a <strong>“lidar” topic,</strong> and the camera node publishes images to a <strong>“camera” topic</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZVJqCvgkmYp7lEh8T4NhA.png" /></figure><h3>B. Services</h3><p><strong>Services</strong> are for <strong>quick, one-off questions</strong>. One node can send a <strong>service request</strong>, and another <strong>serves the response</strong>.</p><p>For example, the planning node can ask the map node for the speed limit on the current road.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P-42jV0hwVJCT7nRLjw0qg.png" /></figure><h3>C. Actions</h3><p><strong>Actions</strong> are for longer tasks that need progress updates.</p><p>For example: The planner node can send an action<em>“Park the car”</em> to parking node. The parking node starts executing the action and sends regular progress updates and reports back to the planner node when it’s done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*zQ43NFkHnWdPOM6Dkf8uKg.png" /></figure><h3>3. Packages and Workspaces</h3><h4>A. Packages</h4><p>All ROS 2 code is <strong>organised and distributed as packages</strong>.</p><p>A ROS2 package is a folder that groups related nodes (CMake/Python files), with a package.xml file listing its name and dependencies.</p><p>Layout of a ROS2 package:</p><pre>my_package/<br>      package.xml<br>      resource/my_package<br>      setup.cfg<br>      setup.py<br>      my_package/</pre><h4>B. Workspace</h4><p>A single workspace can contain multiple packages, present inside their own folder.</p><p>A workspace looks like:</p><pre>workspace_folder/<br>    src/<br>      cpp_package_1/<br>          CMakeLists.txt<br>          include/cpp_package_1/<br>          package.xml<br>          src/</pre><pre>      py_package_1/<br>          package.xml<br>          resource/py_package_1<br>          setup.cfg<br>          setup.py<br>          py_package_1/</pre><p>To build all the packages, you need use colcon build inside the src folder of the workspace.</p><h3>4. CLI commands for quick debugging</h3><p>Use these commands for quick debugging and inspection</p><pre>ros2 run my_car lidar_node # start a node<br>ros2 launch my_car car.launch.py # start several nodes at once<br>ros2 node list # list running nodes<br>ros2 topic list # list all topics<br>ros2 topic echo /lidar # print messages on a topic as they arrive<br>ros2 topic hz /camera # show how often messages arrive</pre><h3>5. Key tools and frameworks</h3><ul><li><strong>RViz</strong> shows what your robot sees, like LiDAR points and camera images, in 3D.</li><li><strong>rqt_graph</strong> draws a live map of your nodes and the topics connecting them, so you can spot a missing link.</li><li><strong>Gazebo</strong> is a simulator for testing your robot in a virtual world before using real hardware.</li><li><strong>Nav2</strong> is a ready-made navigation system that moves a mobile robot from A to B while avoiding obstacles.</li><li><strong>MoveIt</strong> is the equivalent for robot arms: it plans movements that don’t hit anything.</li></ul><h3>Hardware required — if not you can also use simulations</h3><ul><li>RPi/Jetson Orin Nano</li><li>LiDAR</li><li>Turtlebot3/ROS2 Supported AMR or build it yourself</li><li>Ubuntu (ideally x86 — however if you have mac, VMs also work well)</li></ul><h3>Project 0: “Hello World!” in ROS2— Turtlesim</h3><p>Turtlesim is the “<em>Hello World!”</em> equivalent of ROS2.</p><p>It is a simple inbuilt simulation designed for you to <strong>test your ROS installation</strong>, and understand how messages flow from <strong>different nodes using topics.</strong></p><p>You’ll be moving the turtle using teleop control node that will send <strong>velocity commands</strong> to the turtle node.</p><p>Start turtlesim by typing ros2 run turtlesim turtlesim_nodein one of the terminals. You will see a <strong>blue window with a turtle inside it</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkQ00vRAheA4LtBYwAt_qQ.gif" /><figcaption>Turtlesim Teleop on ROS2</figcaption></figure><p>If you peek inside thecmd_vel topic you will see <strong>no values are being published</strong>. This explains the idle state of the turtle.</p><p>To move the turtle, <strong>start the teleop node</strong> using the command ros2 run turtlesim turtle_teleop_node.You can use your keyboard <strong>arrow keys</strong> to move the turtle.</p><p>Now you will see the values flowing through the cmd_vel topic.</p><p><em>The official ROS2 guide on turtlesim: </em><a href="https://docs.ros.org/en/foxy/Tutorials/Beginner-CLI-Tools/Introducing-Turtlesim/Introducing-Turtlesim.html"><em>Link</em></a></p><h3>Project 1: Teleoperating a Real Robot</h3><p>This project involves <strong>controlling a Autonomous Mobile Robot (AMR)</strong> using <strong>keyboard teleoperation.</strong></p><p>You can also do this inside a simulation. Follow this guide to install &amp; run the TurtleBot3 on Gazebo: <a href="https://docs.robotis.com/docs/systems/turtlebot3/simulation/gazebo_simulation">Link</a></p><p><a href="https://www.turtlebot.com/turtlebot3/">TurtleBot3</a> and <a href="https://www.waveshare.com/ugv-rover.htm?srsltid=AU7gw4XaX5SqaSVX3e1C3iUT65Qa4Q9pazuid7OT8hHQqWeMvn-EVEJs">Waveshare’s UGV Rover</a> are great <strong>off the shelf robots</strong> that comes with built-in ROS 2 support and packages. If you want to <strong>build your own,</strong> then follow this tutorial by Articulated Robotics: <a href="https://articulatedrobotics.xyz/tutorials/mobile-robot/project-overview/">Link</a></p><p><strong>After completing this project you’ll learn:</strong></p><blockquote>1. How to teleoperate a robot inside a space with obstacles</blockquote><blockquote>2. How run multiple nodes in multiple terminals</blockquote><blockquote>3. Become familiar with RViZ.</blockquote><p>Once you have your wheeled robot, real or simulated, you move it by <strong>publishing values</strong> to the /cmd_vel topic through the robot’s keyboard teleop node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*SWFknp4AWEOxG8uWkgNORw.gif" /></figure><p>The keyboard teleop node maps the keyboard values i, j, l, k to Linear (x, y, z) and angular (x, y, z) velocities of the robot.</p><p>To start the teleop node:</p><pre>ros2 run teleop_twist_keyboard teleop_twist_keyboard</pre><p>To see the live velocity values being published to the \cmd_vel topic, run the following command in another terminal:</p><pre>ros2 topic echo /cmd_vel</pre><p>You should now be able to remotely control and move your robot.</p><p>Note that your robot version may have a different node/package name, so follow the documentation.</p><h3>Project 2: Map a room with LiDAR using SLAM</h3><p>In this project, instead of just moving the robot around, we’ll also <strong>map a room</strong> with a <strong>LiDAR sensor</strong> using a process called <strong>SLAM (Simultaneous Localization and Mapping).</strong></p><p><strong>Upon completing this project, you’ll learn:</strong></p><blockquote>1. How to map a room using SLAM</blockquote><blockquote>2. How to make the robot navigate autonomously from point A → B,</blockquote><blockquote>3. Avoid obstacles dynamically while navigation</blockquote><p>You can use the same robot as Project 1. You’ll also need a LiDAR sensor.</p><p>Follow this guide if you are using a Gazebo Simulation: <a href="https://docs.robotis.com/docs/systems/turtlebot3/slam/">Link</a></p><p>You can drive the robot the room using teleoperation. SLAM builds up the map inside RViZ. You can save a map, and then retrive it again.</p><p>You need to start the SLAM node, and the teleoperation node in two different terminals.</p><pre>ros2 luanch ugv_nav slam_nav.launch.py use_rviz:=true ## Start Mapping<br>ros2 run ugv_tools keyboard_ctrl ## Start Keyboard teleoperation</pre><p>Here, <em>I am using the UGV rover. Follow commands from your respective robot’s documentation.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*rPOKMIn8H4JZA3uGJrC3ZA.gif" /><figcaption>Mapping through SLAM using Teleop</figcaption></figure><p>Once, you have constructed the map, you can give the robot a navigation goal inside RViZ.</p><p>Click on the <strong>Nav2 goal</strong>, then select a point on the map where you want to robot to reach and the orientation you want the robot to arrive. Nav2 will plan the <strong>shortest path through the obstacles</strong>, and <strong>drive the robot to the intended destination.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*izO849Hk6qup6QdZwCo-Vw.gif" /><figcaption>Nav2 in action</figcaption></figure><p>Nav2 actively reads the sensor data while navigation. If you place an object along the planned path, Nav2 will detect it and update its path dynamically.</p><p>Here I’m placing this black box along the robot’s path. It updates it’s path in real time to avoid any collision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*51iwnFhTiQ9jFF5YDjgbJA.gif" /><figcaption>Dynamic Obstacle Avoidance inside Nav2</figcaption></figure><h3>Project 3: Autonomous Room Mapping</h3><p>In the last project, we <strong>manually mapped a room</strong> using teleoperation. In this one, we’ll build an algorithm that can <strong>map an unexplored room completely autonomously</strong>. It is called the <strong>frontier exploration algorithm</strong>.</p><p><strong>Upon completing this project, you’ll learn:</strong></p><blockquote>1. How the frontier exploration algorithms works</blockquote><blockquote>2. Implement the algorithm using coding agents</blockquote><blockquote>3. Build, test and distribute your own ROS2 packages</blockquote><p><strong>A frontier</strong> is an <strong>unexplored region in the map</strong> [denoted by grey cells]. During mapping, the algorithm identifies <strong>frontier cells</strong>, <strong>clusters them together</strong>, and <strong>ranks </strong>each cluster based on <strong>closeness and other biases</strong> to finally select a frontier cluster.</p><p>The robot then <strong>navigates to the selected frontier centroid</strong>, exploring more of the unknown environment, building up the map.</p><p>The process continues until there are <strong>no frontiers remaining</strong>, thus completing the mapping process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*KoFkgNt2GCjxCjDT3-Fq6A.gif" /><figcaption>A simple animation of an AMR autonomously mapping a room using frontier exploration</figcaption></figure><p>To build the ROS2 package, use a coding harness like claude code/codex. Initiate a new session inside your existing robot’s package.</p><p>Now, provide with the detailed technical specifications of the algorithm. Here’s a prompt you can build on top of:</p><p>Once completed, use the algorithm in multiple environments(real/sim) to test it’s robustness. You might encounter that the robot is choosing same frontiers, getting stuck or even not exploring completely. You will have to iteratively work will your coding agent fix these bugs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*BPlAH3w70o_BjuiszJq0eA.gif" /></figure><p>Here’s my tested ROS2 package for the UGV rover, which you can also implement and improve for your robot/environment:</p><p>Once it’s done, run it and watch your robot map the room all autonomously. This is our first “smart robot”, without writing a line of code ourselves!</p><h3>Project 4: Semantic navigation</h3><p>The map we built earlier is a 2D occupancy grid. Each cell only says whether that spot is occupied, free or unexplored.</p><p>The robot does not know where the door or the chair is in the room. It just knows where it can and can’t go</p><p>For a useful robot, I’d like human-robot interaction to be as natural as possible. So instead of you finding the door’s coordinates and then commanding the robot, why can’t you just ask the robot to go near the door? The robot should then retrieves the door’s coordinates from what it captured while exploring.</p><p><strong>This is called semantic navigation.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-ND1orZh4ITNmhlRWCaU3A.gif" /><figcaption>Semantic Navigation Inside Gazebo Sim</figcaption></figure><p><strong>Upon completing this project, you’ll learn:</strong></p><blockquote>1. How does <strong>semantic navigation</strong> work?</blockquote><blockquote>2. How to <strong>connect a camera feed</strong> to a <strong>Vision Language Models (VLM)</strong> to label <strong>objects</strong> in a room</blockquote><blockquote>3. Test and <strong>iteratively improve</strong> the algorithm</blockquote><h4>Semantic Navigation Algorithm:</h4><p>During exploration (manual or frontier-based), the robot captures images of the room at regular intervals. A <strong>Vision Language Model (VLM)</strong> labels the objects and locations in each image. The robot’s current coordinates, along with the estimated coordinates of those objects and locations, are stored in a vector database.</p><p>When someone asks for a location after the map has been explored, the algorithm scores the query against every entry in the database. It retrieves the best match’s coordinates and sends them to the navigation stack (Nav2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SvNlBziX8IHjzGCAz6nBww.gif" /></figure><p>We use a vector database because the VLM’s label for an object might be different from what the user calls it. For example, the VLM might label something “sofa” while you ask for the “couch”. A vector database matches by meaning rather than exact words, so it still finds it.</p><p>Video Demo: <a href="https://youtu.be/Cj4dYQ7BuUw">https://youtu.be/Cj4dYQ7BuUw</a></p><p>Code: <a href="https://github.com/itsbharatj/semantic-nav">https://github.com/itsbharatj/semantic-nav</a></p><p>You’ll have to iteratively test the performance of this algorithm and understand edge cases. You can also review zother more methods of semantic navigation in the literature.</p><h3>Project 5: LLM-controlled robot</h3><p>What if you never had to manually control or navigate a robot? What if an AI could handle all of it, and you just told it what to do in natural language?</p><p>This project connects your robot to LLMs and coding agents like Codex and Claude Code using the Model Context Protocol (MCP), so you can command it in natural language. An MCP server bridges ROS 2 and the LLM client, letting the LLM send action commands to the robot and read its sensor data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*2_0Oo7nPR6P8cMGPNmJJRg.gif" /><figcaption>Complete Natural Language Control Of Robots (using ROS-MCP)</figcaption></figure><p><strong>In this project, you’ll learn:</strong></p><blockquote>1. How LLMs are able to control robots using Model Context Protocol (MCP)</blockquote><blockquote>2. How to make your own ROS tools/functions for LLMs to call</blockquote><blockquote>3. How to make an end-to-end GPT controlled robot</blockquote><p><strong>Using LLMs to control robots using Model Context Protocol (MCP):</strong></p><p>MCP is the standardised interface through which LLM can call external tools. These tools can carry out the low level tasks of actually sending action commands or reading sensor data.</p><p>For this project, we’ll use the ROS-MCP server, which is an open-source project on GitHub: <a href="https://github.com/robotmcp/ros-mcp-server">https://github.com/robotmcp/ros-mcp-server</a>. It has inbuilt tools that allows LLMs to easily connect to robots running ROS2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s5K7UICwURzyJ00ngMZ8wQ.png" /><figcaption>ROS-MCP Architecture</figcaption></figure><p>The MCP can be added to any LLM application (like claude-code or codex), that will then connect to robot running ROS2. The robot can be on the same local network or exposed to the internet using service like ngrok or Cloudflare.</p><p>You can follow <a href="https://github.com/robotmcp/ros-mcp-server/blob/main/docs/install/pip.md">this</a> guide to install.</p><p>Once connected, you can ask LLM simple commands like <em>“Make the robot rotate by 360 degrees”, “make the robot move in a circle” </em>etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*8Z4QC-tGedck-zo_aXq4zA.gif" /><figcaption>Real Robot controlled via natural language</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XRNNDtraDEcaYHJM0piy2g.gif" /><figcaption>Turtlesim connected to ROS-MCP</figcaption></figure><p><strong>Making your own functions as MCP tools:</strong></p><p>Given that LLMs still can’t give motor torque values. You can make your own functions and give them as abstraction layer to the LLM.</p><p>For example, I made custom services for the UniTree Go2 Quadruped connected to the ROS-MCP server, like /sit , /stand,/walk_forward , /backflip , /survey_room etc. The LLM acts as the orchestrator calling the right tool/service which will handle all the low level computation.</p><p>Here’s my code for UniTree Go2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*KUyENTIlfWjx6szI2KMSfQ.gif" /><figcaption>Go2 controlled via “Cursor” (using ROS-MCP)</figcaption></figure><p><strong>Make an end-to-end GPT controlled robot:</strong></p><p>Defining this problem is where an LLM is not just able to control the robot, but also integrates functionalities we have built so far. It should include mapping, navigation, semantically understand the environment, read and process data from various sensor, read camera feed and take autononmous decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*MmwwPHGJ847-g0yajkJyHQ.gif" /></figure><p>LLMs are also great planning tools. Give one a long-horizon task like “survey a room”, it breaks it into individual steps and carries them out one by one by calling the right tools via MCP.</p><p>This is true Physical AI in action.</p><p>Here’s my full video demo on this: <a href="https://youtu.be/k4OTUm2TysA">https://youtu.be/k4OTUm2TysA</a></p><h3>Project 6: Robotic Arm with MoveIt (SO-101)</h3><p>Robotic arm manipulators allow for high dexterity and can carry out real-world tasks like pick and place, sorting, etc. You’d have seen robotic arms working in factories, doing tasks like welding etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ZkrBZRnvjcXUlzIL9eh6Hg.gif" /></figure><p>We’ll build a miniature version of such an arm that fits right on your desk. It costs just $200 to build, and it’s free if you use it in simulation. It’s called the SO-101 Arm or LeRobot by Hugging Face</p><p><strong>Upon completing this project, you’ll learn:</strong></p><blockquote>1. How to source and assemble the <strong>SO-101 Arm (under $250)</strong></blockquote><blockquote>2. Move the arm to a specific point in <strong>3D space using ROS2 (MoveIt)</strong></blockquote><blockquote>3. <strong>Pre-record trajectories</strong> with the leader arm and <strong>“play” them later</strong></blockquote><blockquote>4. Use LLMs to move the arm with <strong>natural language</strong></blockquote><p><strong>Sourcing and assembling the robot</strong></p><p>The arm is completely open source. You can either <strong>buy a kit</strong> with all the parts, or 3D print the parts and buy the rest yourself.</p><p>I’ve created this <a href="https://itsbharatj.github.io/so101-build-guide/"><strong>free website</strong></a> where you can select your country and find the <strong>best local links for all components</strong> and even <strong>download all the 3D files.</strong></p><p>Here’s a quick walk-through of it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*xMUNfQLoA4b02we9fQyxRA.gif" /><figcaption><a href="https://itsbharatj.github.io/so101-build-guide/">https://itsbharatj.github.io/so101-build-guide/</a></figcaption></figure><p>I’d recommend assembling the arm yourself. It’ll teach you more about robotic arms than any 2-hour lecture. Give yourself about 4–6 hours to fully assemble it and configure the motors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*OO-Q9SnE0AwEe0rjJSICXg.gif" /></figure><p>Follow the official Hugging Face guide for all the instructions and commands: <a href="https://huggingface.co/docs/lerobot/main/en/assemble_so101">Link</a></p><p><strong>Move the arm in 3D space using ROS2 (MoveIt)</strong></p><p>For a robotic arm to reach a specific 3D coordinate, it has to calculate the joint positions of all its motors. This is called <strong>inverse kinematics (IK)</strong>, and requires solving a set of equations.</p><p>By default, the SO-101 runs on its own stack (LeRobot), not ROS 2. That’s because it’s mainly used to train models with imitation learning to do tasks autonomously.</p><p>ROS2 lets us program the arm with deterministic control. MoveIt gives us the IK engine (joint angles for a 3D coordinate), motion planning (start to final position) and visualisation of the arm.</p><p>ROS2 has a tool called MoveIt, which does all the calculations and visualisation for our arm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*AGzwuwPuosl_DzUpIKSp2g.gif" /></figure><p>Clone <a href="https://github.com/itsbharatj/so101_ros_mcp">this</a> repo and set it up.</p><p>Once it’s running, you can simply select a random point in 3D space, and then MoveIt will do the complete path planning and send the action commands to the arm.</p><p><strong>Calibrate and start teleoperation</strong></p><p>Once, we are able to move the follower arm in the 3D space we can teleoperate the robot to a desired location. Apart from it being extremely fun to do, you can train Action Models using imitation learning by recording various episodes, or as we’ll see next, you can even record certain trajectories which can be “played” later either by you or an AI agent automating tasks.</p><p>To teleoperate you can use either the official LeRobot program, or use it via ROS2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*aLjhSZlZ4fbvybIrbrS1wQ.gif" /></figure><p>You can install <a href="https://huggingface.co/docs/lerobot/en/lelab">LeLab</a> from Hugging Face to have a simple GUI control everything.</p><p><strong>Record and play trajectories</strong></p><p>Next, we can build applications on top of this. What if you could record trajectories with teleoperation and have them “played” later by an LLM? The repo already supports this.</p><p>Record a trajectory and give it a natural language name. Then play it yourself, or describe the task to an LLM connected through ROS-MCP, and it’ll play it for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*16cj9BN4rOstPG7KvzrVFQ.gif" /></figure><h3>End Notes:</h3><p>Appreciate you going through the article. Please 👏 if you found it valuable, it’ll help the article reach more people.</p><p>Going through a bottom up approach might mean that you have to deal with ambiguity, figuring out software that you don’t completely understand yet. But eventually it is more rewarding and more fast to</p><p>I’ve created a free <strong>ROS2 Cheat Sheet</strong>. It contains all the projects, key ROS2 commands and AI prompts.</p><p>I’m also taking a <strong>completely free interactive 2 day workshop on ROS2 </strong>where we can in more detail, make projects, break things and you can ask question. There’s no charge, although I might ask you to <strong>donate to a charity of your choice</strong>. I’m doing this because I believe teaching is the best way for me to learn.</p><p>You can download the sheet and sign up for the workshop here.</p><p>Follow me on <a href="https://www.youtube.com/@BharatJain26">YouTube</a> &amp; <a href="http://x.com/BharatJain">X</a> for more Physcial AI content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb450a426eaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Cost of Learning vs The Cost of Doing]]></title>
            <link>https://medium.com/@bharat.jain9793knp/the-cost-of-learning-vs-the-cost-of-doing-9f891fe9acc2?source=rss-28e5b72287b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f891fe9acc2</guid>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[risk-taking]]></category>
            <dc:creator><![CDATA[Bharat Jain]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 23:43:00 GMT</pubDate>
            <atom:updated>2026-09-20T23:43:00.450Z</atom:updated>
            <content:encoded><![CDATA[<p>⚠️ ONLY READ THIS IF YOU ARE <strong>STRUGGLING TO DECIDE</strong> WHETHER TO <strong>START SOMETHING OF YOUR OWN V/S</strong> <strong>GETTING MORE EXPERIENCE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*QHy3UGyW1CT_jLZA" /></figure><p><em>“Let me get an MBA/Masters/Bachelors/course/etc.”</em> and then start something, as I will be <em>“Better Equipped”</em> to do so.</p><p>Most silicon valley giants will say that this thinking is bullshit, and one should go <strong>“All In” </strong>without getting societal approvals.</p><p>However, I always thought that it’s pretty reasonable thinking to reduce one’s odds of failure by gaining experience early on before actually actually starting to do something.</p><p>The central question then becomes:</p><p><strong>DO I SPEND TIME LEARNING, AND GETTING THE EXPERIENCE TO THEN START SOMETHING WITH HIGHER CHANCES OF SUCCEEDING.</strong></p><p>OR</p><p><strong>ACTUALLY START THE THING, LEARN ALONG THE WAY, FAIL AND ADAPT</strong></p><p>The nuance here is that:</p><ol><li><strong>Both the sides of the table have an advantage</strong></li><li><strong>The unknown will never cease to exist</strong></li><li><strong>One will learn either way</strong></li></ol><p>The paradox as with most things in life is that there is no binary answer.</p><p>Whenever, I have struggled with this question I have found myself asking these questions:</p><p><strong>&gt; How much of this experience/degree/job etc. will actually translate into skills that I can then use for my personal endeavour?</strong></p><p><strong>&gt; Can those skills also be learnt along the way, without going through this experience/degree/job etc.?</strong></p><p><strong>&gt; What is the latent cost of this experience/degree/job etc. What constraints in the future will make it harder for me to do this thing?</strong></p><p>Fundamentally, both directions have their advantages and fixed costs. Once it’s identified, and articulated it makes the decision obvious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*4Fa32OtthDuUfhp37CD-qg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f891fe9acc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Giving robots the ability to think, take action and adapt to unknown environments via VLAs and MCPs]]></title>
            <link>https://medium.com/@bharat.jain9793knp/giving-robots-the-ability-to-think-take-action-and-adapt-to-unknown-environments-via-vlas-and-mcps-e8e0aa7ef5b3?source=rss-28e5b72287b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8e0aa7ef5b3</guid>
            <category><![CDATA[vla]]></category>
            <category><![CDATA[ros2]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[mcp-server]]></category>
            <dc:creator><![CDATA[Bharat Jain]]></dc:creator>
            <pubDate>Wed, 08 Apr 2026 14:44:33 GMT</pubDate>
            <atom:updated>2026-04-08T14:44:33.055Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g6_XzULWuiIGl06UfiO3yw.png" /></figure><p>This is a very interesting time in robotics right now, and more than ever there is interest not just in improving the hardware capabilities but also in working towards making these <strong>robots think and act on their own in unknown environments.</strong></p><p>Current robots have demonstrated impressive hardware capabilities, with robust policies that can adapt to varied terrain and recover from serious falls.</p><p><a href="https://youtu.be/8ClYBtfhkaw?si=xkKUbJPoxs6xX2WT">https://youtu.be/8ClYBtfhkaw?si=xkKUbJPoxs6xX2WT</a></p><p>Look at this demonstration of the <strong>Unitree Go2</strong> (quadruped robot showing strong terrain navigation and fall recovery in real-world-like conditions).</p><p>However, they often fail at high-level planning or doing anything truly meaningful by themselves. To move around and perform actions, these robots generally require a human teleoperator or an already explored/mapped environment with pre-programmed instructions.</p><p>The goal is to move away from this toward robots as intelligent agents that can observe, understand, map, and navigate unknown environments to achieve user goals described in natural language.</p><p>Two promising approaches stand out:</p><ol><li><strong>Model Context Protocol (MCP)</strong>: A teleoperation node (or bridge) can push values to the /cmd_vel ROS topic, which controls the robot’s velocity commands. This layer works on top of well-calibrated underlying policies and motors. The core idea is to give an LLM tools to publish values to ROS topics/services, while also discovering available topics and their message formats. This design has been implemented in the open-source project <a href="https://github.com/robotmcp/ros-mcp-server"><strong>ROS-MCP server</strong></a> (which connects LLMs like Claude, GPT, or Gemini to existing ROS 1/2 robots via the Model Context Protocol, often using rosbridge for bidirectional communication without modifying the robot’s core code).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YmXKbFj_YLv2wGg_2o-bQw.png" /><figcaption>Architecture of the ROS-MCP server</figcaption></figure><p><strong>2. Vision-Language-Action Models (VLAs)</strong>: These are essentially Large Language Models (LLMs) adapted for robot control. While standard LLMs process text and Vision-Language Models (VLMs) add image understanding, VLAs further extend this by accepting text, images, and the robot’s current state (proprioception, etc.) as inputs to directly predict robot actions. Architecturally, they leverage powerful transformer-based models pre-trained on internet-scale data. To output physical behavior, they either map actions to discrete tokens in the model’s vocabulary or use a specialized action head — often based on diffusion or flow matching — to translate abstract reasoning into continuous, realistic motion.</p><p>Relevant demo:</p><p><a href="https://www.youtube.com/watch?v=8dZUOo5xWFw">https://www.youtube.com/watch?v=8dZUOo5xWFw</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8e0aa7ef5b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I made a robot map an unknown room just though natural language]]></title>
            <link>https://medium.com/@bharat.jain9793knp/how-i-made-a-robot-map-an-unknown-room-just-though-natural-language-537db57c12ad?source=rss-28e5b72287b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/537db57c12ad</guid>
            <category><![CDATA[autonomous-navigation]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Bharat Jain]]></dc:creator>
            <pubDate>Wed, 01 Apr 2026 18:43:47 GMT</pubDate>
            <atom:updated>2026-04-01T18:43:47.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXKPQHtYrjDB1ubo9Xv0QA.png" /></figure><p>I typed “Please map a simple room for me using the tugbot robot” into my terminal. A few seconds later, Gazebo launched, RViz opened, and a robot started driving around a simulated room, dodging obstacles, building a map on its own. No joystick. No coordinate commands. No manual terminal juggling.</p><p>This is what I’ve been working on with the <a href="https://github.com/robotmcp/ros-mcp-server">ROS-MCP server</a>, and I want to walk you through how it works, why it matters, and how you can try it yourself.</p><p>Here’s the full video walkthrough if you want to see it in action:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FeL39sndIMVg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeL39sndIMVg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FeL39sndIMVg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9af901c8edc94ecdeb14cc7972c6dc8/href">https://medium.com/media/d9af901c8edc94ecdeb14cc7972c6dc8/href</a></iframe><h3>The problem with how robots explore today</h3><p>Exploration and navigation in robotics usually involves two steps:</p><ol><li>Building a map of the environment through manual exploration</li><li>Choosing a point in the map for the robot to navigate to</li></ol><p>Both of these steps need a human in the loop. Someone has to sit there with a game controller or a teleop_twist_keyboardnode, manually driving the robot around the room while SLAM constructs the map in the background. Once the map is done, someone has to specify exact coordinates for the robot to go to.</p><p>That’s fine for a lab demo. But if you actually want robots that are useful in the real world, this workflow falls apart fast. You can’t hand a PS4 controller to every person who buys a home robot and expect them to map their apartment before the robot can do anything.</p><p>I’m interested in a different kind of robot. The kind where you just say “Go to the red sofa in the living room” and the robot figures out the rest: mapping the space, understanding what’s in it, and getting itself there. We’re not fully there yet, but what I built is a meaningful step in that direction.</p><h3>The chicken and egg problem in mapping</h3><p>The thing that makes autonomous exploration tricky is almost embarrassingly simple.</p><p>A robot can’t navigate to a place without a map. But to build a map, the robot needs to move around the place. You can’t have one without the other.</p><p>This is where SLAM (Simultaneous Localization and Mapping) comes in. The robot uses its sensors, usually LiDAR and sometimes depth cameras, to observe its surroundings. From those observations, it builds a map of the nearby area while simultaneously estimating where it is within that map. It keeps correcting its position estimate as it gets new observations. So the map and the robot’s position are being figured out at the same time.</p><p>SLAM solves the localization-mapping loop. But it doesn’t solve the “where should the robot go next?” problem. That’s a separate question, and traditionally, the answer has been: wherever the human drives it.</p><h3>Frontier exploration: letting the robot decide where to go</h3><p>The algorithm that removes the human from this loop is called frontier exploration, specifically Wavefront Frontier Detection.</p><p>Here’s the idea. At any point during mapping, the map has three types of cells:</p><ul><li><strong>Free space</strong>: areas the robot has observed and confirmed are empty. It can drive here.</li><li><strong>Occupied space</strong>: areas with obstacles or walls. The robot can’t go here.</li><li><strong>Unknown space</strong>: areas the robot hasn’t seen yet.</li></ul><p>The boundary between free space and unknown space is called a “frontier.” Frontiers are interesting because they’re places where, if the robot drives toward them, it will see new parts of the environment.</p><p>So the algorithm works like this: find the nearest frontier, drive toward it, and once you get there, the map expands because you can now see further. Repeat. The map is considered complete when there are no frontiers left, meaning everything reachable has been observed.</p><p>It’s a simple idea, but it works surprisingly well. The robot systematically covers the environment without anyone telling it where to go.</p><h3>The gap between “it works” and “it’s easy to use”</h3><p>This is where I got frustrated.</p><p>To actually run autonomous mapping with ROS2, you need to launch a simulation, start a SLAM node, spin up the navigation stack (Nav2), run the frontier exploration node, and keep track of all of these across multiple terminals. Each one has its own launch file, its own parameters, its own failure modes.</p><p>There’s no ROS command that says “explore this room and build me a map.” You have to know which nodes to run, in what order, and how they connect.</p><p>That’s the gap I wanted to close.</p><h3>ROS-MCP server: giving LLMs access to ROS tools</h3><p>The <a href="https://github.com/robotmcp/ros-mcp-server">ROS-MCP server</a> is an open-source project I contribute to. It bridges LLMs (like Claude) and ROS2-based robots using the Model Context Protocol (MCP).</p><p>MCP is a standard for giving AI models access to external tools. The ROS-MCP server exposes ROS2 functionality (publishing to topics, calling services, launching nodes, reading sensor data) as MCP tools. So when Claude is connected to the ROS-MCP server, it can actually interact with a ROS2 system, not just talk about it.</p><p>But having tools isn’t enough. The LLM also needs to know <em>what to do</em> with those tools for a given task. That’s where skills come in.</p><h3>Skills: procedural knowledge for LLMs</h3><p>A “skill” in this context is a markdown file that contains step-by-step instructions for accomplishing a specific task using the available MCP tools. Think of it as a recipe.</p><p>For autonomous mapping, I wrote a skill file (skill.md) that tells the LLM:</p><ol><li>Which simulation to launch (and how)</li><li>How to start the SLAM node</li><li>How to bring up the navigation stack</li><li>How to run the frontier exploration algorithm</li><li>What to monitor and when the mapping is complete</li></ol><p>The skill file lives in a .claude/skills/ directory. When you give Claude a command like &quot;map this room,&quot; Claude reads the relevant skill, understands the sequence of operations, and starts executing them using the ROS-MCP tools.</p><p>The LLM isn’t doing anything magical here. It’s following a well-defined procedure. But the fact that you can trigger all of it with a single English sentence is what makes this useful. You don’t need to know the ROS2 commands. You don’t need five open terminals. You just tell it what you want.</p><h3>How it actually works, step by step</h3><p>Let me walk through what happens when you type “Please map a simple room for me using the tugbot robot”:</p><p><strong>1. Claude reads the autonomous mapping skill</strong></p><p>It finds the skill.md file and loads the instructions. This tells it which packages to use, which nodes to launch, and in what order.</p><p><strong>2. The simulation launches</strong></p><p>Claude uses the ROS-MCP tools to launch Gazebo with the specified world (in this case, a simple room with an obstacle and four walls) and the tugbot robot.</p><p><strong>3. SLAM starts</strong></p><p>The SLAM node starts processing LiDAR data from the simulated robot and begins constructing an occupancy grid map.</p><p><strong>4. Navigation stack comes up</strong></p><p>Nav2 launches, which gives the robot the ability to plan paths and drive to specific goal positions while avoiding obstacles. The costmap layers (you can see these as blue regions around walls in RViz) penalize the robot for getting too close to obstacles.</p><p><strong>5. Frontier exploration begins</strong></p><p>The frontier detection algorithm identifies unknown regions at the edges of the current map and sends goal positions to Nav2. The robot drives toward frontiers, expanding the map as it goes.</p><p><strong>6. The robot explores until done</strong></p><p>This loop continues until no frontiers remain. At that point, the entire reachable space has been mapped, and the process is complete.</p><p>In the video, you can watch this happen in real time. The robot gets stuck at one point near an obstacle, figures its way out, and continues exploring. The gray areas in RViz are explored free space, the black lines are walls and obstacles, and the frontiers keep shrinking until the map is fully covered.</p><h3>Trying it yourself</h3><p>If you want to replicate this, here’s what you need:</p><p>The autonomous mapping package I put together contains the simulation environments, robot configurations (TurtleBot3 Burger and Tugbot work out of the box), and the frontier exploration setup. It’s available in my fork of the ROS-MCP demo server. I’ll be making a PR to the main repo so it’s available there too.</p><p>You’ll also need:</p><ul><li>A working ROS2 setup (I used an Ubuntu VM on my MacBook)</li><li>The ROS-MCP server installed and configured</li><li>Claude Code running on your machine (this is the LLM client that connects to the ROS-MCP server)</li><li>The autonomous mapping skill file placed in your .claude/skills/ directory</li></ul><p>Once everything is set up, you can try different environments. The package comes with a few pre-built worlds, but you can also add your own Gazebo worlds and robot configurations.</p><p>In the video, I first mapped a simple single-room environment, then switched to a more complex multi-room layout. Both worked with just a natural language command.</p><h3>What’s actually happening under the hood</h3><p>I want to be clear about what the LLM is and isn’t doing here.</p><p>The LLM is not running the SLAM algorithm. It’s not computing frontiers. It’s not planning paths. All of that is handled by well-established ROS2 packages: slam_toolbox for SLAM, Nav2 for navigation, and m-explore (or a similar frontier exploration package) for frontier detection.</p><p>What the LLM does is orchestrate. It reads the skill file, understands the sequence, and uses the ROS-MCP tools to launch and coordinate all these components. It’s the conductor, not the orchestra.</p><p>This separation is important. The robotics algorithms are battle-tested and reliable. The LLM’s job is to make them accessible through natural language, so you don’t need to be a ROS2 expert to use them.</p><h3>Why I keep working on this</h3><p>There’s a lot of hype around LLMs and robotics right now, and honestly, most of it jumps too far ahead. But this specific pattern, using LLMs as an orchestration layer on top of existing robotics tools, actually works today.</p><p>Someone who just wants to test their mapping setup in a new Gazebo world shouldn’t have to remember five launch commands and their parameter flags. And a student learning ROS2 can start here, with natural language, and peel back the layers when they’re ready.</p><p>The ROS-MCP server is open source. The skill files are just markdown. Nothing here is locked behind a proprietary system. If you have a different robot or a different mapping algorithm, you can write a new skill file and the same workflow applies.</p><p>I’m currently working on more complex skills, things like multi-floor mapping, semantic mapping (where the robot understands what objects are in the environment, not just where the walls are), and chaining exploration with task execution. The behaviour tree planner I’ve been working on for the DimensionalOS fellowship is related to this: getting LLMs to handle multi-step robot tasks that go beyond single commands.</p><p>If you’re into this kind of thing, I post tutorials and deep dives on my <a href="https://youtube.com/@BharatJain26">YouTube channel</a>. And if you want to contribute to the ROS-MCP server, the <a href="https://github.com/robotmcp/ros-mcp-server">GitHub repo</a> is open for PRs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=537db57c12ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>