setOrigin

fun setOrigin(origin: Pose, rotate: Boolean = true)

Change the reference frame of the to another pose. Equivalent to subtract operation but with an added rotation transform.

Parameters

origin

New origin

rotate

If set to true, the pose will be rotated around the origin by the origins R value