<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: BALLA NAGA V VENKATA SATYA NARASIMHAMURTHY</title>
    <description>The latest articles on DEV Community by BALLA NAGA V VENKATA SATYA NARASIMHAMURTHY (@narasimhamurthy4616).</description>
    <link>https://dev.to/narasimhamurthy4616</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3665980%2Fd8b6c754-5061-4caa-8b76-64a1f9d975b4.jpeg</url>
      <title>DEV Community: BALLA NAGA V VENKATA SATYA NARASIMHAMURTHY</title>
      <link>https://dev.to/narasimhamurthy4616</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/narasimhamurthy4616"/>
    <language>en</language>
    <item>
      <title>ros turtlesim for beginners</title>
      <dc:creator>BALLA NAGA V VENKATA SATYA NARASIMHAMURTHY</dc:creator>
      <pubDate>Wed, 31 Dec 2025 05:57:50 +0000</pubDate>
      <link>https://dev.to/narasimhamurthy4616/ros-turtlesim-for-beginners-1h30</link>
      <guid>https://dev.to/narasimhamurthy4616/ros-turtlesim-for-beginners-1h30</guid>
      <description>&lt;p&gt;ros2 turtlesim&lt;br&gt;
the humble turtlesim is a beginer level simulation tool&lt;/p&gt;

&lt;p&gt;Hey everyone 👋 I’m Nagu, and this is my first blog post on the DEV Community!&lt;br&gt;
In this post, we’ll explore Turtlesim, a fun and simple simulator in ROS 2 (Robot Operating System 2) — perfect for beginners who want to start learning robotics and ROS commands.&lt;/p&gt;

&lt;p&gt;🚀 What is ROS 2 Humble?&lt;/p&gt;

&lt;p&gt;ROS 2 Humble Hawksbill is a popular Long-Term Support (LTS) version of ROS 2.&lt;br&gt;
It’s widely used for building and simulating robots — from simple mobile bots to advanced AI-driven systems.&lt;/p&gt;

&lt;p&gt;🐢 What is Turtlesim?&lt;/p&gt;

&lt;p&gt;Turtlesim is a lightweight simulator that shows a small turtle in a 2D world.&lt;br&gt;
It’s often the first step to understanding ROS concepts such as:&lt;/p&gt;

&lt;p&gt;Nodes 🧩 (independent programs)&lt;/p&gt;

&lt;p&gt;Topics 🗣️ (communication channels)&lt;/p&gt;

&lt;p&gt;Services ⚙️ (request/response system)&lt;/p&gt;

&lt;p&gt;Parameters ⚡ (settings and configurations)&lt;/p&gt;

&lt;p&gt;⚙️ Step 1: Install ROS 2 Humble&lt;/p&gt;

&lt;p&gt;If you haven’t installed ROS 2 yet, open your terminal and run:&lt;/p&gt;

&lt;p&gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y&lt;br&gt;
sudo apt install ros-humble-desktop&lt;br&gt;
Then source it: &lt;br&gt;
&lt;code&gt;source&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
/opt/ros/humble/setup.bash&lt;br&gt;
(Tip: Add this line to your .bashrc so it auto-loads every time you open a terminal)&lt;/p&gt;

&lt;p&gt;🧩 Step 2: Install Turtlesim&lt;/p&gt;

&lt;p&gt;sudo apt install ros-humble-turtlesim&lt;br&gt;
Check if it’s installed:&lt;/p&gt;

&lt;p&gt;ros2 pkg list | grep turtlesim&lt;br&gt;
note :sometimes ros2 command not found in terminal&lt;br&gt;
in that case it better to switch to root terminal by the below command&lt;/p&gt;

&lt;p&gt;sudo su&lt;br&gt;
🖥️ Step 3: Run Turtlesim&lt;/p&gt;

&lt;p&gt;Launch the turtlesim window:&lt;/p&gt;

