Skip to content

Commit bf16444

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 87631ca commit bf16444

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/mj_utils_merge_mujoco_models.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,17 +347,17 @@ static void merge_mujoco_model(const std::string & robot, const std::string & xm
347347
bfs::path include_file_path(inc.attribute("file").value());
348348
if(!include_file_path.is_absolute())
349349
{
350-
bfs::path xmlPath = bfs::path(xmlFile).parent_path();
351-
include_file_path = xmlPath / include_file_path;
350+
bfs::path xmlPath = bfs::path(xmlFile).parent_path();
351+
include_file_path = xmlPath / include_file_path;
352352
}
353353
pugi::xml_document includeDoc;
354-
if (!includeDoc.load_file(include_file_path.c_str()))
354+
if(!includeDoc.load_file(include_file_path.c_str()))
355355
{
356-
mc_rtc::log::error_and_throw<std::runtime_error>("Failed to load {}", include_file_path.c_str());
356+
mc_rtc::log::error_and_throw<std::runtime_error>("Failed to load {}", include_file_path.c_str());
357357
}
358358
for(pugi::xml_node include_node : includeDoc.child("mujoco").children())
359359
{
360-
out.append_copy(include_node);
360+
out.append_copy(include_node);
361361
}
362362
}
363363
};

0 commit comments

Comments
 (0)