File tree 2 files changed +6
-7
lines changed
bindings/python/pinocchio/visualize
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
import warnings
2
+
2
3
import numpy as np
3
4
4
5
from .. import pinocchio_pywrap_default as pin
Original file line number Diff line number Diff line change 1
- from __future__ import print_function
2
-
3
1
import numpy as np
4
- from numpy .linalg import norm , solve
5
-
6
2
import pinocchio
3
+ from numpy .linalg import norm , solve
7
4
8
5
model = pinocchio .buildSampleModelManipulator ()
9
6
data = model .createData ()
40
37
print ("Convergence achieved!" )
41
38
else :
42
39
print (
43
- "\n Warning: the iterative algorithm has not reached convergence to the desired precision"
40
+ "\n Warning: the iterative algorithm has not reached convergence to "
41
+ "the desired precision"
44
42
)
45
43
46
- print ("\n result: %s" % q .flatten ().tolist ())
47
- print ("\n final error: %s" % err .T )
44
+ print (f "\n result: { q .flatten ().tolist ()} " )
45
+ print (f "\n final error: { err .T } " )
You can’t perform that action at this time.
0 commit comments