Skip to content

Commit e538eb2

Browse files
committed
fixed formatting
1 parent ceed898 commit e538eb2

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

src/parser_urdf.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,14 +2108,14 @@ void InsertSDFExtensionVisual(tinyxml2::XMLElement *_elem,
21082108
void InsertSDFExtensionLink(tinyxml2::XMLElement *_elem,
21092109
const std::string &_linkName)
21102110
{
2111-
bool link_found = false;
2111+
bool link_found = false;
21122112
for (StringSDFExtensionPtrMap::iterator
21132113
sdfIt = g_extensions.begin();
21142114
sdfIt != g_extensions.end(); ++sdfIt)
21152115
{
21162116
if (sdfIt->first == _linkName)
21172117
{
2118-
link_found = true;
2118+
link_found = true;
21192119
sdfdbg << "inserting extension with reference ["
21202120
<< _linkName << "] into link.\n";
21212121
for (std::vector<SDFExtensionPtr>::iterator ge =
@@ -2159,8 +2159,8 @@ void InsertSDFExtensionLink(tinyxml2::XMLElement *_elem,
21592159
// If we didn't find the link, emit a warning
21602160
if (!link_found) {
21612161
sdfwarn << "<gazebo> tag with reference[" << _linkName << "] does not exist in the URDF model. Please "
2162-
<< "ensure that the referenced attribute matches the name of a link, consider checking unicode "
2163-
<< "representation for reference attribute in case of invisible characters and homoglyphs";
2162+
<< "ensure that the referenced attribute matches the name of a link, consider checking unicode "
2163+
<< "representation for reference attribute in case of invisible characters and homoglyphs";
21642164
}
21652165
}
21662166

src/parser_urdf_TEST.cc

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,7 +2463,7 @@ TEST(URDFParser, ZeroMassLeafLink)
24632463
/////////////////////////////////////////////////
24642464
TEST(URDFParser, ParseGazeboRefDoesntExistWarningMessage)
24652465
{
2466-
// Redirect sdfwarn output
2466+
// Redirect sdfwarn output
24672467
std::stringstream buffer;
24682468
sdf::testing::RedirectConsoleStream redir(
24692469
sdf::Console::Instance()->GetMsgStream(), &buffer);
@@ -2476,9 +2476,9 @@ TEST(URDFParser, ParseGazeboRefDoesntExistWarningMessage)
24762476
});
24772477
#endif
24782478

2479-
// test if reference to link exists
2480-
{
2481-
// clear the contents of the buffer
2479+
// test if reference to link exists
2480+
{
2481+
// clear the contents of the buffer
24822482
buffer.str("");
24832483

24842484
std::string str = R"(
@@ -2505,17 +2505,17 @@ TEST(URDFParser, ParseGazeboRefDoesntExistWarningMessage)
25052505
sdf::ParserConfig config;
25062506
parser.InitModelString(str, config, &sdfResult);
25072507

2508-
EXPECT_PRED2(sdf::testing::contains, buffer.str(),
2509-
"<gazebo> tag with reference[link1] does not exist in the URDF model. Please "
2510-
"ensure that the referenced attribute matches the name of a link, consider checking unicode "
2511-
"representation for reference attribute in case of invisible characters and homoglyphs");
2512-
}
2513-
2514-
// TODO: Similar tests for -
2515-
// InsertSDFExtensionCollision,
2516-
// InsertSDFExtensionRobot,
2517-
// InsertSDFExtensionVisual,
2518-
// InsertSDFExtensionJoint
2508+
EXPECT_PRED2(sdf::testing::contains, buffer.str(),
2509+
"<gazebo> tag with reference[link1] does not exist in the URDF model. Please "
2510+
"ensure that the referenced attribute matches the name of a link, consider checking unicode "
2511+
"representation for reference attribute in case of invisible characters and homoglyphs");
2512+
}
2513+
2514+
// TODO: Similar tests for -
2515+
// InsertSDFExtensionCollision,
2516+
// InsertSDFExtensionRobot,
2517+
// InsertSDFExtensionVisual,
2518+
// InsertSDFExtensionJoint
25192519
}
25202520

25212521
/////////////////////////////////////////////////

0 commit comments

Comments
 (0)