Refactoring

This commit is contained in:
Pascal Serrarens 2025-01-20 20:15:58 +01:00
parent fa2895dd81
commit eaf4fec9e0
8 changed files with 5 additions and 35 deletions

View File

@ -1,23 +0,0 @@
# from . import LowLevelMessages
# from .Thing import Thing
# class IMessage:
# id = 0x00
# ## Serialize the message into the given buffer
# #
# ## @returns: the length of the message
# def Serialize(buffer):
# return 0
# def SendTo(self, participant):
# buffer_size = self.Serialize([participant.buffer])
# if buffer_size == 0:
# return False
# return participant.SendBuffer(buffer_size)
# def Publish(self, participant):
# bufferSize = self.Serialize([participant.buffer])
# if bufferSize == 0:
# return False
# return participant.PublishBuffer(bufferSize)

View File

@ -1,5 +1,5 @@
import numpy as np import numpy as np
from ..SwingTwist import SwingTwist from ..LinearAlgebra.SwingTwist import SwingTwist
def SendAngle8(buffer, ix_ref, angle): def SendAngle8(buffer, ix_ref, angle):
# Normalize angle # Normalize angle

View File

@ -1,5 +1,5 @@
from .Spherical import Spherical from .LinearAlgebra.Spherical import Spherical
from .Quaternion import Quaternion from .LinearAlgebra.Quaternion import Quaternion
## A thing is the basic building block ## A thing is the basic building block
# #

View File

@ -1,14 +1,7 @@
__all__ = ['Direction', __all__ = ['Thing',
'Spherical',
'Thing',
'Participant', 'Participant',
'Messages', 'SiteServer']
'SiteServer',
'SwingTwist']
from .Direction import Direction
from .Participant import Participant from .Participant import Participant
from .Thing import Thing from .Thing import Thing
from .Spherical import Spherical
from .SwingTwist import SwingTwist
from .SiteServer import SiteServer from .SiteServer import SiteServer