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

Transform the polygon points of an obstacle based off the pose of the… #527

Conversation

agyoungs
Copy link
Contributor

… obstacle

@@ -316,7 +316,6 @@ void generateObstacleData(
for (size_t j = 0; j < obs_msg.polygon.size(); j++) {
tf::Vector3 pt;
tf::pointMsgToTF(obs_msg.polygon[j], pt);
pt = pt - g_obs_from_local.getOrigin();
Copy link

Choose a reason for hiding this comment

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

seem to be missing the actual transform part

Copy link

Choose a reason for hiding this comment

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

never mind, its already there, you're just removing the incorrect translation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, I just removed the bad translation. The translation would have no effect when an identity pose was used, but this didn't work if the polygon was relative to the pose. I tested this change against current usages and it did not change the behavior.

@malban malban merged commit 4a8ad45 into swri-robotics:master Nov 1, 2018
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