unittest/python/crocoddyl/shooting.py
def calc(self, xs, us):
        """ Compute the cost and the next states.
        """
        return sum([m.calc(d, x, u)[1] for m, d, x, u in zip(self.runningModels, self.runningDatas, xs[:-1], us)
                    ]) + self.terminalModel.calc(self.terminalData, xs[-1])[1]
 Compute the cost and the next states.
        
Compute the cost and the next states.
Compute the cost and the next states .
def calc(self, xs, us):
        return sum([m.calc(d, x, u)[1] for m, d, x, u in zip(self.runningModels, self.runningDatas, xs[:-1], us)
                    ]) + self.terminalModel.calc(self.terminalData, xs[-1])[1]
def calc ( self , xs , us ) : return sum ( [ m . calc ( d , x , u ) [ 1 ] for m , d , x , u in zip ( self . runningModels , self . runningDatas , xs [ : - 1 ] , us ) ] ) + self . terminalModel . calc ( self . terminalData , xs [ - 1 ] ) [ 1 ]
Compute the cost and the next states.
Compute the cost and the next states .
""" Compute the cost and the next states.
        """
self
xs
us