Say I have a simple pendulum attached to a quadrotor defined in an sdf file.
When I load this sdf file into a MultibodyTree
, the default continuous state vector is of size 4 (quaternion) + 3 (x, y, z) + 1 (joint connecting quadrotor to pendulum) = 8 as indicated by this answer.
By default, the urdf/sdf parser adds the system with a quaternion-based floating base.
My question is, how do I know where this 4 (quaternion) + 3 (x, y, z) frame is attached?
And how do I control where it is attached to? Say my equations of motion are w.r.t. to the tip of the pendulum, and I want this 4 + 3 quaternion floating base to be attached to the tip of my pendulum, how would I define that?