Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Doisy <guillaume.doisy@wyca.fr>
  • Loading branch information
Guillaume Doisy committed Apr 18, 2022
1 parent 469f147 commit ad8c09d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/GpuLidarSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit ad8c09d

Please sign in to comment.