Frame with two parents in tf2
I have the following task. 'ar_track_alvar' node publishes transformation from a camera to a marker. My own node publishes transformation from a world frame to the marker. My aim is to find coordinates of camera relative the world frame. I was trying to lookup a transformation from the world frame to the camera.
transformStamped = node->tfBuffer.lookupTransform("world", markerFrame, ros::Time(0));
However, I faced out that a frame can have only one parent in tf2. Is there approach to solve my issue by tf2?