![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ROS
宁缺毋滥灬
这个作者很懒,什么都没留下…
展开
-
ROS中按行读取Txt文本数据,C++
读取txt数据时,如果txt是多列或者数据格式不一样时,不太好用,所以,最好根据自己所要的内容,写一个保存程序,根据我自己的需要,在上一篇文章中写了订阅odom,按行保存到txt中的程序。所以,这一篇程序根据保存的轨迹内容进行读取。...原创 2022-03-22 16:12:05 · 2766 阅读 · 0 评论 -
ROS订阅odom里程计消息,并在RVIZ中显示轨迹
ubuntu16.04 kineticshowpath#include <ros/ros.h>#include <ros/console.h>#include <nav_msgs/Path.h>#include <nav_msgs/Odometry.h>#include <std_msgs/String.h>#include <geometry_msgs/Quaternion.h>#include <geom原创 2021-07-15 13:05:43 · 6785 阅读 · 0 评论 -
ROS 中订阅odom消息并按行保存到txt中
#include "ros/ros.h" //ros需要的头文件#include <geometry_msgs/Twist.h>#include <nav_msgs/Odometry.h>#include "std_msgs/String.h"//以下为串口通讯需要的头文件#include <string> #include <iostream>#include <cstdio>#include <unist.原创 2021-07-15 09:09:31 · 2617 阅读 · 0 评论