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

Method as_matrix

grasp_detection/src/detectors/utils.py:34–38  ·  view source on GitHub ↗

Represent as a 4x4 matrix.

(self)

Source from the content-addressed store, hash-verified

32 self.translation = np.asarray(translation, np.double)
33
34 def as_matrix(self):
35 """Represent as a 4x4 matrix."""
36 return np.vstack(
37 (np.c_[self.rotation.as_matrix(), self.translation], [0.0, 0.0, 0.0, 1.0])
38 )
39
40 def to_dict(self):
41 """Serialize Transform object into a dictionary."""

Callers 5

pc_callbackMethod · 0.45
pc_callbackMethod · 0.45
img_callbackMethod · 0.45
pick_and_dropMethod · 0.45
graspMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected