def __init__(self, a: geom.AccelStamped): self._dict = { "header": YamlHeader(a.header).dict, "accel": YamlAccel(a.accel).dict, }
def __init__(self, p: geom.PoseWithCovarianceStamped): self._dict = { "header": YamlHeader(p.header).dict, "pose": YamlPoseWithCovariance(p.pose).dict, }
def __init__(self, p: geom.PoseArray): self._dict = { "header": YamlHeader(p.header).dict, "poses": [YamlPose(pose).dict for pose in p.poses], }
def __init__(self, p: geom.PolygonStamped): self._dict = { "header": YamlHeader(p.header).dict, "polygon": YamlPolygon(p.polygon).dict, }
def __init__(self, p: geom.PointStamped): self._dict = { "header": YamlHeader(p.header).dict, "point": YamlPoint(p.point).dict, }
def __init__(self, i: geom.InertiaStamped): self._dict = { "header": YamlHeader(i.header).dict, "inertia": YamlInertia(i.inertia).dict, }