rqt工具箱基于QT框架,有三大部分组成:
rqt
rosrun rqt_gui rqt_gui
#include "ros/ros.h"
int main(int argc, char *argv[])
{
ros::init(argc, argv, "logo_demo");
ros::NodeHandle nh;
ros::Rate r(0.3);
while (ros::ok())
{
// 默认不输出
ROS_DEBUG("debag message!");
ROS_INFO("info message!");
ROS_WARN("warn message!");
ROS_ERROR("error message!");
ROS_FATAL("fatal message!");
r.sleep();
}
return 0;
}
[ INFO] [1664609956.033453791]: info message!
[ WARN] [1664609956.033553987]: warn message!
[ERROR] [1664609956.033610369]: error message!
[FATAL] [1664609956.033676339]: fatal message!