&lt;p&gt;ros2 run turtlesim turtlesim_node&lt;br&gt;
A blue window will appear with a turtle in the center 🐢💙&lt;/p&gt;

&lt;p&gt;🎮 Step 4: Control the Turtle&lt;/p&gt;

&lt;p&gt;Open another terminal and run:&lt;/p&gt;

&lt;p&gt;ros2 run turtlesim turtle_teleop_key&lt;br&gt;
after clicks of some keys&lt;br&gt;
⬆️➡️⬇️⬅️&lt;/p&gt;

&lt;p&gt;Now use your arrow keys to move the turtle around.&lt;br&gt;
Congrats — you just published your first commands in ROS 2!&lt;/p&gt;

&lt;p&gt;🧠 Step 5: Explore Basic Commands&lt;/p&gt;

&lt;p&gt;List all active topics:&lt;/p&gt;

&lt;p&gt;ros2 topic list&lt;/p&gt;

&lt;p&gt;See messages being published: while you are controling the turtle by arrow keys&lt;/p&gt;

&lt;p&gt;ros2 topic echo /turtle1/cmd_vel&lt;/p&gt;




&lt;p&gt;linear:&lt;br&gt;
  x: 0.0&lt;br&gt;
  y: 0.0&lt;br&gt;
  z: 0.0&lt;br&gt;
angular:&lt;br&gt;
  x: 0.0&lt;br&gt;
  y: 0.0&lt;/p&gt;

&lt;h2&gt;
  
  
    z: -2.0
&lt;/h2&gt;

&lt;p&gt;linear:&lt;br&gt;
  x: 0.0&lt;br&gt;
  y: 0.0&lt;br&gt;
  z: 0.0&lt;br&gt;
angular:&lt;br&gt;
  x: 0.0&lt;br&gt;
  y: 0.0&lt;/p&gt;

&lt;h2&gt;
  
  
    z: 2.0
&lt;/h2&gt;

&lt;p&gt;WHEN YOU TOUCH THE EDGE OF THE WINDOW it publish to the&lt;/p&gt;

&lt;p&gt;turtlesim_node&lt;br&gt;
terminal&lt;br&gt;
[WARN] [1761550426.649414936] [turtlesim]: Oh no! I hit the wall! (Clamping from [x=11.120421, y=4.634281])&lt;/p&gt;

&lt;p&gt;Clear the screen:&lt;/p&gt;

&lt;p&gt;ros2 service call /clear std_srvs/srv/Empty&lt;br&gt;
Change the background color:&lt;/p&gt;

&lt;p&gt;ros2 param set /turtlesim background_r 200&lt;br&gt;
ros2 param set /turtlesim background_g 100&lt;br&gt;
ros2 param set /turtlesim background_b 150&lt;br&gt;
ros2 service call /clear std_srvs/srv/Empty&lt;br&gt;
💡 What You Learned&lt;/p&gt;

&lt;p&gt;✅ How to install and run ROS 2 Humble&lt;br&gt;
✅ How to launch and control Turtlesim&lt;br&gt;
✅ How to explore topics, services, and parameters&lt;br&gt;
the official website for ros&lt;/p&gt;

&lt;p&gt;This is just the beginning of your ROS 2 journey — next, we’ll write a Python node to move the turtle automatically!&lt;/p&gt;

&lt;p&gt;✍️ Final Words&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;br&gt;
If you enjoyed this post or found it helpful, leave a ❤️ and follow me for more tutorials on ROS 2, Ubuntu, and Ethical Hacking.&lt;br&gt;
and since it is my first ever blog please support me for more info&lt;/p&gt;

&lt;p&gt;“Don’t prove, just improve.” — Nagu&lt;/p&gt;

&lt;p&gt;Would you like me to write your next post script — the one about controlling Turtlesim using Python code&lt;br&gt;
see you soon guys&lt;/p&gt;

</description>
      <category>ros</category>
      <category>ros2</category>
      <category>turtlesim</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
