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

tf.Exception thrown while using waitForTransform when a frame doesn't exist #102

Closed
marcoesposito1988 opened this issue Apr 21, 2015 · 5 comments
Assignees

Comments

@marcoesposito1988
Copy link

As reported by other users as well in http://answers.ros.org/question/207039/tfexception-thrown-while-using-waitfortransform a bug seems to have appeared when using TF.

waitForTransform throws a tf.Exception if one of the frames doesn't exist yet (which is actually the point of waitForTransform).

It must be a bug in TF2. When I checked out geometry 1.11.4 the bug was still there, but when I also checked out geometry-experimental 0.5.7 the bug disappeared.

Any idea about the reason?

@sklaw
Copy link

sklaw commented Apr 21, 2015

Here are the combinations of TF and TF2 I've found so far that will cause this problem:
TF 1.11.6 with TF2 0.5.9
TF 1.11.6 with TF2 0.5.8

TF 1.11.4 with TF2 0.5.9
TF 1.11.4 with TF2 0.5.8

@tfoote
Copy link
Member

tfoote commented Apr 21, 2015

What is the exception thrown? I added unit tests for wait for transform, in ros/geometry@9624370

@tfoote tfoote self-assigned this Apr 21, 2015
@tfoote
Copy link
Member

tfoote commented Apr 22, 2015

I believe I've found the issue in this commit: 2f5ba1d

When running inside rospy, the roscpp client is not initialized and thus ros::ok is false. I'm going to have to think about how to make this work cleanly in both roscpp and rospy. .

tfoote added a commit to ros/geometry that referenced this issue Apr 22, 2015
@tfoote tfoote closed this as completed in 7284788 Apr 22, 2015
@tfoote
Copy link
Member

tfoote commented Apr 22, 2015

This should be fixed in geometry_experimental 0.5.11

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

No branches or pull requests

3 participants