Skip to content

Commit

Permalink
add informed
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Sep 30, 2020
1 parent 600575a commit 6b74143
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/worlds/nested_model.sdf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<sdf version="1.7">
<world name="nested_model_world">
<physics name="1ms" type="ignored">
<max_step_size>0.001</max_step_size>
Expand Down
15 changes: 10 additions & 5 deletions src/systems/physics/Physics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -764,11 +764,16 @@ void PhysicsPrivate::CreatePhysicsEntities(const EntityComponentManager &_ecm)
this->entityModelNestedModelMap);
if (!nestedModelFeature)
{
igndbg << "Attempting to construct nested models, but the physics"
<< " engine doesn't support feature "
<< "[ConstructSdfNestedModelFeature]. "
<< "Nested model will be ignored."
<< std::endl;
static bool informed{false};
if (!informed)
{
igndbg << "Attempting to construct nested models, but the physics"
<< " engine doesn't support feature "
<< "[ConstructSdfNestedModelFeature]. "
<< "Nested model will be ignored."
<< std::endl;
informed = true;
}
return true;
}

Expand Down

0 comments on commit 6b74143

Please sign in to comment.