Skip to content

Commit 5705bb6

Browse files
committed
fix cpplint errors
1 parent df18980 commit 5705bb6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

include/sdf/Camera.hh

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ namespace sdf
352352
/// object's camera_info message header is expressed.
353353
/// Note: while Gazebo interprets the camera frame to be looking towards +X,
354354
/// other tools, such as ROS interprets this frame as looking towards +Z.
355-
/// The Camera sensor assumes that the color and depth images are captured at
356-
/// the same frame_id.
355+
/// The Camera sensor assumes that the color and depth images are captured
356+
/// at the same frame_id.
357357
/// \return The name of the frame this camera uses in its camera_info topic.
358358
public: const std::string OpticalFrameId() const;
359359

src/Camera.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ Errors Camera::Load(ElementPtr _sdf)
354354
// Load the optional optical_frame_id value.
355355
if (_sdf->HasElement("optical_frame_id"))
356356
{
357-
this->dataPtr->opticalFrameId = _sdf->Get<std::string>("optical_frame_id",
357+
this->dataPtr->opticalFrameId = _sdf->Get<std::string>("optical_frame_id",
358358
this->dataPtr->opticalFrameId).first;
359359
}
360360

@@ -1172,7 +1172,8 @@ sdf::ElementPtr Camera::ToElement() const
11721172
this->SegmentationType());
11731173
}
11741174

1175-
elem->GetElement("optical_frame_id")->Set<std::string>(this->OpticalFrameId());
1175+
elem->GetElement("optical_frame_id")->Set<std::string>(
1176+
this->OpticalFrameId());
11761177

11771178
return elem;
11781179
}

0 commit comments

Comments
 (0)