def connect(self, ip, port=801, defaults=True): stat = pyvicon.connect(self._c, "{}:{}".format(ip, port)) if stat and defaults: pyvicon.enableSegmentData(self._c) pyvicon.enableMarkerData(self._c) pyvicon.setStreamMode(self._c, self.SM_ClientPull) return stat
def enableSegmentData(self, b=True): if b: return pyvicon.enableSegmentData(self._c) else: return pyvicon.disableSegmentData(self._c)