[ROS2] Import a pure python class from [closed]
So, let'e say we have a simple python class called Model:
class Model:
def __init__(self):
pass
def solver(self,Vf,Vf_dot,p,p_dot,h_1,h_2):
h1_dot = ...
h2_dot=...
return [h1_dot,h2_dot]
What I want to do is to separate this class neatly and when I create ROS2 packages on the side I can call this class create an instance and use it for my application. Is there any elegant way to do it?
In the given info, I do not see relevance to ros. You might get more traction and useful info on other forums e.g. stackoverflow.com. If this is related to ros please update the question to give more info.