Skip to content

Commit

Permalink
Adapt DartLoader::parseWorld to workaround for Issue #122.
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Jan 10, 2014
1 parent e739477 commit d4b41b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/urdf/DartLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ simulation::World* DartLoader::parseWorld(std::string _urdfFileName) {
Eigen::Isometry3d transform = toEigen(worldInterface->models[i].origin);

if(dynamic_cast<dynamics::FreeJoint*>(rootJoint)) {
Eigen::Vector6d coordinates;
coordinates << math::logMap(transform.linear()), transform.translation();
rootJoint->set_q(coordinates);
rootJoint->set_q(math::logMap(transform));
}
else {
rootJoint->setTransformFromParentBodyNode(transform);
Expand Down

0 comments on commit d4b41b3

Please sign in to comment.