SlideShare una empresa de Scribd logo
1 de 50
Robot Operating System
Guide to
Command-Line Tools
1
AshwinRajendran
Start-up and Process
Launch Tools
2
roscore
It is a collection of nodes and programs that are pre-
requisites of a ROS-based system. You must have a roscore
running in order for ROS nodes to communicate.
Usage: $ roscore
3
rosrun
rosrun allows you to run an executable in an arbitrary
package from anywhere without having to give its full path
or cd/roscd.
Usage: $ rosrun package executable
4
roslaunch
Starts ROS nodes locally and remotely via SSH, as well as
setting parameters on the parameter server.
Usage: $ roslaunch package_name file.launch
5
Introspection and
Command Tools
6
rosnode
rosnode is a command-line tool for displaying debug
information about ROS Nodes, including publications,
subscriptions and connections.
Test connectivity to the node.
Usage: $ rosnode ping /node_name
rosnodeping
7
Display a list of current nodes.
Usage: $ rosnode list
rosnodelist
rosnodekill
Kill one or more nodes by name.
8
rosnodeinfo
Display information about a node, including publications
and subscriptions.
Usage: $ rosnode info /node_name
9
rosnodemachine
List nodes running on a particular machine.
Example: $ rosnode machine ninja.local
/talker-ninja.local-72266-1257921234733
/rosout
/listener-ninja.local-72615-1257921238320
10
rostopic
It is a tool for displaying debug information about
ROS Topics, including publishers, subscribers, publishing
rate, and ROS Messages.
Display messages published to a topic.
Usage: $ rostopic echo /topic_name
rostopicecho
11
Display the bandwidth used by a topic.
Usage: $ rostopic bw /topic_name
rostopicbw
rostopichz
Display the publishing rate of a topic. The rate reported is by
default the average rate over the entire time rostopic has
been running.
Usage: $ rostopic hz /topic_name
12
Print information about topic.
Usage: $ rostopic info /topic_name
rostopicinfo
rostopicfind
Find topics by type.
Example: $ rostopic find std_msg/String
13
Display topic type of a topic.
Usage: $ rostopic type /topic_name
rostopictype
rostopiclist
Display a list of current topics.
14
rostopicpub
Publish data to a topic.
Usage: $ rostopic pub <topic-name> <topic-type> [data...]
15
rosservice
It is a tool for listing and querying ROS Services.
List all the services that are currently available.
rosservicelist
16
Call a service from the command line.
Usage: $ rosservice call /service_name service-args
rosservicecall
rosservicenode
Display the name of the node that provides a particular
service.
Usage: $ rosservice node /service_name
17
Display the URI of a service. This is useful, for example, if
you wish to know what address a service is using.
Usage: $ rosservice uri /service_name
rosserviceuri
rosserviceargs
Print the arguments to a service.
Usage: $ rosservice args /service_name
Display all services of a particular type.
Example: $ rosservice find rospy_tutorials/AddTwoInts
rosservicefind
18
Display the type of a service.
Usage: $ rosservice type /service_name
rosservicetype
19
rosparam
It is a tool for getting and setting ROS Parameters on
the Parameter Server using YAML-encoded files.
Get a parameter value.
Usage: $ rosparam get parameter_name
rosparamget
20
Set a parameter to a value. parameter-value is required
unless --textfile or --binfile are specified.
Usage: $ rosparam set parameter_name value
rosparamset
rosparamload
Load parameters from a YAML file into the
specified [namespace] (defaults to /)
Usage: $ rosparam load dump.yaml
21
Delete a parameter value.
Usage: $ rosparam delete parameter_name
rosparamdelete
rosparamdump
Dump the YAML-formatted contents of the Parameter
Server to a file.
Usage: $ rosparam dump dump.yaml
Example:
$ rosparam dump -v gains.yaml /gains
dumping namespace [/gains] to file [gains.yaml]
/gains/i=1.0
/gains/p=1.0
/gains/d=1.0 22
rosparamlist
List all parameter names.
23
rosmsg/rossrv
rosmsg contains two command-line
tools: rosmsg and rossrv. rosmsg is a tool for displaying
information about ROS Message types. rossrv is a tool for
displaying information about ROS Service types.
Display a list of all messages.
rosmsglist
24
Display a list of all messages in a package.
rosmsgpackage
rosmsgpackages
Display a list of all packages with messages.
25
Display the fields in a ROS message type.
rosmsgshow
26
Filesystem
Management tools
27
rospack allows you to get information about packages.
Usage: $ rospack find [package_name]
rospack
28
Fixes path and pluginlib problems.
rospackprofile
roscd
roscd is part of the rosbash suite. It allows you to change
directory directly to a package or a stack.
Usage: $ roscd [package[/subdir]]
29
rosls is part of the rosbash suite. It allows you to ls directly
in a package by name rather than by absolute path.
Usage: $ rosls [package[/subdir]]
rosls
rosed
Open requested ROS file in a text editor.
Usage: $ rosed [package] [file]
30
Copy a file from one place to another.
Usage: $ roscp [package] [file] [destination]
roscp
roswtf
Displays a errors and warnings about a running ROS system
or launch file.
31
Creates a new ROS stack.
Usage: $ catkin create pkg [package name]
[depend1]..[dependN]
catkincreatepkg
catkin_make
Builds a ROS catkin workspace.
32
Logging tools
33
rosbag
The rosbag command-line tool provides functionality for
ROS bags.
It can record a bag, republish the messages from one or more
bags, summarize the contents of a bag, check a bag's
message definitions, filter a bag's messages based on a
Python expression, compress and decompress a bag and
rebuild a bag's index.
34
rosbag record subscribes to topics and writes a bag file with
the contents of all messages published on those topics. The
file contains interlaced, serialized ROS messages dumped
directly to a single file as they come in over the wire. This is
the most performance and disk-friendly recording format
possible. To further reduce disk usage, we can compress bag
files as they are created.
rosbagrecord
35
rosbag play reads the contents of one or more bag file, and
plays them back in a time-synchronized fashion. Time
synchronization occurs based on the global timestamps at
which messages were received.
rosbagplay
36
rosbag compress is a command-line tool for compressing
bag files.
rosbagcompress
rosbagdecompress
It is a command-line tool for decompressing bag files. It
automatically determines which compression format a bag
uses.
37
A tool that prints the information about a particular
transformation between a source frame and a target frame.
Usage: $ rosrun tf tf_echo <source_frame> <target_frame>
tf_echo
38
A tool for visualizing, inspecting, and replaying bag files.
Usage: $ rqt bag bag file.bag
rqt_bag
39
rqt_bag
40
Introspection &
Command Tools
41
A tool for viewing published topics in real time.
Usage: $ rqt
Plugin Menu->Topic->Topic Monitor
rqt_topic
42
Tool for publishing messages.
Usage: $ rqt
Plugin Menu->Topic->Message Publisher
rqtpublisher
43
Tool for calling services.
Usage: $ rqt
Plugin Menu->Service->Service Caller
rqt servicecaller
44
A tool for ROS specific process monitoring.
Usage: $ rqt
Plugin Menu->Introspection->Process Monitor
rqt_top
45
Tool for displaying graphs of running ROS nodes with
connecting topics.
Usage: $ rqt_graph
rqt_graph
46
Development
environments
&
Data Visualization
Tool
47
Two tools for accessing an xterm shell and python console
respectively.
Usage: $ rqt
Plugin Menu->Miscellaneous Tools->Shell
Plugin Menu->Miscellaneous Tools->Python
Console
rqt_shellandrqt_py_console
48
A tool to display image topics
Usage: $ rqt_image_view
rqt_image_view
49
Thank You!
50

