<?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 Surabhi Gade on Medium]]></title>
        <description><![CDATA[Stories by Surabhi Gade on Medium]]></description>
        <link>https://medium.com/@gade.su?source=rss-3c10de86ddf5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Surabhi Gade on Medium</title>
            <link>https://medium.com/@gade.su?source=rss-3c10de86ddf5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:31:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gade.su/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[How I Taught My 3D Printed Robot Math]]></title>
            <link>https://medium.com/@gade.su/how-i-taught-my-3d-printed-robot-math-e40b554355a6?source=rss-3c10de86ddf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e40b554355a6</guid>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[mechatronics]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[arduino]]></category>
            <dc:creator><![CDATA[Surabhi Gade]]></dc:creator>
            <pubDate>Mon, 09 Feb 2026 00:40:05 GMT</pubDate>
            <atom:updated>2026-02-09T00:40:05.634Z</atom:updated>
            <content:encoded><![CDATA[<p>From manual servo sliders to coordinate-based control</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXvWxI8O89J2i8HxDUCgow.png" /></figure><p>This project started as a back-to-basics exercise controlling a simple 3D printed 5 DOF robotic arm. It eventually ended as a full inverse kinematics controlled system.</p><p>I selected a 5 DOF design optimized for micro servos. These designs are practical because they use affordable <a href="https://www.amazon.com/dp/B07NV7SD3F?ref=ppx_pop_dt_b_product_details&amp;th=1">DM90S</a> or SG90S servos and print easily on machines like the Prusa MK4S. Instead of designing everything from scratch, I began with an open-source <a href="https://github.com/iuliaferoli/robot_arm/tree/main/Part_6/STL">3D printable robot arm</a> model.</p><blockquote><strong>Step 1: The Design</strong></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtStpkvQoYYw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtStpkvQoYYw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtStpkvQoYYw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ebff8e484d9905f28ce7fd3f4010bee/href">https://medium.com/media/8ebff8e484d9905f28ce7fd3f4010bee/href</a></iframe><p>I printed the parts in PLA with 15% infill to keep the structure lightweight. This is important because micro servos cannot handle excessive load.</p><p>Initially, I assumed using a ready-made design from the internet would simplify the process. That assumption changed during assembly.</p><p>When I started fitting the components, I realized:</p><ul><li>The servo horns I had were slightly larger than the ones assumed in the design.</li><li>They did not fit properly into the printed servo mounts.</li><li>The BaseSpin part could not properly accommodate even the smaller horn.</li><li>The gripper horn placement required slight modification.</li><li>The base was too lightweight and unstable since I did not want to permanently fix it to the table.</li></ul><p>This highlighted an important lesson. Compatibility between CAD design and physical components is critical.</p><p>I went back to the CAD model and customized:</p><ul><li>Servo horn interfaces</li><li>Mount tolerances</li><li>Gripper alignment</li><li>Base Spin with customized horn</li><li>Since the base was lightweight, I redesigned it to allow additional weight at the bottom to improve stability.</li></ul><p>After modifying the design, I reprinted the affected parts and reassembled the robot.</p><blockquote><strong>Step 2: The Hardware and Electronics</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*17EzcyPBrtLpaoeVQhkSew.jpeg" /></figure><ol><li>The brain of the system was an Arduino Nano.</li></ol><ul><li>It is compact.</li><li>It generates reliable PWM signals.</li><li>It is easier to integrate into the robot base.</li><li>It avoids bulky wiring compared to an Arduino Uno.</li></ul><p>Initially, I tested using an Arduino Uno with a breadboard. However, the bread board and Uno wiring restricted the robot’s rotation and reduced mechanical freedom. I switched to the Nano for a cleaner and more integrated setup.</p><p>2. I used 4 DM90S servos and 1 SG90 servo with 180 degree control(Both are suitable for lightweight robotic arms).</p><p>Before mounting the servos into the structure, I moved all of them to 90 degrees using a simple Arduino sketch. Centering the servos before assembly ensures:</p><ul><li>Easier mechanical alignment</li><li>Predictable hardcoded angles during testing</li></ul><p>3. Power System</p><p>Servos require significant current, especially when multiple joints move simultaneously. USB power from a laptop is not sufficient.</p><p>I used:</p><ul><li>An external power bank</li><li>A <a href="https://www.amazon.com/dp/B0F59QZRQ6?ref=ppx_yo2ov_dt_b_fed_asin_title&amp;th=1">decoy or trigger board</a> to ensure stable regulated 5V output</li></ul><p>All grounds between the Arduino Nano and the external supply were connected together to maintain a common reference.</p><p>4. Pin Mapping</p><p>The servo signal wires were connected as follows:</p><ul><li>Base servo → D3</li><li>Shoulder servo → D5</li><li>Elbow servo → D6</li><li>Wrist servo → D9</li><li>Gripper servo → D10</li></ul><p>At this stage, the robot was mechanically stable and electrically functional. The next phase was testing basic hardcoded angle control.</p><blockquote><strong>Step 3: Manual Control</strong></blockquote><p>Initially, I wrote a simple script to control the servos directly.</p><p>To pick up an object, I had to guess. <em>“Okay, lower the shoulder… a bit more… now extend the elbow… oops, too far, now the gripper is pointing up weirdly.”</em></p><p>It was pure trial and error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IvhFyr_MG7ljAA1aus7MWw.gif" /></figure><p>Later, I built a Python-based GUI with sliders and also developed a simple Android app that allowed me to control each servo interactively. I could move every joint individually and observe how the arm responded in real time. All the code files for this project are available on my <a href="https://github.com/surabhigade/Robot-arm-5dof">GitHub repository</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPIWgKMBzE74&amp;type=text%2Fhtml&amp;schema=youtu&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPIWgKMBzE74" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/71b4da6f2c32835a453075863702fbea/href">https://medium.com/media/71b4da6f2c32835a453075863702fbea/href</a></iframe><p>All of this worked, but it wasn’t smart. The arm was only following angle commands, then I realized that to make this a robot model, I could add <strong>Inverse Kinematics</strong>.</p><blockquote><strong>Step 4: The Math (Forward vs. Inverse Kinematics)</strong></blockquote><p>This was the biggest hurdle.</p><ul><li><strong>Forward Kinematics (Easy):</strong> You know the angles; you calculate where the hand is.</li><li><strong>Inverse Kinematics (Hard):</strong> You know where the hand should be; you calculate the angles to get there.</li><li>Instead of manually writing:</li></ul><pre>shoulder.write(62)<br>elbow.write(104)</pre><p>I wanted to say:</p><pre>Move to (X, Y, Z) with this wrist pitch.</pre><p>To achieve that, I built a Python-based controller that allows me to:</p><ul><li>Enter real-world Cartesian coordinates (X, Y, Z)</li><li>Visualize the motion in a live 3D simulation</li><li>Convert that desired pose into servo motor commands</li><li>Send those commands to the Arduino</li></ul><p>Instead of manually adjusting joint angles, I now command position in space.</p><p>I shifted all heavy computation from Arduino to Python because:</p><ul><li>Easier access to math libraries</li><li>Better visualization tools</li><li>GUI capability</li><li>Faster debugging and iteration</li></ul><p>Arduino became a <strong>servo execution controller only</strong>.</p><p>At the top of the script, I defined the physical geometry of the robot. These values are measured in millimeters from the real robot.</p><ul><li>L_SHOULDER: Length from shoulder joint to elbow</li><li>L_ELBOW: Length from elbow to wrist</li><li>L_WRIST: Length from wrist to gripper tip</li><li>SHOULDER_HEIGHT: Vertical offset from ground to shoulder pivot</li></ul><p>These parameters are critical. If they are inaccurate, the inverse kinematics solution will not match physical motion.</p><p>Also defined:</p><pre>SERIAL_PORT<br>BAUD_RATE</pre><p>These parameters allow the software to communicate with the Arduino over USB.</p><p>The system uses:</p><ul><li>Homogeneous transformation matrices</li><li>Forward kinematics</li><li>Jacobian-based inverse kinematics</li><li>Linear algebra and pseudo-inverse solving</li></ul><p><strong>1. Function </strong><em>get_transformation_matrix</em> <strong>:</strong></p><pre>get_transformation_matrix(theta, d, a, alpha)</pre><p>This builds a 4x4 homogeneous transformation matrix.</p><p>Mathematically, each link is described using four DH parameters:</p><ul><li>θ: Joint rotation</li><li>d: Offset along previous Z</li><li>a: Link length</li><li>α: Twist angle</li></ul><p>The matrix has the structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/126/1*dg9lUlu8RPZnuFgpWKZEdg.png" /></figure><p>Where:</p><ul><li>R is a 3x3 rotation matrix</li><li>P is a translation vector</li></ul><p>Each joint contributes one such matrix.</p><p>A robot arm is a chain of coordinate frames. To know where the end effector is, we must multiply all transformations in sequence.</p><p><strong>2. Function </strong><em>forward_kinematics_chain </em><strong>:</strong></p><pre>forward_kinematics_chain(thetas)</pre><p>Takes Input: Joint angles in radians.</p><p>Processes:</p><ul><li>Build transformation matrices for each joint</li><li>Multiply them sequentially:</li></ul><pre>T_total = T01 @ T12 @ T23 @ T34</pre><ul><li>Extract end effector position</li></ul><p>Outputs:</p><ul><li>Position of every joint</li><li>Final tip coordinates</li></ul><p>This function powers both:</p><ul><li>Visualization</li><li>Error calculation for inverse kinematics</li></ul><p><strong>3. Function </strong><em>inverse_kinematics_jacobian</em><strong>:</strong></p><pre>inverse_kinematics_jacobian(target_pos, target_pitch_deg)</pre><p>Here Problem being solved is:</p><p>Given a target (X, Y, Z, Pitch), find joint angles that reach it.</p><p>There is no simple closed-form equation for this arm configuration, so I implemented a numerical solver.</p><p>Step 1: Initial Guess</p><p>The base angle is estimated using:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/1*a2zg4qFWeNxcp3UOKvD-ww.png" /></figure><p>The remaining joints start from reasonable default values.</p><p>This gives the solver a starting configuration.</p><p>Step 2: Compute Current Pose</p><p>Using forward kinematics, I compute:</p><ul><li>Current X, Y, Z</li><li>Current pitch (sum of wrist chain angles)</li></ul><p>Step 3: Compute Error Vector</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*ym1reBAfI_n58yqUqPslow.png" /></figure><p>This vector represents how far the robot is from the desired pose.</p><p>Step 4: Build the Jacobian Matrix</p><p>The Jacobian describes how small changes in joint angles affect the end effector.</p><p>Instead of deriving it analytically, I compute it numerically:</p><ul><li>Slightly perturb one joint</li><li>Measure how position changes</li><li>Approximate the derivative</li></ul><p>This builds a 4x4 matrix mapping:</p><p>Joint velocity → End effector velocity</p><p>Step 5: Solve Using Pseudo-Inverse</p><p>To reduce error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/110/1*4zdm7XtDTDfZ23camxDmyg.png" /></figure><p>Where:</p><ul><li>J^+ is the Moore–Penrose pseudo-inverse</li><li>e is the error vector</li></ul><p>Then update:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/1*B0C056UdxYHxzbCNfV58rQ.png" /></figure><p>Where α is a learning rate.</p><p>This process runs iteratively up to 50 times.</p><p>The result is a converged joint configuration that reaches the target.</p><p>Step 6: Safety Constraints</p><p>Mechanical limits are enforced using:</p><pre>np.clip()</pre><p>This prevents unrealistic solutions like extreme rotations that could damage hardware.</p><p>After solving in radians, the angles are converted to servo-friendly degrees with necessary offsets.</p><p>One major improvement I made was separating <strong>calculation</strong> from <strong>execution</strong>.</p><p>Instead of instantly moving the robot:</p><ol><li>I first preview the motion in 3D.</li><li>The system shows the exact pose it will take.</li><li>Only after confirming visually do I press “MOVE ROBOT.”</li></ol><p>This prevents sudden or unsafe movements and gives me full control.</p><p>I also implemented a reset feature. With one click, the robot returns to its upright home position. This acts as a quick recovery mechanism if the robot reaches an awkward configuration.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmBm5RPIf9mw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmBm5RPIf9mw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmBm5RPIf9mw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e134fedbf4a1fdca03820f1417d565e8/href">https://medium.com/media/e134fedbf4a1fdca03820f1417d565e8/href</a></iframe><blockquote><strong>What’s Next:</strong></blockquote><p>Next, I plan to build a digital twin of this arm in NVIDIA Isaac Sim.</p><p>The goal is to simulate physics accurately, test trajectories safely, and explore motion planning and learning-based control.</p><p>From manual control<br>To mathematical control<br>To intelligent simulation-driven robotics.</p><blockquote><strong>Closing Thoughts: </strong>Building this forced me to truly understand kinematics, Jacobians, and the bridge between simulation and hardware. It transformed the arm from a hobby build into a structured robotics system.</blockquote><p>Feel free to share feedback, suggestions, or similar projects . I’d love to learn from others working in this space.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e40b554355a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From URDF to Training the robot]]></title>
            <link>https://medium.com/@gade.su/from-urdf-to-training-the-robot-9e5818686f05?source=rss-3c10de86ddf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e5818686f05</guid>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[quadruped-robot]]></category>
            <category><![CDATA[isaac-sim]]></category>
            <category><![CDATA[isaac-lab]]></category>
            <category><![CDATA[robotics]]></category>
            <dc:creator><![CDATA[Surabhi Gade]]></dc:creator>
            <pubDate>Thu, 22 Jan 2026 19:09:21 GMT</pubDate>
            <atom:updated>2026-01-22T20:23:49.711Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>From URDF to Training the Spiderbot to Walk</strong></h3><blockquote>Part 2 of the series: From .urdf File to Teaching a Robot to Walk in IsaacSim</blockquote><p>In <a href="https://medium.com/p/4b2a01b11cbd">Part 1</a>, I focused on preparing the robot’s mechanical structure, starting from STL files, assembling the CAD model in Fusion 360, and converting it into a clean URDF.</p><p>In this part, the focus shifts from structure to motion. The goal here is to import the URDF into NVIDIA Isaac Sim, set up a stable simulation environment, and begin training the quadruped robot to walk using Isaac Lab.</p><blockquote>Setting Up the Environment (Ubuntu 24.04)</blockquote><p>I used <strong>Ubuntu 24.04</strong> as the development environment for this project. High-level setup steps:</p><ul><li>Before installing Isaac Sim, I first ran the <strong>NVIDIA compatibility checker</strong> to verify whether my system met the hardware requirements. The tool indicated that I needed to upgrade both <strong>RAM and VRAM</strong>. I upgraded the system RAM, but my GPU did not meet the recommended VRAM requirement.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*NoXTNveoJQWZApNAeWtKRw.png" /></figure><ul><li>Despite this limitation and the warning from the compatibility checker, I proceeded with installing <a href="https://docs.isaacsim.omniverse.nvidia.com/5.1.0/installation/download.html"><strong>NVIDIA Isaac Sim</strong></a> and <a href="https://isaac-sim.github.io/IsaacLab/main/source/setup/installation/index.html"><strong>Isaac Lab</strong></a> by carefully following the official documentation. After installation, I verified the setup by launching the simulator once to ensure it ran correctly.</li></ul><p>This setup step required careful version matching, especially between the OS, drivers, and Isaac Sim release.</p><blockquote>Importing the URDF into Isaac Sim</blockquote><p>Once the environment was ready, the next step was importing the URDF model.</p><p>The steps I followed were:</p><ul><li>Loaded the URDF into Isaac Sim.</li><li>Selected <strong>“Movable Base”</strong> while importing the model.</li><li>Kept all other import settings as default (referencing <a href="https://docs.isaacsim.omniverse.nvidia.com/5.1.0/importer_exporter/ext_isaacsim_asset_importer_urdf.html">NVIDIA’s official documentation</a> for details).</li><li>Visually verified that all joints were correctly imported.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ASL_14DB9OIeyYk0G_m7JQ.gif" /></figure><p>At this stage, the robot appeared correctly in the simulation environment, with all <strong>12 actuated joints</strong> visible and controllable.</p><blockquote>Configuring Physics and Robot Properties</blockquote><p>Before attempting any training, the robot needed to behave realistically in simulation.</p><p>The key configuration steps I followed were:</p><ul><li>Created a ground plane.</li><li>Ensured the robot could stand stably before applying motion.</li><li>Used the Physics Inspector tool to verify that all joints were moving correctly.</li><li>Set appropriate joint limits for all actuators.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WT1sB7ckdLIp4pfPMleSLA.gif" /></figure><p>With this, the robot was physically ready to be used for training with Isaac Lab.</p><blockquote>Creating the Asset Configuration in Isaac Lab</blockquote><p>To make the robot accessible to Isaac Lab, I added a custom asset file (spiderbot.py) inside the Isaac Sim assets directory and registered it as an ArticulationCfg.</p><p>This file:</p><ul><li>Loads the robot from a USD path</li><li>Defines its physical properties and initial state</li><li>Defines the joint actuators</li></ul><p>This allowed the robot to be instantiated directly inside training environments.<br>All related scripts are available in my <a href="https://github.com/surabhigade/spdrbot_project">GitHub repository</a>.</p><blockquote>Setting Up Isaac Lab for Training</blockquote><p>With the robot stable in simulation, I moved on to configuring Isaac Lab.</p><p>I activated the Isaac Lab virtual environment and ran the ./isaaclab.sh setup script. During the setup, I selected the following options:</p><ul><li>Task type: External</li><li>Isaac Lab workflow: Direct, single-agent</li><li>RL libraries: rsl_rl and skrl</li><li>RL algorithms: AMP and PPO</li></ul><p>After this, the project folder was created in the home directory. By default, Isaac Lab provides files for the Cartpole example, so I modified the configuration to use my SpiderBot instead.</p><p>The main files I changed were:</p><p>1. spdrbot_project_env.py- Defining Robot Behavior</p><p>This file defined how the SpiderBot interacted with the world: how it acted, what it observed, what was rewarded, and when an episode ended. This file became the contract between Isaac Sim’s physics engine and the reinforcement learning policy.</p><ul><li>In _apply_action(), I scaled the policy’s normalized outputs and converted them into joint position targets. The robot did not jump to poses, it had to physically move through its actuators.</li><li>In _get_observations(), I provided base linear and angular velocity, body orientation via projected gravity, joint positions, joint velocities, and the last action. This gave the policy the minimum state needed for balance and coordinated motion.</li><li>In compute_rewards(), I encoded what “good walking” meant: forward motion, upright posture, stable height, and active legs, while penalizing wobbling, sideways drift, and abrupt actions. This reward structure was what produced the walking gait.</li><li>In _get_dones(), I terminated the episode if the robot collapsed or flipped over, teaching the policy that falling was failure.</li><li>In _reset_idx(), I added small noise to the initial joint positions so the robot learned a stable gait instead of memorizing a single starting pose.</li></ul><p>This file defined the behavior I wanted the robot to learn. The gait was not scripted, it emerged from the physics and the rewards I designed.</p><p>2. spdrbot_project_env_cfg.py- Global Training Configuration</p><p>This file defined the global training setup for the spiderbot: How fast the simulation ran, how many robots trained in parallel, and which robot was used.</p><ul><li>I replaced the default Cartpole robot with my spiderbot using SPDRBOT_CFG.</li><li>I set the physics timestep to 120 Hz with a decimation of 4, giving a 30 Hz control loop.</li><li>I trained using 1024 parallel environments on the GPU for faster learning.</li><li>I matched the action (12) and observation (45) sizes with the environment logic.</li><li>I exposed key reward scales, termination height, and action scaling so I could tune learning without changing the main environment code.</li></ul><p>3. __init__.py</p><p>In this file, I registered my spiderbot environment with Gym so it could be used by any RL algorithm or training script.</p><p>I linked it to the environment class (SpdrbotProjectEnv) and the configuration (SpdrbotProjectEnvCfg).</p><p>I also adjusted the policy iterations and training epochs based on my experiments.<br>With this, the SpiderBot environment became fully compatible with Isaac Lab’s RL pipelines.</p><blockquote>Training the Robot to Walk</blockquote><p>To start training, I ran the train.py script.</p><p>After training completed, I ran play.py to evaluate the learned policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ax6qMgqT8xQdyk2eycmYlQ.gif" /></figure><p>Over time, the robot learned a stable walking gait, maintaining balance while moving forward.</p><blockquote>Challenges Faced</blockquote><p>Some of the main challenges were:</p><ul><li>The robot was initially unstable and shaking even after training, which I fixed by tuning joint stiffness and damping and adding penalties for rapid motions.</li><li>Over time, the robot started leaning to one side and dragging its legs. I corrected this by: Adjusting the reward function to encourage leg lifting and Adding stronger rewards for base stability.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_sjC-AXb1R-ScLVIswijZQ.gif" /></figure><p>These changes significantly improved gait symmetry and stability.</p><blockquote>What’s Next</blockquote><p>With basic walking achieved, the next steps include:</p><ul><li>Improving gait efficiency</li><li>Adding terrain variation</li><li>Exploring different gait patterns</li></ul><blockquote>Closing Thoughts</blockquote><p>This phase of the project marked the transition from a static robot model to a learning, moving system. Isaac Sim and Isaac Lab provided a powerful framework for training legged robots, but success heavily depended on having a clean URDF and a carefully tuned physics setup.</p><p>If you found this post helpful, I’d really appreciate your feedback or any suggestions you may have in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e5818686f05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From CAD to URDF: Preparing a 4-Legged Robot for Training]]></title>
            <link>https://medium.com/@gade.su/from-cad-to-urdf-preparing-a-4-legged-robot-for-training-4b2a01b11cbd?source=rss-3c10de86ddf5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b2a01b11cbd</guid>
            <category><![CDATA[fusion-360]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[robotics-automation]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[spiderbot]]></category>
            <dc:creator><![CDATA[Surabhi Gade]]></dc:creator>
            <pubDate>Wed, 14 Jan 2026 20:41:33 GMT</pubDate>
            <atom:updated>2026-01-14T20:41:33.436Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Part 1 : From STL Files to CAD Assembly in Fusion 360</blockquote><p>My goal with this project was simple: <strong>train a 4-legged robot to walk</strong><em>.</em> For this, I chose a quadruped spider-bot–style design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Enl1qpTrV2oVGa_9beabkg.png" /></figure><p>Instead of designing a quadruped completely from scratch, I decided to start with an existing <a href="https://www.thingiverse.com/thing:2204279"><strong>open-source, 3D-printable robot design</strong></a>. The idea was to reduce mechanical guesswork and focus more on learning, simulation, and control. I downloaded the robot parts as <strong>STL files</strong> from a open-source platform. This approach allowed me to:</p><ul><li>Skip early mechanical iterations</li><li>Work with a proven structure</li><li>Spend more time understanding kinematics and simulation workflows</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*w1jWlr3HYQs8WSxowcphDg.png" /><figcaption>Downloaded STL files for Spiderbot</figcaption></figure><p><strong><em>My takeaway:</em></strong><em> Reusing an existing design is a great way to move faster when your goal is learning, not manufacturing perfection.</em></p><p>STL files are great for printing, but not ideal for making design changes or defining joints. So the next step was importing all STL parts into <strong>Fusion 360</strong>. Inside Fusion 360, I:</p><ul><li>Imported each STL file as insert mesh in fusion 360</li><li>Converted mesh bodies into solid bodies</li><li>Cleaned up and renamed components</li><li>Organized parts so they could be assembled properly</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MoaLGpfu6YLYXa8cGjBHgA.gif" /></figure><p>This step took longer than expected. STL-to-solid conversion isn’t always clean, and some parts needed manual fixing. But once converted, it became much easier to define joints and understand how the robot would articulate.</p><p>After converting the parts, I assembled the full robot inside Fusion 360. This included aligning each leg with the main body and defining joint relationships correctly.</p><p>Watch The Full Assembly Process Here:<br><a href="https://youtu.be/e8589wii4Jg">https://youtu.be/e8589wii4Jg</a></p><blockquote>Part 2: CAD Assembly to URDF in Fusion 360</blockquote><p>To use the robot in simulators like Isaac Sim, I needed a <strong>URDF (Unified Robot Description Format)</strong> file.</p><p>To convert the Fusion 360 CAD assembly into a URDF, I followed the workflow provided in the <a href="https://github.com/syuntoku14/fusion2urdf"><strong>fusion2urdf</strong></a> GitHub repository, which enables direct URDF export from Fusion 360. I followed the instructions step by step:</p><ul><li>First, I cloned the repository and ran the required commands in the terminal to install and register the URDF exporter as a Fusion 360 add-in. Once installed, the exporter became available directly inside Fusion 360.</li><li>While preparing the CAD model for export, there were a few important constraints to keep in mind:</li></ul><ol><li><strong>Components cannot be nested</strong>. All links must exist at the same hierarchy level in Fusion 360.</li><li>The base link must be explicitly named <strong>base_link</strong>.</li><li>Having too many small components can lead to errors during URDF generation.</li></ol><ul><li>To simplify the model and avoid export issues, I combined each leg into <strong>three main links</strong>, grouping the servo motor geometry with the corresponding link. This significantly reduced complexity and resulted in a cleaner, more stable URDF.</li><li>Defining joints correctly is critical for a successful URDF export. While assigning joints in Fusion 360:</li></ul><ol><li><strong>Component 2 must be selected as the parent link</strong> (the link closer to the robot base in the kinematic chain).</li><li><strong>Component 1 must be the child link</strong>, which moves relative to the parent.</li><li>The joint type was set to <strong>revolute</strong> for all leg joints.</li></ol><ul><li>Once all links and joints were defined correctly, exporting the URDF was straightforward.</li></ul><ol><li>Select <strong>URDF Exporter</strong></li><li>Run the exporter script</li><li>Choose the desired output directory</li></ol><ul><li>Within a few seconds, a confirmation pop-up appeared indicating that the <strong>URDF file was successfully created</strong>.</li></ul><p>Once the URDF was generated, I performed some basic validation:</p><ul><li>Verified the total number of joints (12 actuated joints).</li><li>Checked link hierarchy and naming.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAzBepMbu9Yp9C2qYJr4xQ.gif" /></figure><p>At this point, the robot was structurally ready to be imported into a simulator.</p><blockquote>What’s Next: With the URDF ready, the next step was simulation and learning.</blockquote><p>The plan going forward:</p><ul><li>Install <strong>NVIDIA Isaac Sim and Isaac Lab</strong> on <strong>Ubuntu 24.04.</strong></li><li>Import the URDF into Isaac Sim.</li><li>Configure physics and environment.</li><li>Begin training the robot to walk.</li></ul><p>This process turned out to be an adventure of its own, and that’s what the <strong>next blog post</strong> will focus on.</p><blockquote>Closing Thoughts: If you’re working on legged robots or planning to simulate your own designs, spending time here is absolutely worth it.</blockquote><p>Feel free to share feedback, suggestions, or similar projects . I’d love to learn from others working in this space.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b2a01b11cbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>