TF2 Transform Unpublished Frame
Pretty basic question regarding TF2. I have a static camera with a known transform from the base of my robot. With the camera I am detecting a marker in my scene and getting a transform from the camera to the marker. Without broadcasting this new transform frame, how do I find the transform from the base to the marker?
Sorry if this is obvious, but all the methods I can find (lookupTransform for example) don't seem to perform this. I realize I could manually write the math to make this transform but it seems that there is a more idiomatic way to accomplish this.
Thanks
Not an answer, but would publishing the known transform as a static TF not be incredibly useful (and additionally make things like
lookupTransform(..)
andtransformPose(..)
work also)? If you're not publishing the transform for efficiency reasons: static transforms are only published once.Well in my case the marker will potentially move during runtime so I can't use a static publisher. And yes, I was looking to avoid publishing for efficiency reasons. Thanks for the help!
I was referring to this:
but re-reading your question I see you want to avoid publishing the transform from camera to marker. Not from robot to camera.