Variables | |
code = handler.generateCode(langC, jac, nameGen, "source") | |
data = model.createData() | |
fun = ADCGFun(x, y) | |
handler = CodeHandler(50) | |
indVars = np.array([CG(1.0)] * (nq + nv + nv)) | |
jac = fun.Jacobian(indVars) | |
langC = LanguageC("double", 3) | |
model = cgpin.Model(pinmodel) | |
nameGen = LangCDefaultVariableNameGenerator("y", "x", "v", "array", "sarray") | |
nq = model.nq | |
nv = model.nv | |
pinmodel = pin.buildSampleModelHumanoidRandom() | |
x = np.array([ADCG(CG(0.0))] * (nq + nv + nv)) | |
y = cgpin.rnea(model, data, x[:nq], x[nq : nq + nv], x[nq + nv :]) | |
Definition at line 45 of file codegen-rnea.py.
codegen-rnea.data = model.createData() |
Definition at line 16 of file codegen-rnea.py.
Definition at line 27 of file codegen-rnea.py.
codegen-rnea.handler = CodeHandler(50) |
Definition at line 36 of file codegen-rnea.py.
Definition at line 38 of file codegen-rnea.py.
codegen-rnea.jac = fun.Jacobian(indVars) |
Definition at line 41 of file codegen-rnea.py.
codegen-rnea.langC = LanguageC("double", 3) |
Definition at line 43 of file codegen-rnea.py.
codegen-rnea.model = cgpin.Model(pinmodel) |
Definition at line 15 of file codegen-rnea.py.
Definition at line 44 of file codegen-rnea.py.
codegen-rnea.nq = model.nq |
Definition at line 18 of file codegen-rnea.py.
codegen-rnea.nv = model.nv |
Definition at line 19 of file codegen-rnea.py.
codegen-rnea.pinmodel = pin.buildSampleModelHumanoidRandom() |
Definition at line 14 of file codegen-rnea.py.
Definition at line 21 of file codegen-rnea.py.