7 from .
import pinocchio_pywrap
as pin
8 from .robot_wrapper
import RobotWrapper
13 def __init__(self, filename, package_dirs=None, verbose=False):
14 self.initFromURDF(filename, package_dirs=package_dirs, root_joint=pin.JointModelFreeFlyer(), verbose=verbose)
16 0, 0, 0.840252, 0, 0, 0, 1,
17 0, 0, -0.3490658, 0.6981317, -0.3490658, 0,
18 0, 0, -0.3490658, 0.6981317, -0.3490658, 0,
20 1.5, 0.6, -0.5, -1.05, -0.4, -0.3, -0.2,
22 1.5, -0.6, 0.5, 1.05, -0.4, -0.3, -0.2,
24 if pin.getNumpyType()==np.matrix:
25 self.
q0 = np.matrix(self.
q0).T
33 for op, name
in self.opCorrespondances.items():
34 self.__dict__[op] = self.index(name)
39 return self.position(q, self.rh)
42 return self.jacobian(q, self.rh)
45 return pin.jacobian(self.model, self.data, self.rh, q,
False)
48 return self.velocity(q, v, self.rh)
51 return self.jacobian(q, self.lh)
54 return self.position(q, self.lh)
57 return self.jacobian(q, self.lf)
60 return self.position(q, self.lf)
63 return self.jacobian(q, self.rf)
66 return self.position(q, self.rf)
68 __all__ = [
'RomeoWrapper']
def __init__(self, filename, package_dirs=None, verbose=False)