mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-27 06:03:53 +08:00
* cleanup include path * continue * format includes * fix testraw.cc * remove include path from SConstruct * regroup * rebase master * almost done * apply review * rename FileReader.xx to filereader.xx * rename Unlogger.x->unlogger.x * rename FrameReader.xx -> framereader.xx * apply reviews * ui.h * continue * fix framebuffer.cc build error:mv util.h up * full path to msm_media_info * fix qcom2 camerad Co-authored-by: Comma Device <device@comma.ai>
25 lines
610 B
C++
25 lines
610 B
C++
#pragma once
|
|
|
|
#include "selfdrive/modeld/runners/runmodel.h"
|
|
#include "selfdrive/modeld/thneed/thneed.h"
|
|
|
|
class ThneedModel : public RunModel {
|
|
public:
|
|
ThneedModel(const char *path, float *loutput, size_t loutput_size, int runtime);
|
|
void addRecurrent(float *state, int state_size);
|
|
void addTrafficConvention(float *state, int state_size);
|
|
void addDesire(float *state, int state_size);
|
|
void execute(float *net_input_buf, int buf_size);
|
|
private:
|
|
Thneed *thneed = NULL;
|
|
bool recorded;
|
|
|
|
float *output;
|
|
|
|
// recurrent and desire
|
|
float *recurrent;
|
|
float *trafficConvention;
|
|
float *desire;
|
|
};
|
|
|