From 4ca98b58ce72c189bfabc782100a54de2a88d799 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Wed, 20 Mar 2024 00:24:49 +0000 Subject: [PATCH] line wrap Signed-off-by: Ian Chen --- include/sdf/Surface.hh | 6 +++--- src/Surface.cc | 8 ++++---- src/Surface_TEST.cc | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/include/sdf/Surface.hh b/include/sdf/Surface.hh index 374b3b419..bc3f34132 100644 --- a/include/sdf/Surface.hh +++ b/include/sdf/Surface.hh @@ -129,9 +129,9 @@ namespace sdf /// \brief Default constructor public: BulletFriction(); - /// \brief Load BulletFriction friction based on a element pointer. This is *not* - /// the usual entry point. Typical usage of the SDF DOM is through the Root - /// object. + /// \brief Load BulletFriction friction based on a element pointer. This is + /// *not* the usual entry point. Typical usage of the SDF DOM is through + /// the Root object. /// \param[in] _sdf The SDF Element pointer /// \return Errors, which is a vector of Error objects. Each Error includes /// an error code and message. An empty vector indicates no error. diff --git a/src/Surface.cc b/src/Surface.cc index ceed9639a..57f05f95b 100644 --- a/src/Surface.cc +++ b/src/Surface.cc @@ -171,8 +171,8 @@ Errors Torsional::Load(ElementPtr _sdf) if (_sdf->GetName() != "torsional") { errors.push_back({ErrorCode::ELEMENT_INCORRECT_TYPE, - "Attempting to load a BulletFriction, but the provided SDF element is not a " - "."}); + "Attempting to load a BulletFriction, but the provided SDF element " + "is not a ."}); return errors; } @@ -287,8 +287,8 @@ Errors BulletFriction::Load(ElementPtr _sdf) if (_sdf->GetName() != "bullet") { errors.push_back({ErrorCode::ELEMENT_INCORRECT_TYPE, - "Attempting to load a BulletFriction, but the provided SDF element is not a " - "."}); + "Attempting to load a BulletFriction, but the provided SDF element " + "is not a ."}); return errors; } diff --git a/src/Surface_TEST.cc b/src/Surface_TEST.cc index b16811f17..f5bdc24be 100644 --- a/src/Surface_TEST.cc +++ b/src/Surface_TEST.cc @@ -185,7 +185,8 @@ TEST(DOMsurface, ToElement) EXPECT_DOUBLE_EQ(0.5, surface2.Friction()->BulletFriction()->Friction2()); EXPECT_EQ(gz::math::Vector3d(2, 1, 4), surface2.Friction()->BulletFriction()->Fdir1()); - EXPECT_DOUBLE_EQ(1.3, surface2.Friction()->BulletFriction()->RollingFriction()); + EXPECT_DOUBLE_EQ(1.3, + surface2.Friction()->BulletFriction()->RollingFriction()); EXPECT_DOUBLE_EQ(0.5, surface2.Friction()->Torsional()->Coefficient()); EXPECT_FALSE(surface2.Friction()->Torsional()->UsePatchRadius());