I wanted to get the local coordinate frame of a link relative to the world. I guess it can be obtained by doing a coordinate transformation using the pitch, roll, yaw parts of the WorldPose result but it would be prefferable if there's something in the gazebo api that already does that or may be in the ignition math library function that does transformation.
The picture below might better explain what I wanted.
Thanks!