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

dartsim: To not call dart::collision::GzOdeCollisionDetector::create() in ConstructEmptyWorld #674

Closed
Closed
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions dartsim/src/EntityManagementFeatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <dart/collision/CollisionFilter.hpp>
#include <dart/collision/CollisionObject.hpp>

#include "GzOdeCollisionDetector.hh"
#include <dart/collision/dart/DARTCollisionDetector.hpp>

namespace gz {
namespace physics {
Expand Down Expand Up @@ -725,7 +725,7 @@ Identity EntityManagementFeatures::ConstructEmptyWorld(
const Identity &/*_engineID*/, const std::string &_name)
{
const auto &world = std::make_shared<dart::simulation::World>(_name);
auto collisionDetector = dart::collision::GzOdeCollisionDetector::create();
auto collisionDetector = dart::collision::DARTCollisionDetector::create();
world->getConstraintSolver()->setCollisionDetector(collisionDetector);

auto &collOpt = world->getConstraintSolver()->getCollisionOption();
Expand Down
1 change: 1 addition & 0 deletions dartsim/src/WorldFeatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ void WorldFeatures::SetWorldCollisionDetector(
}
else
{
collisionDetector = dart::collision::GzOdeCollisionDetector::create();
gzerr << "Collision detector [" << _collisionDetector
<< "] is not supported, defaulting to ["
<< collisionDetector->getType() << "]." << std::endl;
Expand Down
Loading