Más contenido relacionado

La actualidad más candente

ROS+GAZEBO
ROS+GAZEBOROS+GAZEBO
ROS+GAZEBOicmike
 
An Introduction to ROS-Industrial
An Introduction to ROS-IndustrialAn Introduction to ROS-Industrial
An Introduction to ROS-IndustrialClay Flannigan
 
Lab-1-ROS-Intro.pdf
Lab-1-ROS-Intro.pdfLab-1-ROS-Intro.pdf
Lab-1-ROS-Intro.pdfcQuach1
 
ROS Based Programming and Visualization of Quadrotor Helicopters
ROS Based Programming and Visualization of Quadrotor HelicoptersROS Based Programming and Visualization of Quadrotor Helicopters
ROS Based Programming and Visualization of Quadrotor HelicoptersAtılay Mayadağ
 
First steps with Gazebo simulation for ROS
First steps with Gazebo simulation for ROSFirst steps with Gazebo simulation for ROS
First steps with Gazebo simulation for ROSSergey Matyunin
 
Flutter Tutorial For Beginners | Edureka
Flutter Tutorial For Beginners | EdurekaFlutter Tutorial For Beginners | Edureka
Flutter Tutorial For Beginners | EdurekaEdureka!
 
ROBOTICS AND ITS APPLICATIONS
ROBOTICS AND ITS APPLICATIONSROBOTICS AND ITS APPLICATIONS
ROBOTICS AND ITS APPLICATIONSAnmol Seth
 
Introduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry PiIntroduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry PiAhmad Hafeezi
 
Industrial robotics
Industrial roboticsIndustrial robotics
Industrial roboticsHome
 
Running Android on the Raspberry Pi: Android Pie meets Raspberry Pi
Running Android on the Raspberry Pi: Android Pie meets Raspberry PiRunning Android on the Raspberry Pi: Android Pie meets Raspberry Pi
Running Android on the Raspberry Pi: Android Pie meets Raspberry PiChris Simmonds
 
Presentation of robotics
Presentation of roboticsPresentation of robotics
Presentation of roboticsQaiserAnsari3
 
Robotics
RoboticsRobotics
Roboticskewins
 
Presentation IOT Robot
Presentation IOT RobotPresentation IOT Robot
Presentation IOT RobotVatsal N Shah
 

La actualidad más candente (20)

My ROS Experience
My ROS ExperienceMy ROS Experience
My ROS Experience
 
ROS+GAZEBO
ROS+GAZEBOROS+GAZEBO
ROS+GAZEBO
 
An Introduction to ROS-Industrial
An Introduction to ROS-IndustrialAn Introduction to ROS-Industrial
An Introduction to ROS-Industrial
 
Lab-1-ROS-Intro.pdf
Lab-1-ROS-Intro.pdfLab-1-ROS-Intro.pdf
Lab-1-ROS-Intro.pdf
 
Mapping mobile robotics
Mapping mobile roboticsMapping mobile robotics
Mapping mobile robotics
 
ROS Based Programming and Visualization of Quadrotor Helicopters
ROS Based Programming and Visualization of Quadrotor HelicoptersROS Based Programming and Visualization of Quadrotor Helicopters
ROS Based Programming and Visualization of Quadrotor Helicopters
 
Robotics ppt
Robotics pptRobotics ppt
Robotics ppt
 
robotics ppt
robotics ppt robotics ppt
robotics ppt
 
Robotics
RoboticsRobotics
Robotics
 
First steps with Gazebo simulation for ROS
First steps with Gazebo simulation for ROSFirst steps with Gazebo simulation for ROS
First steps with Gazebo simulation for ROS
 
Flutter Tutorial For Beginners | Edureka
Flutter Tutorial For Beginners | EdurekaFlutter Tutorial For Beginners | Edureka
Flutter Tutorial For Beginners | Edureka
 
ROBOTICS AND ITS APPLICATIONS
ROBOTICS AND ITS APPLICATIONSROBOTICS AND ITS APPLICATIONS
ROBOTICS AND ITS APPLICATIONS
 
Introduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry PiIntroduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry Pi
 
Industrial robotics
Industrial roboticsIndustrial robotics
Industrial robotics
 
