Class RobWork


  • public class RobWork
    extends java.lang.Object
    RobWork instance which holds objects to be shared among multiple plugins

    A RobWork instance contains common objects and configuration which may be used
    by multiple plugins which may originate from different shared libraries.
    • Constructor Detail

      • RobWork

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

        public RobWork()
        Creates RobWork instance
    • Method Detail

      • getCPtr

        public static long getCPtr​(RobWork obj)
      • delete

        public void delete()
      • 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 static RobWorkPtr getInstance()
        returns an RobWork instance
      • init

        public static void init()
        initialize robwork
      • init

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

        public static void finish()
        finalize the robwork instance
      • setInstance

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