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