ajustes
This commit is contained in:
parent
878e7b5195
commit
8b77c06164
|
|
@ -1956,7 +1956,7 @@ namespace AgroBase.Forms.Operacoes
|
|||
// mapeia os pontos
|
||||
var pts = _segDebug.centros_corredor
|
||||
.Where(p => p != null && p.Length >= 2)
|
||||
.Select(p => Map(p[0], p[1]))
|
||||
.Select(p => Map(p?[0] ?? 0, p?[1] ?? 0))
|
||||
.ToArray();
|
||||
|
||||
if (pts.Length < 2) return;
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ namespace AgroBase.Forms.Simuladores
|
|||
AtualizarDadosTela();
|
||||
}
|
||||
|
||||
private void DesenharCorredor(Bitmap imagemBase, List<double[]> centrosCorredor, int largura, int altura, int larguraRoboPx)
|
||||
private void DesenharCorredor(Bitmap imagemBase, List<double?[]> centrosCorredor, int largura, int altura, int larguraRoboPx)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
|
|
@ -655,7 +655,7 @@ namespace AgroBase
|
|||
)
|
||||
);
|
||||
|
||||
if (deveInterromper && false)
|
||||
if (deveInterromper)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -557,12 +557,12 @@ namespace AgroBase.Models.Operadores
|
|||
public double timestamp { get; set; }
|
||||
public int height { get; set; }
|
||||
public int width { get; set; }
|
||||
public double erro_angular { get; set; }
|
||||
public double erro_lateral_pct { get; set; }
|
||||
public double? erro_angular { get; set; }
|
||||
public double? erro_lateral_pct { get; set; }
|
||||
public StatusCarroMapa status_corredor { get; set; }
|
||||
public StatusCarroMapa status_corredor_anterior { get; set; }
|
||||
public VisualWorkerMessageSegmentacaoSemanticaDebugCorredorModel status_corredor_debug { get; set; }
|
||||
public List<double[]> centros_corredor { get; set; }
|
||||
public List<double?[]> centros_corredor { get; set; }
|
||||
|
||||
public VisualWorkerMessageSegmentacaoSemanticaModel Clone()
|
||||
{
|
||||
|
|
@ -576,7 +576,7 @@ namespace AgroBase.Models.Operadores
|
|||
status_corredor = status_corredor,
|
||||
status_corredor_anterior = status_corredor_anterior,
|
||||
status_corredor_debug = status_corredor_debug,
|
||||
centros_corredor = new List<double[]>(centros_corredor ?? new List<double[]>())
|
||||
centros_corredor = new List<double?[]>(centros_corredor ?? new List<double?[]>())
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue