Unit 2 ROS Command & Tool (2)_new
Unit 2 ROS Command & Tool (2)_new
& Tool
Date:07/02/2024
Operating System Firmware:
Ros Shell
• command-line interface (CLI) known as the "ROS shell" or simply "ROS
command line" (roscmd).
• This shell allows users to interact with ROS nodes, topics, messages,
services, parameters, and other ROS components.
• Users can use the shell to start and stop nodes, inspect topics, publish
and subscribe to messages, call services, and perform various other
tasks related to controlling and monitoring ROS-based robotic
systems.
Shell is broadly classified into two categories –
Step1
1. Open a terminal.
2. Navigate to your ROS workspace's ‘src’directory. (catkin_ws/src)
3. Create a new ROS package using catkin_create_pkg
command.
Step 2: Write the Python Node
Open the Python script in a text editor and write the code.
Here's an example code for making a turtle move in a
circular direction:
(Write code )