Pose

class packnet_sfm.geometry.pose.Pose(mat)[source]

Bases: object

Pose class, that encapsulates a [4,4] transformation matrix for a specific reference frame

classmethod from_vec(vec, mode)[source]

Initializes from a [B,6] batch vector

classmethod identity(N=1, device=None, dtype=torch.float32)[source]

Initializes as a [4,4] identity matrix

inverse()[source]

Returns a new Pose that is the inverse of this one

item()[source]

Returns the transformation matrix

repeat(*args, **kwargs)[source]

Repeats the transformation matrix multiple times

property shape

Returns the transformation matrix shape

to(*args, **kwargs)[source]

Moves object to a specific device

transform_points(points)[source]

Transforms 3D points using this object

transform_pose(pose)[source]

Creates a new pose object that compounds this and another one (self * pose)