|
|
@ -56,8 +56,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|
|
|
, m_leftPanelSplitter(nullptr)
|
|
|
|
, m_leftPanelSplitter(nullptr)
|
|
|
|
, m_intelligenceUI(nullptr)
|
|
|
|
, m_intelligenceUI(nullptr)
|
|
|
|
, m_faceLightControl(nullptr)
|
|
|
|
, m_faceLightControl(nullptr)
|
|
|
|
// , m_droneControlDialog(nullptr)
|
|
|
|
, m_robotDogControlDialog(nullptr)
|
|
|
|
// , m_robotDogControlDialog(nullptr)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_ui->setupUi(this);
|
|
|
|
m_ui->setupUi(this);
|
|
|
|
|
|
|
|
|
|
|
@ -83,14 +82,10 @@ MainWindow::~MainWindow()
|
|
|
|
delete m_faceLightControl;
|
|
|
|
delete m_faceLightControl;
|
|
|
|
m_faceLightControl = nullptr;
|
|
|
|
m_faceLightControl = nullptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if (m_droneControlDialog) {
|
|
|
|
if (m_robotDogControlDialog) {
|
|
|
|
// delete m_droneControlDialog;
|
|
|
|
delete m_robotDogControlDialog;
|
|
|
|
// m_droneControlDialog = nullptr;
|
|
|
|
m_robotDogControlDialog = nullptr;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// if (m_robotDogControlDialog) {
|
|
|
|
|
|
|
|
// delete m_robotDogControlDialog;
|
|
|
|
|
|
|
|
// m_robotDogControlDialog = nullptr;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
delete m_ui;
|
|
|
|
delete m_ui;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1371,14 +1366,18 @@ void MainWindow::onRobotDogControlRequested()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SystemLogger::getInstance()->logInfo("机器狗控制请求");
|
|
|
|
SystemLogger::getInstance()->logInfo("机器狗控制请求");
|
|
|
|
|
|
|
|
|
|
|
|
// 暂时使用简单的消息框来测试功能
|
|
|
|
// 创建机器狗控制对话框(如果还没有创建)
|
|
|
|
QMessageBox::information(this, "机器狗控制",
|
|
|
|
if (!m_robotDogControlDialog) {
|
|
|
|
"机器狗控制界面功能正在开发中...\n"
|
|
|
|
m_robotDogControlDialog = new RobotDogControlDialog(this);
|
|
|
|
"将包含以下功能:\n"
|
|
|
|
|
|
|
|
"• 运动控制(前进、后退、转向)\n"
|
|
|
|
// 连接信号(如果需要的话)
|
|
|
|
"• 姿态控制(站立、趴下、跳跃)\n"
|
|
|
|
// connect(m_robotDogControlDialog, &RobotDogControlDialog::someSignal,
|
|
|
|
"• 地图建构和导航\n"
|
|
|
|
// this, &MainWindow::someSlot);
|
|
|
|
"• 视觉识别和跟踪\n"
|
|
|
|
}
|
|
|
|
"• 设备状态监控");
|
|
|
|
|
|
|
|
|
|
|
|
// 显示对话框
|
|
|
|
|
|
|
|
m_robotDogControlDialog->show();
|
|
|
|
|
|
|
|
m_robotDogControlDialog->raise();
|
|
|
|
|
|
|
|
m_robotDogControlDialog->activateWindow();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|