Class Jacobian


  • public class Jacobian
    extends java.lang.Object
    A Jacobian class. A jacobian with m rows and n columns.

    An ordinary robot jacobian defined over the joints 0 to n with
    configuration q is expressed as a 6\times n matrix:
    \robabx{0}{n}{\bf{J}}(\bf{q}) = [ \robabx{0}{1}{\bf{J}}(\bf{q}), \robabx{1}{2}{\bf{J}}(\bf{q}),..., \robabx{n-1}{n}{\bf{J}}(\bf{q}) ]
    • Constructor Detail

      • Jacobian

        public Jacobian​(long cPtr,
                        boolean cMemoryOwn)
      • Jacobian

        public Jacobian​(long m,
                        long n)
        Creates an empty m\times n (uninitialized) Jacobian matrix

        Parameters:
        m - [in] number of rows

        n - [in] number of columns
      • Jacobian

        public Jacobian()
        Default constructor
      • Jacobian

        public Jacobian​(long n)
        Creates an empty 6\times n (uninitialized) Jacobian matrix

        Parameters:
        n - [in] number of columns
      • Jacobian

        public Jacobian​(Vector3D aPb)
    • Method Detail

      • getCPtr

        public static long getCPtr​(Jacobian obj)
      • delete

        public void delete()
      • size1

        public long size1()
        The number of rows.
      • size2

        public long size2()
        The number of columns.
      • zero

        public static Jacobian zero​(long size1,
                                    long size2)
        Construct zero initialized Jacobian.
        Parameters:
        size1 - [in] number of rows.
        size2 - [in] number of columns.
        Returns:
        zero-initialized jacobian.
      • get

        public double get​(long row,
                          long column)
      • set

        public void set​(long row,
                        long column,
                        double d)
      • elem

        public SWIGTYPE_p_double elem​(long row,
                                      long col)
        Get an element of the jacobian.
        Parameters:
        row - [in] the row.
        col - [in] the column.
        Returns:
        reference to the element.
      • addRotation

        public void addRotation​(Vector3D part,
                                long row,
                                long col)
        add rotation jacobian to a specific row and column in this jacobian
        Parameters:
        part -
        row -
        col -
      • addPosition

        public void addPosition​(Vector3D part,
                                long row,
                                long col)
        add position jacobian to a specific row and column in this jacobian
        Parameters:
        part -
        row -
        col -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object