Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh <[email protected]>
  • Loading branch information
BA-Utkarsh committed Jan 11, 2025
1 parent 8200848 commit e2b2891
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/LogicalCameraSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ bool LogicalCameraSensor::Update(
frame->set_key("frame_id");
frame->add_value(this->FrameId());

*this->dataPtr->msg_logic.mutable_header()->mutable_stamp() = msgs::Convert(_now);
*this->dataPtr->msg_logic.mutable_header()->mutable_stamp() =
msgs::Convert(_now);
this->dataPtr->msg_logic.mutable_header()->clear_data();
auto frame_log = this->dataPtr->msg_logic.mutable_header()->add_data();

Expand All @@ -192,8 +193,10 @@ bool LogicalCameraSensor::Update(
// publish
this->dataPtr->msg_logic.set_near_clip(this->dataPtr->frustum.Near());
this->dataPtr->msg_logic.set_far_clip(this->dataPtr->frustum.Far());
this->dataPtr->msg_logic.set_horizontal_fov(this->dataPtr->frustum.FOV().Radian());
this->dataPtr->msg_logic.set_aspect_ratio(this->dataPtr->frustum.AspectRatio());
this->dataPtr->msg_logic.set_horizontal_fov(
this->dataPtr->frustum.FOV().Radian());
this->dataPtr->msg_logic.set_aspect_ratio(
this->dataPtr->frustum.AspectRatio());
this->AddSequence(this->dataPtr->msg.mutable_header());

this->dataPtr->pub.Publish(this->dataPtr->msg);
Expand Down

0 comments on commit e2b2891

Please sign in to comment.