当前位置:网站首页>ROS series (V): common commands in ROS
ROS series (V): common commands in ROS
2022-04-23 03:37:00 【Yi Lanjun】
There are few nodes to start in the robot system , More than a dozen 、 Dozens of , Different nodes have different names , Use topics when communicating 、 service 、 news 、 Parameters and so on are different ,ROS Some practical command line tools are provided in , It can be used to obtain all kinds of information of different nodes , Common commands are as follows :
- rosnode: Operation node
- rostopic: Operation topic
- rosservice: Operational services
- rosmsg: operation msg news
- rossrv: operation srv news
- rosparam: Operating parameters
These commands are different from the previous file operation commands , File manipulation commands are static , Operating on files on disk , The above commands are dynamic , It can be ROS After the program starts, it dynamically obtains the relevant information of the nodes or parameters in the operation .
1 rosnode
rosnode ping Test the connection status to the node
rosnode list List active nodes
rosnode info Print node information
rosnode machine Lists the nodes on the specified device
rosnode kill Kill a node
rosnode cleanup Clear unconnected nodes
2 rostopic
rostopic Used to display information about ROS Debugging information for the subject , Including publisher , subscriber , Release frequency and ROS news .
rostopic bw Shows the bandwidth used by the theme
rostopic delay Display with header Topic delay
rostopic echo Print message to screen
rostopic find Find topics by type
rostopic hz Displays how often the topic is published
rostopic info Displays information about the topic
rostopic list Show all active topics
rostopic pub Publish data to topics
example: rostopic pub / Subject name Message type The message content
rostopic type Print subject type
3 rosmsg
rosmsg Is used to display information about ROS Command line tool for message type information .
rosmsg show Displays the message description
example: rosmsg show Message name
rosmsg info Display message information
rosmsg list List all messages
rosmsg md5 Show md5 Encrypted message , A verification algorithm , Ensure the consistency of data transmission
rosmsg package Display all messages under a function package
example: rosmsg package Package name
rosmsg packages List the feature packs that contain messages
4 rosservice
rosservice Contains information for listing and querying rosServices Command line tools for .
When calling some services , If the relevant workspace is not configured path, You need to enter the workspace to call source ./devel/setup.bash.
rosservice args Print service parameters
rosservice call Call the service with the supplied parameters
rosservice find Find services by service type
rosservice info Print information about the service
rosservice list List all active services
rosservice type Print service type
rosservice uri Printing service ROSRPC uri
5 rossrv
rossrv Is used to display information about ROS Command line tool for service type information , And rosmsg The usage syntax is highly similar .
rossrv show Display service message details
rossrv info Display service message related information
rossrv list List all service information
rossrv md5 Show md5 Encrypted service message
rossrv package Display all service messages under a package
rossrv packages Show all packages containing service messages
6 rosparam
rosparam For the use of YAML The encoding file is obtained and set on the parameter server ROS Parameters .
rosparam set Set parameters
rosparam get To obtain parameters
rosparam load Load parameters from external files
example:rosparam load xxx.yaml
rosparam dump Write out the parameters to an external file
example:rosparam dump yyy.yaml
rosparam delete Delete parameters
example:rosparam delete name Delete the name name Parameters of
rosparam list List all parameters
版权声明
本文为[Yi Lanjun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220602231746.html
边栏推荐
- 集合之List接口
- Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
- "Visual programming" test paper
- Problem B: small challenge
- Design and implementation of redis (2): how to handle expired keys
- Identifier and type conversion
- 2022 团体程序设计天梯赛 模拟赛 L1-7 矩阵列平移 (20 分)
- Design and implementation of redis (5): master-slave replication strategy and optimization
- 淺學一下I/O流和File類文件操作
- Query stored procedures in PostgreSQL
猜你喜欢

2022 group programming ladder simulation match 1-8 are prime numbers (20 points)

Supersocket is Use in net5 - concept

Idea debug debugging tutorial

A sword is a sword. There is no difference between a wooden sword and a copper sword

The principle and solution of not allowing pasting in an English Network

Unity basics 2

The art of concurrent programming (3): an in-depth understanding of the principle of synchronized

Redis (17) -- redis cache related problem solving

Common auxiliary classes

Instructions for fastmock
随机推荐
SQL topic exercise summary
2021-08-11
Deep learning notes (II) -- principle and implementation of activation function
標識符、關鍵字、數據類型
C abstract class
you need to be root to perform this command
Opencv4 QR code recognition test
深度學習筆記(二)——激活函數原理與實現
Romantic silhouette of L2-3 of 2022 group programming ladder Simulation Competition (25 points)
Codeforces Round #784 (Div. 4)題解 (第一次AK cf (XD
JS changes the words separated by dashes into camel style
抽象类、接口、常用关键字
Test questions and some space wars
QT uses drag and drop picture to control and mouse to move picture
Design and implementation of redis (2): how to handle expired keys
The fourth operation
Design and implementation of redis (1): understand data structures and objects
Learn about I / O flow and file operations
Translation of l1-7 matrix columns in 2022 group programming ladder Simulation Competition (20 points)
Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径