Commit 28dcb9bd authored by Olivier Lantsoght's avatar Olivier Lantsoght 🏁
Browse files

[MBsysPy] Fix missing field in structure containing the pointer to user functions

parent 8b1895df
...@@ -8,6 +8,7 @@ import ctypes ...@@ -8,6 +8,7 @@ import ctypes
# importing MBsysC related classes # importing MBsysC related classes
from .forward_decl import MbsData_c from .forward_decl import MbsData_c
from .forward_decl import MbsDirdyn_c from .forward_decl import MbsDirdyn_c
from .forward_decl import MbsInvdyn_c
from .forward_decl import MbsEquil_c from .forward_decl import MbsEquil_c
from .forward_decl import UserIoInfo_c from .forward_decl import UserIoInfo_c
from .forward_decl import UserIO_c from .forward_decl import UserIO_c
...@@ -31,6 +32,9 @@ user_load_post_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c)) ...@@ -31,6 +32,9 @@ user_load_post_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c))
user_dirdyn_init_wrap = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsDirdyn_c)) user_dirdyn_init_wrap = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsDirdyn_c))
user_dirdyn_loop_wrap = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsDirdyn_c)) user_dirdyn_loop_wrap = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsDirdyn_c))
user_dirdyn_finish_wrap = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsDirdyn_c)) user_dirdyn_finish_wrap = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsDirdyn_c))
user_invdyn_init_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsInvdyn_c))
user_invdyn_loop_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsInvdyn_c))
user_invdyn_finish_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsInvdyn_c))
user_equil_init_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsEquil_c)) user_equil_init_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsEquil_c))
user_equil_loop_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsEquil_c)) user_equil_loop_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsEquil_c))
user_equil_finish_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsEquil_c)) user_equil_finish_wrap = ctypes.CFUNCTYPE(None, ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsEquil_c))
......
...@@ -90,6 +90,8 @@ class MbsGrowingBuffer_c(ctypes.Structure): ...@@ -90,6 +90,8 @@ class MbsGrowingBuffer_c(ctypes.Structure):
pass pass
class MbsAux_c(ctypes.Structure): class MbsAux_c(ctypes.Structure):
pass pass
class MbsInvdyn_c(ctypes.Structure):
pass
class MbsEquil_c(ctypes.Structure): class MbsEquil_c(ctypes.Structure):
pass pass
class MbsEquilOptions_c(ctypes.Structure): class MbsEquilOptions_c(ctypes.Structure):
......
...@@ -20,6 +20,9 @@ from .callback import user_load_post_wrap ...@@ -20,6 +20,9 @@ from .callback import user_load_post_wrap
from .callback import user_dirdyn_init_wrap from .callback import user_dirdyn_init_wrap
from .callback import user_dirdyn_loop_wrap from .callback import user_dirdyn_loop_wrap
from .callback import user_dirdyn_finish_wrap from .callback import user_dirdyn_finish_wrap
from .callback import user_invdyn_init_wrap
from .callback import user_invdyn_loop_wrap
from .callback import user_invdyn_finish_wrap
from .callback import user_equil_init_wrap from .callback import user_equil_init_wrap
from .callback import user_equil_loop_wrap from .callback import user_equil_loop_wrap
from .callback import user_equil_finish_wrap from .callback import user_equil_finish_wrap
...@@ -65,6 +68,10 @@ user_c._fields_ = [ ...@@ -65,6 +68,10 @@ user_c._fields_ = [
("user_dirdyn_init", user_dirdyn_init_wrap), ("user_dirdyn_init", user_dirdyn_init_wrap),
("user_dirdyn_loop", user_dirdyn_loop_wrap), ("user_dirdyn_loop", user_dirdyn_loop_wrap),
("user_dirdyn_finish", user_dirdyn_finish_wrap), ("user_dirdyn_finish", user_dirdyn_finish_wrap),
# user invdyn
("user_invdyn_init", user_invdyn_init_wrap),
("user_invdyn_loop", user_invdyn_loop_wrap),
("user_invdyn_finish", user_invdyn_finish_wrap),
# user equil # user equil
("user_equil_init", user_equil_init_wrap), ("user_equil_init", user_equil_init_wrap),
("user_equil_loop", user_equil_loop_wrap), ("user_equil_loop", user_equil_loop_wrap),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment