예제 #1
0
 public static Offset <CozmoAnim.HeadAngle> CreateHeadAngle(FlatBufferBuilder builder,
                                                            uint triggerTime_ms       = 0,
                                                            uint durationTime_ms      = 0,
                                                            sbyte angle_deg           = 0,
                                                            byte angleVariability_deg = 0)
 {
     builder.StartTable(4);
     HeadAngle.AddDurationTimeMs(builder, durationTime_ms);
     HeadAngle.AddTriggerTimeMs(builder, triggerTime_ms);
     HeadAngle.AddAngleVariabilityDeg(builder, angleVariability_deg);
     HeadAngle.AddAngleDeg(builder, angle_deg);
     return(HeadAngle.EndHeadAngle(builder));
 }
예제 #2
0
 public static HeadAngle GetRootAsHeadAngle(ByteBuffer _bb, HeadAngle obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }