ROS
Glücklichste
Gesündeste
展开
-
ros C++解析bag包
ros中的bag包是按逐帧序列存储的,解析的时候创建View类可以逐帧把数据读取出来,然后按照对应topic数据做相应的处理,一下demo是一个小案例,如何解析一个bag包。#include <rosbag/bag.h>#include <rosbag/view.h>#include <std_msgs/Int32.h>#include <st...原创 2020-04-03 23:57:35 · 5561 阅读 · 2 评论 -
rosbag Code API
示例来源于:http://wiki.ros.org/rosbag/Code%20APIhttp://wiki.ros.org/rosbag/CookbookExample usage for write:#include <rosbag/bag.h>#include <std_msgs/Int32.h>#include <std_msgs/Str...原创 2020-01-10 20:29:34 · 690 阅读 · 0 评论 -
ros源码录包r程序编译时rosbag API报 undefined reference to `rosbag::Bag::close()'...
http://wiki.ros.org/rosbag/Code%20APIhttp://docs.ros.org/melodic/api/rosbag_storage/html/c++/https://github.com/sofiathefirst/imagesCpp/tree/master/bagdemo_ros_imgwritebag.cpp#include "ros/ro...转载 2019-12-23 21:48:25 · 2200 阅读 · 1 评论 -
ROS的参数服务器使用
1.使用意义参数服务器的使用旨在提高ROS 节点的灵活性和可配置性,其意义从两个方面去理解: 在机器人系统中,参数传递十分重要,机器人工作时,我们有需要对机器人的参数(如传感器参数、算法的参数)进行设置。有些参数(如机器人的轮廓、传感器的高度)在机器人启动时就设定好就行了,有些参数则需要动态改变(特别是在调试的时候)。无论是传感器的设置,还是控制参数的调整,都需要留出方便的参...转载 2019-12-16 09:59:30 · 2945 阅读 · 2 评论