add tool to watch all three beautiful cameras (#22528)
parent
2f2b9116d4
commit
ff771d9fcf
3 changed files with 31 additions and 1 deletions
@ -0,0 +1,28 @@ |
||||
#include <QApplication> |
||||
#include <QtWidgets> |
||||
|
||||
#include "selfdrive/ui/qt/qt_window.h" |
||||
#include "selfdrive/ui/qt/util.h" |
||||
#include "selfdrive/ui/qt/widgets/cameraview.h" |
||||
|
||||
int main(int argc, char *argv[]) { |
||||
QSurfaceFormat fmt; |
||||
fmt.setRenderableType(QSurfaceFormat::OpenGLES); |
||||
QSurfaceFormat::setDefaultFormat(fmt); |
||||
|
||||
QApplication a(argc, argv); |
||||
QWidget w; |
||||
setMainWindow(&w); |
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout(&w); |
||||
layout->setMargin(0); |
||||
layout->setSpacing(0); |
||||
layout->addWidget(new CameraViewWidget(VISION_STREAM_RGB_BACK, false)); |
||||
|
||||
QHBoxLayout *hlayout = new QHBoxLayout(&w); |
||||
layout->addLayout(hlayout); |
||||
hlayout->addWidget(new CameraViewWidget(VISION_STREAM_RGB_FRONT, false)); |
||||
hlayout->addWidget(new CameraViewWidget(VISION_STREAM_RGB_WIDE, false)); |
||||
|
||||
return a.exec(); |
||||
} |
Loading…
Reference in new issue