Skip to content

Commit

Permalink
Merge pull request #524 from jviereck/patch-2
Browse files Browse the repository at this point in the history
Fix deprication warnings to show correct new function names.
  • Loading branch information
jcarpent authored Sep 21, 2018
2 parents 1e3942e + 4e2a99b commit 6061027
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bindings/python/scripts/deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
from . import libpinocchio_pywrap as se3
from .deprecation import deprecated

@deprecated("This function has been renamed updateFramePlacements when taking two arguments, and framesForwardKinematics when taking three. Please change to the appropriate method.")

@deprecated("This function has been renamed updateFramePlacements when taking two arguments, and framesForwardKinematics when taking three. Please change your code to the appropriate method.")
def framesKinematics(model,data,q=None):
if q is None:
se3.updateFramePlacements(model,data)
else:
se3.framesForwardKinematics(model,data,q)

@deprecated("This function has been renamed computeJointJacobians and will be removed in release 1.4.0 of Pinocchio. Please change for new computeJacobians.")
@deprecated("This function has been renamed computeJointJacobians and will be removed in release 1.4.0 of Pinocchio. Please change for new computeJointJacobians.")
def computeJacobians(model,data,q=None):
if q is None:
return se3.computeJointJacobians(model,data)
Expand All @@ -49,7 +50,7 @@ def getJacobian(model,data,jointId,local):
else:
return se3.getJointJacobian(model,data,jointId,se3.ReferenceFrame.WORLD)

@deprecated("This function has been renamed computeJacobiansTimeVariation and will be removed in release 1.4.0 of Pinocchio. Please change for new computeJacobiansTimeVariation.")
@deprecated("This function has been renamed computeJacobiansTimeVariation and will be removed in release 1.4.0 of Pinocchio. Please change for new computeJointJacobiansTimeVariation.")
def computeJacobiansTimeVariation(model,data,q,v):
return se3.computeJointJacobiansTimeVariation(model,data,q,v)

Expand Down

0 comments on commit 6061027

Please sign in to comment.