Skip to content
Snippets Groups Projects
Commit 14b2bc2c authored by Carlos Mastalli's avatar Carlos Mastalli
Browse files

[action] Added documentation to the DADAbstract class

parent 5b64b78b
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,14 @@ class DifferentialActionModelAbstract: ...@@ -69,6 +69,14 @@ class DifferentialActionModelAbstract:
class DifferentialActionDataAbstract: class DifferentialActionDataAbstract:
def __init__(self, model, costData = None): def __init__(self, model, costData = None):
""" Create common data shared between DAMs.
In crocoddyl, a DAD might use an externally defined cost data. If so,
you need to pass your own cost data using costData. Otherwise it will
be allocated here.
:param model: differential action model
:param costData: external cost data (optional)
"""
nx,nu,ndx,nv,nout = model.nx,model.nu,model.ndx,model.nv,model.nout nx,nu,ndx,nv,nout = model.nx,model.nu,model.ndx,model.nv,model.nout
# State evolution and cost data # State evolution and cost data
self.cost = np.nan self.cost = np.nan
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment