Hi I found a eror in my code right above. I forgot to initialize the superclass
the right code should be:
from org.orekit.attitudes import PythonAttitudeProvider
from org.orekit.frames import FramesFactory, LOFType
from org.hipparchus.geometry.euclidean.threed import Vector3D
class MyAttitudeProvider(PythonAttitudeProvider):
def __init__(self,params):
super().__init__()
self.params = params
def getAttitude(self,pvProv, date, frame):
# code to compute a rotation object from the input arguments
return Attitude(date, frame, rotation.revert(), Vector3D.ZERO, Vector3D.ZERO)
Doing so, my issue is solved:
attProv = MyAttitudeProvider(1)
<MyAttitudeProvider: org.orekit.attitudes.PythonAttitudeProvider@74f7d1d2>
Thanks to everyone.
Chris