Learning Dynamics of a Ball with Differentiable Factor Graph and Roto-Translational Invariant Representations