Package org.ros.node

Class NativeNodeMain

java.lang.Object
org.ros.node.AbstractNodeMain
org.ros.node.NativeNodeMain
All Implemented Interfaces:
NodeListener, NodeMain

public abstract class NativeNodeMain extends AbstractNodeMain
A java wrapper to load and run a native-code ROS node. Note: there are no actual native methods declared in this class. We only define an interface. The native methods should be declared in the child class. Native methods' return codes can be handled by the application using AbstractNodeMain.onError(Node, Throwable).
Author:
ecorbellini@creativa77.com.ar (Ernesto Corbellini)
  • Field Details

    • SUCCESS

      public static final int SUCCESS
      See Also:
    • executeReturnCode

      protected int executeReturnCode
    • shutdownReturnCode

      protected int shutdownReturnCode
  • Constructor Details

    • NativeNodeMain

      public NativeNodeMain(String libName, String[] remappings)
      Parameters:
      libName - The name of the library to load.
      remappings - A string array with ROS argument remapping pairs in each element.
    • NativeNodeMain

      public NativeNodeMain(String libName)
      Parameters:
      libName - The name of the library to load.
  • Method Details