33 robotPropLoader(argc,argv),
34 robotFootLoader(argc,argv),
35 laserPropLoader(argc,argv),
36 sonarPropLoader(argc,argv),
37 kinematicPropLoader(argc,argv),
38 rfidAntennaPropLoader(argc,argv),
39 co2SensorPropLoader(argc,argv),
40 thermalSensorPropLoader(argc,argv),
41 soundSensorPropLoader(argc,argv),
48 robotPreviewLabel->setScaledContents(
true);
60 addIcon.addFile(QString::fromUtf8((
62 std::string(
"/resources/images/add_icon.png")).c_str()),
68 std::string(
"/resources/images/edit_icon.png")).c_str()),
74 std::string(
"/resources/images/remove_icon.png")).c_str()),
80 std::string(
"/resources/images/save_icon.png")).c_str()),
86 std::string(
"/resources/images/load_icon.png")).c_str()),
91 robotTreeWidget->setColumnWidth(0,150);
92 robotTreeWidget->setColumnWidth(1,60);
93 robotTreeWidget->setColumnWidth(2,20);
94 robotTreeWidget->setColumnWidth(3,20);
95 robotTreeWidget->setColumnWidth(4,20);
97 QStringList ColumnNames;
98 ColumnNames <<
"Robot parts" <<
"Info" <<
"" <<
"" <<
"";
100 robotTreeWidget->setHeaderLabels(ColumnNames);
122 robotTreeWidget->addTopLevelItem(&
robotNode);
123 robotTreeWidget->addTopLevelItem(&
lasersNode);
124 robotTreeWidget->addTopLevelItem(&
sonarsNode);
149 robotTreeWidget->resizeColumnToContents(0);
150 robotTreeWidget->resizeColumnToContents(1);
151 robotTreeWidget->resizeColumnToContents(2);
152 robotTreeWidget->resizeColumnToContents(3);
153 robotTreeWidget->resizeColumnToContents(4);
CRobotCreatorLoader(int argc, char **argv)
Default contructor.
QTreeWidgetItem robotInfoFootprint
Holds the tree items that contain the footprint points.
QTreeWidgetItem sonarsNode
Tree item for the rfid antennas root.
QTreeWidgetItem robotInfoOrientation
Tree item for the robot radius.
QTreeWidgetItem kinematicNode
Tree item for the robot orientation.
QTreeWidgetItem robotNode
Tree item for the lasers root.
QTreeWidgetItem soundSensorsNode
Tree item for the kinematic.
QTreeWidgetItem co2SensorsNode
QTreeWidgetItem rfidAntennasNode
QTreeWidgetItem robotInfoRadius
Tree item for the robot footprint.
QTreeWidgetItem lasersNode
Tree item for the sonars root.
The main namespace for STDR GUI.
QTreeWidgetItem thermalSensorsNode
QIcon editIcon
Remove icon.
QIcon loadIcon
Object of robot properties widget.
void setupInitialTree(void)
Sets up the information tree in robot creator widget.
QImage robotPreviewImage
Add icon.
QIcon removeIcon
Save icon.