diff --git a/src/GpuLidarSensor.cc b/src/GpuLidarSensor.cc index 0272cfa7..ba3f66c1 100644 --- a/src/GpuLidarSensor.cc +++ b/src/GpuLidarSensor.cc @@ -257,11 +257,16 @@ bool GpuLidarSensor::Update(const std::chrono::steady_clock::duration &_now) *this->dataPtr->pointMsg.mutable_header()->mutable_stamp() = msgs::Convert(_now); // Set frame_id - for (auto i = 0; i < this->dataPtr->pointMsg.mutable_header()->data_size(); ++i) { + for (auto i = 0; + i < this->dataPtr->pointMsg.mutable_header()->data_size(); + ++i) + { if (this->dataPtr->pointMsg.mutable_header()->data(i).key() == "frame_id" && this->dataPtr->pointMsg.mutable_header()->data(i).value_size() > 0) { - this->dataPtr->pointMsg.mutable_header()->mutable_data(i)->set_value(0, this->FrameId()); + this->dataPtr->pointMsg.mutable_header()->mutable_data(i)->set_value( + 0, + this->FrameId()); } }