tf rviz camera
Hi, I need to se the position of a ball in rviz using mi camera and tf. The thing is that i have the open cv code but i do not have idea how to create a code for tf that subscribe into my image (from OpenCv) and show it on Rviz. I already saw to much codes about tf publisher and listener, and i still have no idea how to use it.
Please can somebody help me?
This should give you some idea ros message filter. But remember this isn't working because call back is never called for some reason which i couldn't identify.
What particular part you don't understand? If you have position of detected object with respect to camera you just create tf publisher publishing transformation between camera tf frame and object. Of course you also need camera's tf publisher if you don't have it written already.