You can run this demo code to learning how can we use a planar marker in bundle adjustment with planar and rectangle constraint.
In order to save the plannar constraint, The Marker is paramter with a Lie se3 instead of using conner coordinates.
![marker_se3](https://github.com/HeYijia/MarkerBA/blob/master/note/m.png?raw=true)