Running Android on the Raspberry Pi: Android Pie meets Raspberry Pi
Running Android on the Raspberry Pi: Android Pie meets Raspberry PiRunning Android on the Raspberry Pi: Android Pie meets Raspberry Pi
Running Android on the Raspberry Pi: Android Pie meets Raspberry Pi
 
Presentation of robotics
Presentation of roboticsPresentation of robotics
Presentation of robotics
 
Robotics
RoboticsRobotics
Robotics
 
Presentation IOT Robot
Presentation IOT RobotPresentation IOT Robot
Presentation IOT Robot
 
ROBOTIC ARM
ROBOTIC ARMROBOTIC ARM
ROBOTIC ARM
 
Summary for Robotics
Summary for Robotics Summary for Robotics
Summary for Robotics
 

Similar a Guide to ROS tools

Appendix_C_ROS_Cheatsheet.pdf
Appendix_C_ROS_Cheatsheet.pdfAppendix_C_ROS_Cheatsheet.pdf
Appendix_C_ROS_Cheatsheet.pdfSTEN
 
LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7VCP Muthukrishna
 
Linux presentation
Linux presentationLinux presentation
Linux presentationNikhil Jain
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commandsJauhar Amir
 
Introduction to Data Mining with R and Data Import/Export in R
Introduction to Data Mining with R and Data Import/Export in RIntroduction to Data Mining with R and Data Import/Export in R
Introduction to Data Mining with R and Data Import/Export in RYanchang Zhao
 
Language Resource Processing Configuration and Run
Language Resource Processing Configuration and RunLanguage Resource Processing Configuration and Run
Language Resource Processing Configuration and Runmario_munoz
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3Gourav Varma
 
BITS: Introduction to Linux - Software installation the graphical and the co...
BITS: Introduction to Linux -  Software installation the graphical and the co...BITS: Introduction to Linux -  Software installation the graphical and the co...
BITS: Introduction to Linux - Software installation the graphical and the co...BITS
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scriptsPrashantTechment
 
35 ls Command Examples in Linux (The Complete Guide).pdf
35 ls Command Examples in Linux (The Complete Guide).pdf35 ls Command Examples in Linux (The Complete Guide).pdf
35 ls Command Examples in Linux (The Complete Guide).pdfMangesh Dhulap
 

Similar a Guide to ROS tools (20)

Appendix_C_ROS_Cheatsheet.pdf
Appendix_C_ROS_Cheatsheet.pdfAppendix_C_ROS_Cheatsheet.pdf
Appendix_C_ROS_Cheatsheet.pdf
 
LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7
 
Unix Basics Commands
Unix Basics CommandsUnix Basics Commands
Unix Basics Commands
 
lec1.docx
lec1.docxlec1.docx
lec1.docx
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Basic commands
Basic commandsBasic commands
Basic commands
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Introduction to Data Mining with R and Data Import/Export in R
Introduction to Data Mining with R and Data Import/Export in RIntroduction to Data Mining with R and Data Import/Export in R
Introduction to Data Mining with R and Data Import/Export in R
 
Basics of Linux
Basics of LinuxBasics of Linux
Basics of Linux
 
6202942
62029426202942
6202942
 
Language Resource Processing Configuration and Run
Language Resource Processing Configuration and RunLanguage Resource Processing Configuration and Run
Language Resource Processing Configuration and Run
 
ros2_humble_cheat_sheet2.pdf
ros2_humble_cheat_sheet2.pdfros2_humble_cheat_sheet2.pdf
ros2_humble_cheat_sheet2.pdf
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3
 
Directories description
Directories descriptionDirectories description
Directories description
 
Linux
LinuxLinux
Linux
 
Linux And perl
Linux And perlLinux And perl
Linux And perl
 
BITS: Introduction to Linux - Software installation the graphical and the co...
BITS: Introduction to Linux -  Software installation the graphical and the co...BITS: Introduction to Linux -  Software installation the graphical and the co...
BITS: Introduction to Linux - Software installation the graphical and the co...
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
35 ls Command Examples in Linux (The Complete Guide).pdf
35 ls Command Examples in Linux (The Complete Guide).pdf35 ls Command Examples in Linux (The Complete Guide).pdf
35 ls Command Examples in Linux (The Complete Guide).pdf
 
