MCPcopy Create free account
hub / github.com/RoboCodeX-source/RoboCodeX_code / from_dict

Method from_dict

grasp_detection/src/detectors/utils.py:76–79  ·  view source on GitHub ↗
(cls, dictionary)

Source from the content-addressed store, hash-verified

74
75 @classmethod
76 def from_dict(cls, dictionary):
77 rotation = Rotation.from_quat(dictionary["rotation"])
78 translation = np.asarray(dictionary["translation"])
79 return cls(rotation, translation)
80
81 @classmethod
82 def from_list(cls, list):

Callers 5

_preprocessMethod · 0.45
_preprocessMethod · 0.45
img_callbackMethod · 0.45
img_callbackMethod · 0.45

Calls

no outgoing calls

Tested by 1