MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / rad_error

Function rad_error

utils/error.py:35–39  ·  view source on GitHub ↗
(R_est, R_gt)

Source from the content-addressed store, hash-verified

33 return R_avg
34
35def rad_error(R_est, R_gt):
36 cosvalue = np.trace(R_est @ R_gt.T) - 1
37 cosvalue = min(1, cosvalue)
38 cosvalue = max(-1, cosvalue)
39 return np.arccos(cosvalue)
40
41def ATE_TEASER(R_est,t_est,R_gt,t_gt):
42 # R_est: 3x3N

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected