Classes | Functions | Variables
lambdas Namespace Reference

Classes

class  ancestorOf
 

Functions

def jFromIdx (idxv, robot)
 
def np_prettyprint (sarg="{: 0.5f}", eps=5e-7)
 
def setRobotArgs (robot)
 

Variables

 __doc__
 
 adj = lambda nu: np.bmat([[skew(nu[3:]), skew(nu[:3])], [zero([3, 3]), skew(nu[3:])]])
 
 adjdual
 
list ancestors
 
 descendants = lambda root, robot: robot.model.subtrees[root]
 
 Fcross = lambda x, y: Motion(x).cross(Force(y)).vector
 
 FCross = lambda V, f: np.bmat([Fcross(V[:, i], f) for i in range(V.shape[1])])
 
 iv
 
 Mcross = lambda x, y: Motion(x).cross(Motion(y)).vector
 
 MCross = lambda V, v: np.bmat([Mcross(V[:, i], v) for i in range(V.shape[1])])
 
 parent = lambda i, robot: robot.model.parents[i]
 
 quad = lambda H, v: np.array(td(td(H, v, [2, 0]), v, [1, 0]))
 
 td = np.tensordot
 

Function Documentation

◆ jFromIdx()

def lambdas.jFromIdx (   idxv,
  robot 
)
Return the joint index from the velocity index

Definition at line 11 of file lambdas.py.

◆ np_prettyprint()

def lambdas.np_prettyprint (   sarg = "{: 0.5f}",
  eps = 5e-7 
)

Definition at line 91 of file lambdas.py.

◆ setRobotArgs()

def lambdas.setRobotArgs (   robot)

Definition at line 58 of file lambdas.py.

Variable Documentation

◆ __doc__

lambdas.__doc__
private

Definition at line 69 of file lambdas.py.

◆ adj

lambdas.adj = lambda nu: np.bmat([[skew(nu[3:]), skew(nu[:3])], [zero([3, 3]), skew(nu[3:])]])

Definition at line 78 of file lambdas.py.

◆ adjdual

lambdas.adjdual
Initial value:
1 = lambda nu: np.bmat(
2  [[skew(nu[3:]), zero([3, 3])], [skew(nu[:3]), skew(nu[3:])]]
3 )

Definition at line 81 of file lambdas.py.

◆ ancestors

list lambdas.ancestors
Initial value:
1 = []: (
2  res
3  if j == 0
4  else ancestors(
5  robot.model.parents[j],
6  robot,
7  [j, *res],
8  )
9 )

Definition at line 28 of file lambdas.py.

◆ descendants

lambdas.descendants = lambda root, robot: robot.model.subtrees[root]

Definition at line 55 of file lambdas.py.

◆ Fcross

lambdas.Fcross = lambda x, y: Motion(x).cross(Force(y)).vector

Definition at line 71 of file lambdas.py.

◆ FCross

lambdas.FCross = lambda V, f: np.bmat([Fcross(V[:, i], f) for i in range(V.shape[1])])

Definition at line 75 of file lambdas.py.

◆ iv

lambdas.iv
Initial value:
1 = lambda i, robot: list(
2  range(
3  robot.model.joints[i].idx_v,
4  robot.model.joints[i].idx_v + robot.model.joints[i].nv,
5  )
6 )

Definition at line 22 of file lambdas.py.

◆ Mcross

lambdas.Mcross = lambda x, y: Motion(x).cross(Motion(y)).vector

Definition at line 68 of file lambdas.py.

◆ MCross

lambdas.MCross = lambda V, v: np.bmat([Mcross(V[:, i], v) for i in range(V.shape[1])])

Definition at line 74 of file lambdas.py.

◆ parent

lambdas.parent = lambda i, robot: robot.model.parents[i]

Definition at line 21 of file lambdas.py.

◆ quad

lambdas.quad = lambda H, v: np.array(td(td(H, v, [2, 0]), v, [1, 0]))

Definition at line 87 of file lambdas.py.

◆ td

lambdas.td = np.tensordot

Definition at line 86 of file lambdas.py.

pinocchio::python::skew
Eigen::Matrix< typename Vector3::Scalar, 3, 3, Vector3::Options > skew(const Vector3 &v)
Definition: expose-skew.cpp:19
pinocchio.utils.zero
def zero(n)
Definition: bindings/python/pinocchio/utils.py:37
lambdas.ancestors
list ancestors
Definition: lambdas.py:28


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:14