Class RobWorkStudioApp


  • public class RobWorkStudioApp
    extends java.lang.Object
    a RobWorkStudio main application which may be instantiated in its own thread.
    The app can be started with either a call to the run() function or the start() function depending
    on weather you want to run it from current thread or start it up in another tread.

    For convinienve when running the app from the main tread the macros
    RWS_START(RobWorkStudioApp app) and RWS_END() can be used to capsulate code to run in a new
    thread
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close RobWorkStudio.
      void delete()  
      static long getCPtr​(RobWorkStudioApp obj)  
      RobWorkStudioPtr getRobWorkStudio()
      get handle to the running RobWorkStudio instance.
      Note: do not directly change Qt visualization objects, this will
      produce segfaults.
      boolean isRunning()
      check if RobwWrkStudio is running
      int run()
      start RobWorkStudio in this thread.
      void start()
      start RobWorkStudio in its own thread, the function is blocking until rws is up and
      running
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RobWorkStudioApp

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

        public RobWorkStudioApp​(java.lang.String args)
        constructor
        Parameters:
        args - [in] command line arguments for RobWorkStudio
      • RobWorkStudioApp

        public RobWorkStudioApp()
        constructor
    • Method Detail

      • delete

        public void delete()
      • start

        public void start()
        start RobWorkStudio in its own thread, the function is blocking until rws is up and
        running
      • run

        public int run()
        start RobWorkStudio in this thread. Notice this method call will
        block until RobWorkStudio is exited.
        Returns:
        zero if exited normally.
      • isRunning

        public boolean isRunning()
        check if RobwWrkStudio is running
        Returns:
        true if running false otherwise
      • close

        public void close()
        Close RobWorkStudio. Blocking until rws is closed. This might take awaile.
      • getRobWorkStudio

        public RobWorkStudioPtr getRobWorkStudio()
        get handle to the running RobWorkStudio instance.
        Note: do not directly change Qt visualization objects, this will
        produce segfaults. Instead use Qt events and the post* handles on
        RobWorkStudio interface.
        Returns:
        handle to RobWorkStudio