Basic Linux
Basic LinuxBasic Linux
Basic Linux
 

Último

National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfRajuKanojiya4
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the weldingMuhammadUzairLiaqat
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxVelmuruganTECE
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxachiever3003
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 

Último (20)

National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdf
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the welding
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptx
 
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptxDesigning pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptx
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 

Guide to ROS tools

  • 1. Robot Operating System Guide to Command-Line Tools 1 AshwinRajendran
  • 3. roscore It is a collection of nodes and programs that are pre- requisites of a ROS-based system. You must have a roscore running in order for ROS nodes to communicate. Usage: $ roscore 3
  • 4. rosrun rosrun allows you to run an executable in an arbitrary package from anywhere without having to give its full path or cd/roscd. Usage: $ rosrun package executable 4
  • 5. roslaunch Starts ROS nodes locally and remotely via SSH, as well as setting parameters on the parameter server. Usage: $ roslaunch package_name file.launch 5
  • 7. rosnode rosnode is a command-line tool for displaying debug information about ROS Nodes, including publications, subscriptions and connections. Test connectivity to the node. Usage: $ rosnode ping /node_name rosnodeping 7
  • 8. Display a list of current nodes. Usage: $ rosnode list rosnodelist rosnodekill Kill one or more nodes by name. 8
  • 9. rosnodeinfo Display information about a node, including publications and subscriptions. Usage: $ rosnode info /node_name 9
  • 10. rosnodemachine List nodes running on a particular machine. Example: $ rosnode machine ninja.local /talker-ninja.local-72266-1257921234733 /rosout /listener-ninja.local-72615-1257921238320 10
  • 11. rostopic It is a tool for displaying debug information about ROS Topics, including publishers, subscribers, publishing rate, and ROS Messages. Display messages published to a topic. Usage: $ rostopic echo /topic_name rostopicecho 11
  • 12. Display the bandwidth used by a topic. Usage: $ rostopic bw /topic_name rostopicbw rostopichz Display the publishing rate of a topic. The rate reported is by default the average rate over the entire time rostopic has been running. Usage: $ rostopic hz /topic_name 12
  • 13. Print information about topic. Usage: $ rostopic info /topic_name rostopicinfo rostopicfind Find topics by type. Example: $ rostopic find std_msg/String 13
  • 14. Display topic type of a topic. Usage: $ rostopic type /topic_name rostopictype rostopiclist Display a list of current topics. 14
  • 15. rostopicpub Publish data to a topic. Usage: $ rostopic pub <topic-name> <topic-type> [data...] 15
  • 16. rosservice It is a tool for listing and querying ROS Services. List all the services that are currently available. rosservicelist 16
  • 17. Call a service from the command line. Usage: $ rosservice call /service_name service-args rosservicecall rosservicenode Display the name of the node that provides a particular service. Usage: $ rosservice node /service_name 17
  • 18. Display the URI of a service. This is useful, for example, if you wish to know what address a service is using. Usage: $ rosservice uri /service_name rosserviceuri rosserviceargs Print the arguments to a service. Usage: $ rosservice args /service_name Display all services of a particular type. Example: $ rosservice find rospy_tutorials/AddTwoInts rosservicefind 18
  • 19. Display the type of a service. Usage: $ rosservice type /service_name rosservicetype 19
  • 20. rosparam It is a tool for getting and setting ROS Parameters on the Parameter Server using YAML-encoded files. Get a parameter value. Usage: $ rosparam get parameter_name rosparamget 20
  • 21. Set a parameter to a value. parameter-value is required unless --textfile or --binfile are specified. Usage: $ rosparam set parameter_name value rosparamset rosparamload Load parameters from a YAML file into the specified [namespace] (defaults to /) Usage: $ rosparam load dump.yaml 21
  • 22. Delete a parameter value. Usage: $ rosparam delete parameter_name rosparamdelete rosparamdump Dump the YAML-formatted contents of the Parameter Server to a file. Usage: $ rosparam dump dump.yaml Example: $ rosparam dump -v gains.yaml /gains dumping namespace [/gains] to file [gains.yaml] /gains/i=1.0 /gains/p=1.0 /gains/d=1.0 22
  • 24. rosmsg/rossrv rosmsg contains two command-line tools: rosmsg and rossrv. rosmsg is a tool for displaying information about ROS Message types. rossrv is a tool for displaying information about ROS Service types. Display a list of all messages. rosmsglist 24
  • 25. Display a list of all messages in a package. rosmsgpackage rosmsgpackages Display a list of all packages with messages. 25
  • 26. Display the fields in a ROS message type. rosmsgshow 26
  • 28. rospack allows you to get information about packages. Usage: $ rospack find [package_name] rospack 28
  • 29. Fixes path and pluginlib problems. rospackprofile roscd roscd is part of the rosbash suite. It allows you to change directory directly to a package or a stack. Usage: $ roscd [package[/subdir]] 29
  • 30. rosls is part of the rosbash suite. It allows you to ls directly in a package by name rather than by absolute path. Usage: $ rosls [package[/subdir]] rosls rosed Open requested ROS file in a text editor. Usage: $ rosed [package] [file] 30
  • 31. Copy a file from one place to another. Usage: $ roscp [package] [file] [destination] roscp roswtf Displays a errors and warnings about a running ROS system or launch file. 31
  • 32. Creates a new ROS stack. Usage: $ catkin create pkg [package name] [depend1]..[dependN] catkincreatepkg catkin_make Builds a ROS catkin workspace. 32
  • 34. rosbag The rosbag command-line tool provides functionality for ROS bags. It can record a bag, republish the messages from one or more bags, summarize the contents of a bag, check a bag's message definitions, filter a bag's messages based on a Python expression, compress and decompress a bag and rebuild a bag's index. 34
  • 35. rosbag record subscribes to topics and writes a bag file with the contents of all messages published on those topics. The file contains interlaced, serialized ROS messages dumped directly to a single file as they come in over the wire. This is the most performance and disk-friendly recording format possible. To further reduce disk usage, we can compress bag files as they are created. rosbagrecord 35
  • 36. rosbag play reads the contents of one or more bag file, and plays them back in a time-synchronized fashion. Time synchronization occurs based on the global timestamps at which messages were received. rosbagplay 36
  • 37. rosbag compress is a command-line tool for compressing bag files. rosbagcompress rosbagdecompress It is a command-line tool for decompressing bag files. It automatically determines which compression format a bag uses. 37
  • 38. A tool that prints the information about a particular transformation between a source frame and a target frame. Usage: $ rosrun tf tf_echo <source_frame> <target_frame> tf_echo 38
  • 39. A tool for visualizing, inspecting, and replaying bag files. Usage: $ rqt bag bag file.bag rqt_bag 39
  • 42. A tool for viewing published topics in real time. Usage: $ rqt Plugin Menu->Topic->Topic Monitor rqt_topic 42
  • 43. Tool for publishing messages. Usage: $ rqt Plugin Menu->Topic->Message Publisher rqtpublisher 43
  • 44. Tool for calling services. Usage: $ rqt Plugin Menu->Service->Service Caller rqt servicecaller 44
  • 45. A tool for ROS specific process monitoring. Usage: $ rqt Plugin Menu->Introspection->Process Monitor rqt_top 45
  • 46. Tool for displaying graphs of running ROS nodes with connecting topics. Usage: $ rqt_graph rqt_graph 46
  • 48. Two tools for accessing an xterm shell and python console respectively. Usage: $ rqt Plugin Menu->Miscellaneous Tools->Shell Plugin Menu->Miscellaneous Tools->Python Console rqt_shellandrqt_py_console 48
  • 49. A tool to display image topics Usage: $ rqt_image_view rqt_image_view 49