提交 c8fa8328 编写于 作者: a_big_pig's avatar a_big_pig 提交者: Runxin He

first ten files fixed

上级 dd765961
......@@ -88,6 +88,10 @@ class Alignment {
protected:
void UpdatePoseInfo(const FramePose& pose,
std::shared_ptr<BadOrGoodPoseInfo> sp_pose_info) {
if (sp_pose_info == nullptr) {
AERROR << "sp_pose_info is nullptr";
return;
}
BadOrGoodPoseInfo& pose_info = *sp_pose_info;
if (pose_info.pose_count == 0) {
pose_info.start_time = pose.time_stamp;
......@@ -103,6 +107,10 @@ class Alignment {
}
void ClearPoseInfo(std::shared_ptr<BadOrGoodPoseInfo> sp_pose_info) {
if (sp_pose_info == nullptr) {
AERROR << "sp_pose_info is nullptr";
return;
}
BadOrGoodPoseInfo& pose_info = *sp_pose_info;
pose_info.start_time = -1.0;
pose_info.end_time = -1.0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册