Commit 13da911b authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub

Merge pull request #891 from jcarpent/devel

test/python: set default converter for Eigen::Matrix objects
parents acb40c65 571d176d
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.utils import np, npl, rand, skew, zero from pinocchio.utils import np, npl, rand, skew, zero
from test_case import TestCase from test_case import TestCase
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np import numpy as np
from pinocchio.utils import eye,zero,rand,skew from pinocchio.utils import eye,zero,rand,skew
......
import unittest import unittest
from test_case import TestCase from test_case import TestCase
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.utils import rand, zero from pinocchio.utils import rand, zero
import numpy as np import numpy as np
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.utils import * from pinocchio.utils import *
from numpy.linalg import norm from numpy.linalg import norm
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from test_case import TestCase from test_case import TestCase
......
import unittest import unittest
from test_case import TestCase from test_case import TestCase
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.utils import rand, zero from pinocchio.utils import rand, zero
import numpy as np import numpy as np
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np import numpy as np
from pinocchio.utils import zero,rand from pinocchio.utils import zero,rand
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np import numpy as np
class TestFrameBindings(unittest.TestCase): class TestFrameBindings(unittest.TestCase):
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np import numpy as np
class TestGeometryModelBindings(unittest.TestCase): class TestGeometryModelBindings(unittest.TestCase):
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np import numpy as np
@unittest.skipUnless(pin.WITH_FCL_SUPPORT(),"Needs FCL") @unittest.skipUnless(pin.WITH_FCL_SUPPORT(),"Needs FCL")
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
import os import os
@unittest.skipUnless(pin.WITH_URDFDOM_SUPPORT(),"Needs URDFDOM") @unittest.skipUnless(pin.WITH_URDFDOM_SUPPORT(),"Needs URDFDOM")
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np import numpy as np
from pinocchio.utils import eye,zero,rand,skew from pinocchio.utils import eye,zero,rand,skew
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np import numpy as np
class TestJointCompositeBindings(unittest.TestCase): class TestJointCompositeBindings(unittest.TestCase):
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np import numpy as np
from pinocchio.utils import zero,rand from pinocchio.utils import zero,rand
......
import unittest import unittest
from test_case import TestCase from test_case import TestCase
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.utils import rand, zero from pinocchio.utils import rand, zero
import numpy as np import numpy as np
......
...@@ -3,6 +3,7 @@ import math ...@@ -3,6 +3,7 @@ import math
import numpy as np import numpy as np
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.utils import rand, zero, eye from pinocchio.utils import rand, zero, eye
from pinocchio.explog import exp, log from pinocchio.explog import exp, log
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.utils import np, zero from pinocchio.utils import np, zero
from test_case import TestCase from test_case import TestCase
......
...@@ -2,6 +2,9 @@ import unittest ...@@ -2,6 +2,9 @@ import unittest
from math import pi from math import pi
import numpy as np import numpy as np
import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.rpy import matrixToRpy, npToTuple, rotate, rpyToMatrix from pinocchio.rpy import matrixToRpy, npToTuple, rotate, rpyToMatrix
from test_case import TestCase from test_case import TestCase
......
import unittest import unittest
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from test_case import TestCase from test_case import TestCase
......
import unittest import unittest
import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.utils import isapprox from pinocchio.utils import isapprox
def tracefunc(frame, event, arg): def tracefunc(frame, event, arg):
......
...@@ -3,6 +3,7 @@ from math import sqrt ...@@ -3,6 +3,7 @@ from math import sqrt
import numpy as np import numpy as np
import pinocchio as pin import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.utils import cross, isapprox from pinocchio.utils import cross, isapprox
from test_case import TestCase from test_case import TestCase
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment