当前位置:网站首页>Common debugging tools and commands for ROS
Common debugging tools and commands for ROS
2022-06-12 11:58:00 【Sunward flowers bloom_】
One .ROS Common command notes
1.rosrun Run the program
2.roslaunch Run script Such as roslaunch rbx1 fake_pi_robot.launch
3. see ROS_PACKAGE_PATH environment variable echo $ROS_PACKAGE_PATH
4. Get the list of running nodes rosnode list
5. Show the topic of the node rostopic list
6. Display the services of the node rosservice list
7. Get the type of message sent by a specific topic rosmsg show
8. Display node graph rqt_graph (rqt_graph Tools can see nodes and topics , And which nodes subscribe to which hosts
Questions, etc . There are no messages in this node state diagram 、 Message logging package 、 Parameter servers and services )
rqt_graph

9. Display the structure of the message Such as rosmsg show nav_msgs/Odometry View odometer message structure
10. View topic information Such as rostopic echo /odom/pose/pose View the location information of the odometer topic
11. start-up rqt_logger_level Graphic tool rosrun rqt_logger_level rqt_logger_level( Used for setting up log The display level of )
12. start-up rqt_console Graphic tool rqt_console( Used to display such as ROS_INFO Such debugging information )
13. start-up rqt_top Graphic tool rosrun rqt_top rqt_top
View the resource usage of each node 
14. start-up rqt_topic Graphic tool rosrun rqt_topic rqt_topic
see topic The type of , Current published values, etc 
15. Analyze the potential problems of the package ,roswtf
16. Start the visual monitor rosrun rqt_runtime_monitor rqt_runtime_monitor
17. Start the graphic viewer rosrun rqt_image_view rqt_image_view
18. Dynamic parameter configuration
rosrun rqt_reconfig rqt_reconfig
22. start-up rqt_gui Graphic tool rosrun rqt_gui rqt_gui
Or enter a command rqt, You can view it as shown in the following figure 
23. Start the keyboard controller rosrun teleop_twist_keyboard teleop_twist_keyboard.py
24. Update environment variables source devel/setup.bash
25. Installation package : Such as ros-hydro- Package name
sudo apt-get install ros-hydro-teleop-twist-keyboard
26. Dependencies required to install the package
Such as rosdep install --from-paths src --ignore-src --rosdistro indigo
27.ubuntu Zhongyou apt-get The obtained package is saved /var/cache/apt/archives
28.rospy.loginfo When the information is displayed to the console, it is also written log file ,log The file location is
~/.ros/log
29.ros Node usage gdb debugging
If you use roslanch start-up ros node , Join in
launch-prefix="xterm -e gdb --args "
Such as
<node name="vins_estimator" pkg="vins_estimator" type="vins_estimator" output="screen" launch-prefix="xterm -e gdb -ex run --args ">
Two .TF Commands for using function packs
1.view_frames Be able to monitor all passes at the current moment ROS Broadcast tf Coordinate system , And draw a tree view to show the connection relationship between coordinate systems and save it to an offline file
rosrun tf view_frames

The saved figure is as follows :
2.rqt_tf_tree Tools
although view_frames The current coordinate system relationship can be saved in an offline file , But it can not reflect the coordinate relationship in real time , So it can be used rqt_tf_tree Real time refresh to display coordinate system relations :
$rosrun rqt_tf_tree rqt_tf_tree

3…tf_echo Tools
Use tf_echo The tool can view the relationship between two broadcast reference systems , Directly display the relationship between different coordinate systems in the terminal
Such as :
rosrun tf tf_echo map base_link

3、 ... and .bag The order of the bag
- . Start recording all rosbag record -a
- Play bag file rosbag play
- see
bagfile information rosbag info - start-up
rqt_bag GraphicalTools rqt_bag
Four . image_transport Package usage and instructions
边栏推荐
- Spark common encapsulation classes
- [database] SQLite version upgrade and downgrade
- LeetCode 890. Find and replace mode (analog + double hash table)
- Rich text editor copying pictures in word documents
- ARM指令集之批量Load/Store指令
- Data processing instruction addressing method of arm instruction set
- Relation entre les classes et à l'intérieur des classes de classification vidéo - - Régularisation
- M-arch (fanwai 10) gd32l233 evaluation -spi drive DS1302
- 邻居子系统之ARP协议数据处理过程
- Neighbor item status update of neighbor subsystem
猜你喜欢

Doris records service interface calls

Create servlet project

UML系列文章(30)体系结构建模---制品图

Deep learning and CV tutorial (14) | image segmentation (FCN, segnet, u-net, pspnet, deeplab, refinenet)

UML系列文章(31)体系结构建模---部署图

TinyMCE series (II) TinyMCE plug-in development

QT adds a summary of the problems encountered in the QObject class (you want to use signals and slots) and solves them in person. Error: undefined reference to `vtable for xxxxx (your class name)‘

Must do skill -- use ffmpeg command to quickly and accurately cut video

6.6 Convolution de séparation

5G NR协议学习--TS38.211下行通道
随机推荐
Automatic generation of folder directory structure
邻居子系统之邻居项状态更新
5g NR protocol learning -- ts38.211 downlink channel
第六章 数据类型(五)
LeetCode_ String_ Simple_ 344. reverse string
The first thing with a server
ARM指令集之批量Load/Store指令
LeetCode 497. Random points in non overlapping rectangles (prefix and + bisection)
LeetCode_ Binary search_ Medium_ 162. looking for peaks
6.6 Convolution de séparation
Channel shuffle class
Cookie和Session
Reentrantlock source code analysis
6.6 rl:mdp and reward function
Lambda and filter, List 和 numpy array的索引,以及各种距离指标distance-metrics,拼接数组以及axis=0 and axis=1的区分
TinyMCE series (III) introduction to common TinyMCE APIs
A.前缀极差
NVIDIA Jetson Nano Developer Kit 入门
for in 与Object.keys()的区别
ARM指令集之伪指令