|
|
@ -200,6 +200,7 @@ void fill_path(cereal::ModelData::PathData::Builder path, const float * data, bo |
|
|
|
path.setPoly(poly); |
|
|
|
path.setPoly(poly); |
|
|
|
path.setProb(prob); |
|
|
|
path.setProb(prob); |
|
|
|
path.setStd(std); |
|
|
|
path.setStd(std); |
|
|
|
|
|
|
|
path.setValidLen(valid_len); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void fill_lead(cereal::ModelData::LeadData::Builder lead, const float * data, int mdn_max_idx, int t_offset) { |
|
|
|
void fill_lead(cereal::ModelData::LeadData::Builder lead, const float * data, int mdn_max_idx, int t_offset) { |
|
|
@ -293,7 +294,7 @@ void model_publish(PubMaster &pm, uint32_t frame_id, |
|
|
|
fill_meta(meta, net_outputs.meta); |
|
|
|
fill_meta(meta, net_outputs.meta); |
|
|
|
|
|
|
|
|
|
|
|
pm.send("model", msg); |
|
|
|
pm.send("model", msg); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void posenet_publish(PubMaster &pm, uint32_t frame_id, |
|
|
|
void posenet_publish(PubMaster &pm, uint32_t frame_id, |
|
|
|
const ModelDataRaw &net_outputs, uint64_t timestamp_eof) { |
|
|
|
const ModelDataRaw &net_outputs, uint64_t timestamp_eof) { |
|
|
|