提交 0ebc8e63 编写于 作者: zoujialong9012's avatar zoujialong9012 提交者: Jiangtao Hu

Update camera_process_subnode.cc (#3785)

* Update camera_process_subnode.cc rosbag play -l   onetimes skip frame .
上级 ebfb59e3
......@@ -97,7 +97,8 @@ void CameraProcessSubnode::ImgCallback(const sensor_msgs::Image &message) {
double curr_timestamp = timestamp * 1e9;
if (FLAGS_skip_camera_frame && timestamp_ns_ > 0.0) {
if ((curr_timestamp - timestamp_ns_) < (1e9 / FLAGS_camera_hz)) {
if ((curr_timestamp - timestamp_ns_) < (1e9 / FLAGS_camera_hz) &&
curr_timestamp > timestamp_ns_) {
ADEBUG << "CameraProcessSubnode Skip frame";
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册