示例#1
0
 public void FromJSON(JSONNode msg)
 {
     rel_position.FromJSON(msg["rel_position"]);
     width = msg["width"].AsDouble;
     height = msg["height"].AsDouble;
     box_angle = msg["box_angle"].AsDouble;
     
 }
示例#2
0
 public void FromJSON(JSONNode msg)
 {
     header.FromJSON(msg["header"]);
     cell_width = (float)msg["cell_width"].AsDouble;
     cell_height = (float)msg["cell_height"].AsDouble;
     foreach (var t in msg["cells"].Children)
     {
         geometry_msgs.Point temp = new geometry_msgs.Point();
         temp.FromJSON(t);
         cells.Add(temp);
     }
 }