7#ifndef MODESTREEMANAGER_H
8#define MODESTREEMANAGER_H
17#include <unordered_map>
36 void addRobot(
const std::string& robotName);
50 void onTabChanged(
int index);
52 void onJointClicked(
int partIndex,
int jointIndex);
54 void onJointHomeFromTree(
int partIndex,
int jointIndex);
56 void onJointRunFromTree(
int partIndex,
int jointIndex);
58 void onJointIdleFromTree(
int partIndex,
int jointIndex);
60 void onJointPIDFromTree(
int partIndex,
int jointIndex);
66 void addRobotInList(
const std::string& robotName);
68 void addRobotInWidget(
const std::string& robotName);
70 void addRobotPartInList(
const std::string& robotName,
const std::string &partName,
int partIndex,
PartItem* part);
72 void addRobotPartInWidget(
const std::string& robotName,
const std::string &partName,
int partIndex,
PartItem* part);
81 QTreeWidgetItem* listWidget;
88 std::unordered_map<std::string, QTreeWidgetItem*> m_robotMapList;
89 std::unordered_map<std::string, RobotWidgetTree*> m_robotMapWidget;
90 std::unordered_map<int, PartPointers> m_indexToPartMap;
void sig_jointClicked(int partIndex, int jointIndex)
void updateRobotPart(int index)
void addRobotPart(const std::string &robotName, const std::string &partName, int partIndex, PartItem *part)
void addRobot(const std::string &robotName)
void sig_partDoubleClicked(int index)
A mini-server for performing network communication in the background.