Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Bullet on Edifice #919

Merged
merged 2 commits into from
Jul 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/systems/physics/Physics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class ignition::gazebo::systems::PhysicsPrivate
ignition::physics::FreeGroupFrameSemantics,
ignition::physics::LinkFrameSemantics,
ignition::physics::ForwardStep,
ignition::physics::RemoveEntities,
ignition::physics::RemoveModelFromWorld,
ignition::physics::sdf::ConstructSdfLink,
ignition::physics::sdf::ConstructSdfModel,
ignition::physics::sdf::ConstructSdfWorld
Expand Down Expand Up @@ -1184,6 +1184,14 @@ void PhysicsPrivate::CreateCollisionEntities(const EntityComponentManager &_ecm)
linkCollisionFeature->ConstructCollision(collision);
}

if (nullptr == collisionPtrPhys)
{
igndbg << "Failed to create collision [" << _name->Data()
<< "]. Does the physics engine support geometries of type ["
<< static_cast<int>(_geom->Data().Type()) << "]?" << std::endl;
return true;
}

this->entityCollisionMap.AddEntity(_entity, collisionPtrPhys);

// Check that the physics engine has a filter mask feature
Expand Down