sleep
ros::Duration(0.5).sleep(); // sleep for half a second
rostopic
rostopic pub /<topic_name> geometry_msgs/PoseStamped -r 1 -- '{header: {stamp: now, frame_id: "/map"}, pose: {position: {x: 0, y: 0, z: 0}, orientation: {x: 0, y: 0, z: 0, w: 1}}}'
catkin_make
catkin_make -DCATKIN_WHITELIST_PACKAGES="包名" # 工作空间编译指定的功能包
catkin_make -DCATKIN_WHITELIST_PACKAGES="package1;package2"
catkin_make -DCATKIN_WHITELIST_PACKAGES="" # 恢复编译所有功能包
ros时间戳转换
时间戳:自UTC 时间 1970-01-01 00:00:00 以来所经过的秒数
中国标准时间(CST)比世界协调时间(UTC)早08:00小时,CST = UTC + 08:00
在线转换:https://tool.lu/timestamp/
date +%s # 输出当前时间对应的UNIX时间戳
date -d "2019-09-21 21:48:35" +%s # 输出指定时间对应的UNIX时间戳
date -d @1568110830.00 # 输出 "Tue Sep 10 18:20:30 CST 2019"
参考:http://wiki.ros.org/rosbag/Commandline
WARNING: disk usage in log directory [/home/alan/.ros/log] is over 1GB.
It's recommended that you use the 'rosclean' command.
$ rosclean check
1.1G ROS node logs
$ rosclean purge
Purging ROS node logs.
PLEASE BE CAREFUL TO VERIFY THE COMMAND BELOW!
Okay to perform:
rm -rf /home/jinshan.lan/.ros/log
(y/n)?
y