美文网首页
ros、8 rosbag

ros、8 rosbag

作者: proud2008 | 来源:发表于2020-07-14 16:18 被阅读0次

https://blog.csdn.net/JIEJINQUANIL/article/details/103756185
http://wiki.ros.org/cn/ROS/Tutorials/Recording%20and%20playing%20back%20data

$ roscore
$ rosrun turtlesim turtlesim_node
$ rosrun turtlesim turtle_teleop_key
$ mkdir bagfiles && cd bagfiles
$ rosbag record -a  # 录 制
$ rosbag info bagfile.bag #查看
$ rosbag play bagfile.bag #回放
$ rosbag record -O result /turtle1/cmd_vel /turtle1/pose
#-O result 最终生成的文件为result.bag


# rosbag record -a 时提示以下信息 解决方案
[ WARN] [1576311065.082263288]: /use_sim_time set to true and no clock published.  Still waiting for valid time...
#录制前
$ rosparam set /use_sim_time false
#播放时
$ rosparam set /use_sim_time true

相关文章

网友评论

      本文标题:ros、8 rosbag

      本文链接:https://www.haomeiwen.com/subject/ocrfhktx.html