Beispiel #1
0
    def create_virtual_create(self):
        """Instantiates a new virtual create for visualization (only a single one is supported!)

        Returns:
            (visualization.VirtualCreate) instance of visualization.VirtualCreate
        """
        from .visualization import VirtualCreate
        return VirtualCreate(self._clientID)
Beispiel #2
0
    def create_virtual_create(self, hostname):
        """Instantiates a new virtual create for visualization (only a single one is supported!)

        Returns:
            (visualization.VirtualCreate) instance of visualization.VirtualCreate
        """
        from vrep import vrep as vrep
        vrep.simxFinish(-1)  # just in case, close all opened connections
        self._clientID = vrep.simxStart(hostname, 19997, True, True, 5000, 5)  # Connect to V-REP

        from visualization import VirtualCreate
        return VirtualCreate(self._clientID)