Skip to content

Commit

Permalink
Merge branch 'main' of github.com:versatran01/ouster_decoder into main
Browse files Browse the repository at this point in the history
  • Loading branch information
chao committed Sep 9, 2021
2 parents 0480a7d + 63df2f0 commit c592552
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ void Decoder::Timing(const ros::Time& t_start) const {
bool Decoder::CheckAlign(int mid) {
if (need_align_ && mid == 0) {
need_align_ = false;
ROS_DEBUG("Align start of the first subscan to mid %d, icol in scan %d",
mid,
scan_.icol);
ROS_INFO("Align start of the first subscan to mid %d, icol in scan %d",
mid,
scan_.icol);
}
return need_align_;
}
Expand Down Expand Up @@ -575,8 +575,10 @@ void Decoder::LidarPacketCb(const ouster_ros::PacketMsg& lidar_msg) {
mid,
jump);
if (strict_) {
ROS_ERROR("In strict mode, shutting down...");
ros::shutdown();
} else {
ROS_WARN("Reset internal state and wait for new starting scan");
need_align_ = true;
scan_.HardReset();
}
Expand Down

0 comments on commit c592552

Please sign in to comment.