git clone https://github.com/bdaiinstitute/spatialmath-python.git cd spatialmath-python pip install -e . # Optional: if you would like to contribute and commit code changes to the repository, # pre-commit install Dependencies numpy,scipy,matplotlib,ffmpeg(if rendering animations as a movie) ...
Here, we demonstrate how to convert a dense matrix to a sparse matrix using thesparse()function. The codeSparseFromDense = sparse(DenseMatrix)takes a dense identity matrix (eye(3)) and efficiently creates a sparse representation, resulting in theSparseFromDensematrix. ...
some numpy type can't be used whereas the plain python type can be used: import hppfcl as fcl from pyrr import Matrix44 transformation = Matrix44.identity(dtype="f4")) (scale_x, scale_y, scale_z), _, _ = transformation.decompose() fcl.Box(scale_x, scale_y, scale_z) > fcl.Box...
The functionality using Cython code will not support other array types (or only with conversion to/from ``numpy.ndarray``), which can be documented per function. Situation 2: a Python package that contains a lot of Cython code ~~~ .. note:: Projects in this situation include scikit-learn...
The underlying representation of these classes is a numpy matrix, but the class ensures that the structure of that matrix is valid for the particular group represented: SO(2), SE(2), SO(3), SE(3). Any operation that is not valid for the group will return a matrix rather than a pose...