Class DynamicWorkCellCPtr


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

      • DynamicWorkCellCPtr

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

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

        public DynamicWorkCellCPtr​(DynamicWorkCell ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • 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
      • findBody

        public SWIGTYPE_p_Body__Ptr findBody​(java.lang.String name)
        find a specific body with name name
        Parameters:
        name - [in] name of body
        Returns:
        body if found, NULL otherwise
      • findConstraint

        public SWIGTYPE_p_Constraint__Ptr findConstraint​(java.lang.String name)
        find a specific constraint with name name
        Parameters:
        name - [in] name of constraint
        Returns:
        constraint if found, NULL otherwise
      • findDevice

        public SWIGTYPE_p_DynamicDevice__Ptr findDevice​(java.lang.String name)
        find a dynamic device of name name
        Parameters:
        name - [in] name of device
        Returns:
        a device with name name or null
      • findSensor

        public SimulatedSensorPtr findSensor​(java.lang.String name)
        find a sensor
        Parameters:
        name - [in] the sensor
        Returns:
      • findController

        public SimulatedControllerPtr findController​(java.lang.String name)
        Find a simulated controller.
        Parameters:
        name - [in] name of the controller.
        Returns:
        the simulated controller if found, NULL otherwise.
      • getBody

        public BodyPtr getBody​(java.lang.String name)
      • getWorkcell

        public WorkCellPtr getWorkcell()
        gets the default kinematic workcell
      • getWorkCell

        public WorkCellPtr getWorkCell()
        gets the default kinematic workcell
      • inDevice

        public boolean inDevice​(SWIGTYPE_p_rw__core__PtrT_Body_const_t body)
        tests if a body is part of a device
        Parameters:
        body - [in] the body to test for.
        Returns:
        true if body is part of the device.
      • getGravity

        public Vector3D getGravity()
        get the gravity in this dynamic workcell
        Returns:
        gravity