当前位置:网站首页>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
边栏推荐
- On the principle of concurrent programming and the art of notify / Park
- 2022 group programming ladder simulation match 1-8 are prime numbers (20 points)
- Seekbar custom style details
- Redis (17) -- redis cache related problem solving
- Wechat payment iframe sub page has no response
- Picture synthesis video
- Identifier and type conversion
- Visual programming - Experiment 1
- 2021-08-31
- The principle and solution of not allowing pasting in an English Network
猜你喜欢
Wechat applet canvas draws a simple asymptotic color of the dashboard
Unity knowledge points (ugui 2)
The art of concurrent programming (6): explain the principle of reentrantlock in detail
Install PaddlePaddle on ARM
Code forces round # 784 (DIV. 4) solution (First AK CF (XD)
Design and implementation of redis (2): how to handle expired keys
2022 团体程序设计天梯赛 模拟赛 1-8 均是素数 (20 分)
Unity Basics
Idea debug debugging tutorial
将编译安装的mysql加入PATH环境变量
随机推荐
SQL topic exercise summary
vscode删除卸载残余
Cmake qmake simple knowledge
JS calculates the display date according to the time
Design and implementation of redis (5): master-slave replication strategy and optimization
C-10 program error correction (recursive function): number to character
What to pay attention to when writing the first code
Supersocket is Used in net5 - command
7-1 introduction to finance
The content of the website is prohibited from copying, pasting and saving as JS code
JS changes the words separated by dashes into camel style
Development record of primary sensitive word detection
Supersocket is Use in net5 - concept
According to the category information and coordinate information of the XML file, the category area corresponding to the image is pulled out and stored in the folder.
C-11 problem h: treasure chest 2
C set
The art of concurrent programming (5): the use of reentrantlock
Unity knowledge points (ugui)
Test questions and some space wars
Laboratory safety examination