MCPcopy Create free account
hub / github.com/MotrixLab/insactor / to_dof

Function to_dof

data/kitml_converter.py:87–91  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

85 takes = jp.array(takes, dtype=int)
86
87 def to_dof(a):
88 b = np.zeros([num_joint_dof])
89 for idx, (j, (beg, end), _) in enumerate(joint_idxs):
90 b[beg:end] = a[idx, :end - beg]
91 return b
92
93 def to_3dof(a):
94 a = jp.concatenate([a, jp.array([0.0])])

Callers 1

convert_to_qpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected