Class RobWorkPtr


  • public class RobWorkPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • RobWorkPtr

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

        public RobWorkPtr()
        Default constructor yielding a NULL-pointer.
      • RobWorkPtr

        public RobWorkPtr​(RobWork ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • getCPtr

        public static long getCPtr​(RobWorkPtr obj)
      • delete

        public void delete()
      • deref

        public RobWork deref()
        The pointer stored in the object.
      • __ref__

        public RobWork __ref__()
        Dereferencing operator.
      • getDeref

        public RobWork getDeref()
        Member access operator.
      • equals

        public boolean equals​(RobWork p)
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • getLog

        public Log getLog()
        Returns the common log
      • getLogPtr

        public LogPtr getLogPtr()
        get a pointer to the common log
        Returns:
      • setLog

        public void setLog​(LogPtr log)
        set logger for this instance of RobWork
        Parameters:
        log -
      • getVersion

        public java.lang.String getVersion()
        Returns the version of RobWork
      • initialize

        public void initialize​(vector_s plugins)
        initialize robwork

        Reads in its configuration file which specify plugins and so on.
      • initialize

        public void initialize()
        initialize robwork

        Reads in its configuration file which specify plugins and so on.
      • finalizeC

        public void finalizeC()
        finalizes the robwork instance
      • getSettings

        public PropertyMap getSettings()
        get settings of RobWork instance
        Returns:
      • isInitialized

        public boolean isInitialized()
        Check if RobWork has been initialized.
        Returns:
        true if initialized, false otherwise.
      • getInstance

        public RobWorkPtr getInstance()
        returns an RobWork instance
      • init

        public void init()
        initialize robwork
      • init

        public void init​(int argc,
                         SWIGTYPE_p_p_char argv)
        initialize robwork - including possible command line options
      • finish

        public void finish()
        finalize the robwork instance
      • setInstance

        public void setInstance​(RobWorkPtr rw)
        sets the robwork instance
        Parameters:
        rw - [in] the new instance