Commit 26550878 authored by Justin Carpentier's avatar Justin Carpentier

exmaples/python: set np.matrix as default conveter for Eigen::Matrix

parent e3afe950
##
## Copyright (c) 2018-2019 CNRS INRIA
##
import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.romeo_wrapper import RomeoWrapper
import os
......
##
## Copyright (c) 2018 CNRS
##
## Copyright (c) 2018-2019 CNRS INRIA
##
import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np
##
......
##
## Copyright (c) 2018-2019 CNRS
## Copyright (c) 2018-2019 CNRS INRIA
##
# NOTE: this example needs gepetto-gui to be installed
# usage: launch gepetto-gui and then run this test
import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np
import os
......
##
## Copyright (c) 2018 CNRS
##
## Copyright (c) 2018-2019 CNRS INRIA
##
import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np
##
......
##
## Copyright (c) 2018 CNRS
##
## Copyright (c) 2018-2019 CNRS INRIA
##
import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np
# Create model and data
......
##
## Copyright (c) 2018-2019 CNRS INRIA
##
import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.romeo_wrapper import RomeoWrapper
## Load Romeo with RomeoWrapper
......
......@@ -8,6 +8,7 @@
##
import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.visualize import *
import os
......
##
## Copyright (c) 2019 CNRS
## Copyright (c) 2019 CNRS INRIA
##
# This examples shows how to load and move a robot in meshcat.
......@@ -7,6 +7,7 @@
# pip install --user meshcat
import pinocchio as pin
pin.switchToNumpyMatrix()
import numpy as np
import os
......
##
## Copyright (c) 2018-2019 CNRS
## Copyright (c) 2018-2019 CNRS INRIA
##
##
......@@ -8,6 +8,7 @@
##
import pinocchio as pin
pin.switchToNumpyMatrix()
from pinocchio.robot_wrapper import RobotWrapper
from pinocchio.visualize import *
import os
......
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