Skip to content

Commit

Permalink
World::moveObject(): only apply changes if there is any non-zero moti…
Browse files Browse the repository at this point in the history
…on (moveit#1108)

Follow up to moveit#957.
  • Loading branch information
rhaschke authored and pull[bot] committed Sep 3, 2020
1 parent 0319135 commit d13f285
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions moveit_core/collision_detection/src/world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ bool World::moveObject(const std::string& id, const Eigen::Affine3d& transform)
auto it = objects_.find(id);
if (it == objects_.end())
return false;
if (transform.isApprox(Eigen::Affine3d::Identity()))
return true; // object already at correct location
ensureUnique(it->second);
for (size_t i = 0, n = it->second->shapes_.size(); i < n; ++i)
{
Expand Down

0 comments on commit d13f285

Please sign in to comment.