Skip to content

Commit

Permalink
Update dyncomp.py test
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Sep 1, 2020
1 parent 3dd823b commit 4c1ec4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bindings/python/tests/dyncomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ def testDynComp(self):
# set state
dofs = dynComp.getNrOfDegreesOfFreedom()
print "dofs: {}".format(dofs)
q = iDynTree.VectorDynSize.fromPython([random.random() for i in range(0, dofs)])
dq = iDynTree.VectorDynSize.fromPython([random.random() for i in range(0, dofs)])
ddq = iDynTree.VectorDynSize.fromPython([random.random() for i in range(0, dofs)])
q = iDynTree.VectorDynSize.FromPython([random.random() for i in range(0, dofs)])
dq = iDynTree.VectorDynSize.FromPython([random.random() for i in range(0, dofs)])
ddq = iDynTree.VectorDynSize.FromPython([random.random() for i in range(0, dofs)])

# set gravity
grav = iDynTree.SpatialAcc.fromPython([0.0, 0.0, -9.81, 0.0, 0.0, 0.0])
grav = iDynTree.SpatialAcc.FromPython([0.0, 0.0, -9.81, 0.0, 0.0, 0.0])
dynComp.setRobotState(q,dq,ddq,grav)

torques = iDynTree.VectorDynSize(dofs+6)
Expand Down

0 comments on commit 4c1ec4e

Please sign in to comment.