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

fix World::getTransform #1553

Merged
merged 1 commit into from
Jul 12, 2019
Merged

fix World::getTransform #1553

merged 1 commit into from
Jul 12, 2019

Conversation

rhaschke
Copy link
Contributor

Looks like World::getTransform is broken since 3e8feeb (#1439).

... which was broken in 3e8feeb (moveit#1439)
@@ -168,6 +168,7 @@ const Eigen::Isometry3d& World::getTransform(const std::string& name) const

const Eigen::Isometry3d& World::getTransform(const std::string& name, bool& frame_found) const
{
frame_found = true;
std::map<std::string, ObjectPtr>::const_iterator it = objects_.find(name);
if (it != objects_.end())
return it->second->shape_poses_[0];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This first return was missing frame_found to be set to true beforehand.

Copy link
Contributor

@v4hn v4hn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true

@v4hn v4hn merged commit 97edff9 into moveit:master Jul 12, 2019
@rhaschke rhaschke deleted the fix-getTransform branch July 12, 2019 14:47
sjahr pushed a commit to sjahr/moveit that referenced this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants