22 #ifndef STDR_ROBOT_CREATOR_CONNECTOR 23 #define STDR_ROBOT_CREATOR_CONNECTOR 144 void addLaser(stdr_msgs::LaserSensorMsg lmsg);
187 void updateLaserTree(QTreeWidgetItem *item,stdr_msgs::LaserSensorMsg l);
218 void addSonar(stdr_msgs::SonarSensorMsg smsg);
281 void updateSonarTree(QTreeWidgetItem *item,stdr_msgs::SonarSensorMsg l);
289 void updateRfidTree(QTreeWidgetItem *item,stdr_msgs::RfidSensorMsg l);
328 void editRfid(QTreeWidgetItem *item);
void updateRfidAntenna(void)
Called when the update button of the properties widget is clicked.
void updateLaserTree(QTreeWidgetItem *item, stdr_msgs::LaserSensorMsg l)
Updates a tree item with a specific laser sensor.
void eraseCO2Sensor(QTreeWidgetItem *item)
Erases a specific co2 sensor based on a tree item.
void eraseRfid(QTreeWidgetItem *item)
Erases a specific rfid antenna sensor based on a tree item.
QTreeWidgetItem * current_laser_
Tree item of the currently clicked sonar.
void saveRfidAntenna(QTreeWidgetItem *item)
Saves a specific rfid reader sensor in a file.
QTreeWidgetItem * current_sonar_
Tree item of the currently clicked rfid.
void showMessage(QString msg)
Pops up a message box with a specific message.
int argc_
< Number of input arguments
int searchRfid(QString frameId)
Returns the ID of an rfid antenna sensor.
void drawRobot(void)
Draws a robot.
void saveThermalSensor(QTreeWidgetItem *item)
Saves a specific thermal sensor in a file.
void drawCO2Sensors(void)
Draws the robot's rfid antennas.
~CRobotCreatorConnector(void)
Default destructor.
QTreeWidgetItem * current_rfid_
void drawLasers(void)
Draws the robot's lasers.
void loadLaser(QTreeWidgetItem *item)
Loads a specific laser sensor from a file.
void updateSoundSensorTree(QTreeWidgetItem *item, stdr_msgs::SoundSensorMsg l)
Updates a tree item with a specific sound sensor.
CRobotCreatorLoader loader_
Container of the new robot message.
void initialise(void)
Initializes the robot creator.
void addFootprintPoint(void)
Adds a footprint point in the new robot.
int searchSoundSensor(QString frameId)
Returns the ID of a sound sensor.
void addSoundSensor(void)
Adds a sound sensor in the new robot.
void drawThermalSensors(void)
Draws the robot's rfid antennas.
void loadSoundSensor(QTreeWidgetItem *item)
Loads a specific sound sensor from a file.
void updateLaserOpen(void)
Called when the refresh button of the properties widget is clicked.
Implements the low level functionalities of the robot creator. Inherits form QWidget and Ui_RobotCrea...
void saveSonar(QTreeWidgetItem *item)
Saves a specific sonar sensor in a file.
static int sound_sensors_number
void updateThermalSensorTree(QTreeWidgetItem *item, stdr_msgs::ThermalSensorMsg l)
Updates a tree item with a specific thermal sensor.
void updateThermalSensor(void)
Called when the update button of the properties widget is clicked.
void eraseSoundSensor(QTreeWidgetItem *item)
Erases a specific sound sensor based on a tree item.
void loadRobotPressed(stdr_msgs::RobotMsg newRobotMsg)
Emitted when the "load robot in map" button is pressed.
unsigned int thermal_sensor_hightlight_id_
void updateRobotTree(void)
Updates the robot's tree widget.
void addLaser(void)
Adds a laser sensor in the new robot.
void updateSonar(void)
Called when the update button of the properties widget is clicked.
static int thermal_sensors_number
void addSonar(void)
Adds a sonar sensor in the new robot.
unsigned int sound_sensor_hightlight_id_
Tree item of the currently clicked laser.
void updateKinematicModel(void)
Called when the update button of the kinematic model widget is clicked.
void saveSoundSensor(QTreeWidgetItem *item)
Saves a specific sound sensor in a file.
void getRobotFromYaml(void)
Called when the load robot button.
void saveRobot(void)
Called when the save robot button is clicked.
void editThermalSensor(QTreeWidgetItem *item)
Edits a specific thermal sensor based on a tree item. \ Initiates the thermal sensor editor widget...
void updateSoundSensor(void)
Called when the update button of the properties widget is clicked.
void updateFootprintPoint(void)
Called when the update button of the footprint widget is clicked.
void updateRfidTree(QTreeWidgetItem *item, stdr_msgs::RfidSensorMsg l)
Updates a tree item with a specific rfid reader sensor.
void updateRobot(void)
Called when the update button of the properties widget is clicked.
void editCO2Sensor(QTreeWidgetItem *item)
Edits a specific co2 sensor based on a tree item. \ Initiates the co2 sensor editor widget...
void deleteTreeNode(QTreeWidgetItem *item)
Deletes a specific tree item and it's children recursively.
void updateSonarTree(QTreeWidgetItem *item, stdr_msgs::SonarSensorMsg l)
Updates a tree item with a specific sonar sensor.
QTreeWidgetItem * current_sound_sensor_
Tree item of the currently clicked footprint point.
void editSonar(QTreeWidgetItem *item)
Edits a specific sonar sensor based on a tree item. Initiates the sonar sensor editor widget...
QTreeWidgetItem * current_thermal_sensor_
void updateRobotPreview(void)
Updates the robot's preview.
void editFootprintPoint(QTreeWidgetItem *item)
Edits a specific footprint point based on a tree item. Initiates the footprint editor widget...
stdr_msgs::RobotMsg getNewRobot(void)
Returns the created robot.
int searchLaser(QString frameId)
Returns the ID of a laser sensor.
void updateSoundSensorOpen(void)
Called when the refresh button of the properties widget is clicked.
void loadRobot(void)
Called when the load robot in map button is clicked.
void updateLaser(void)
Called when the update button of the properties widget is clicked.
void updateFootprintPointOpen(void)
Called when the refresh button of the properties widget is clicked.
void addThermalSensor(void)
Adds a thermal sensor in the new robot.
float climax_
Object of CRobotCreatorLoader.
void saveLaser(QTreeWidgetItem *item)
Saves a specific laser sensor in a file.
int searchCO2Sensor(QString frameId)
Returns the ID of an co2 sensor.
void saveCO2Sensor(QTreeWidgetItem *item)
Saves a specific co2 sensor in a file.
char ** argv_
Variable that holds the proportion coefficient for the visualization of robot creator image...
int searchSonar(QString frameId)
Returns the ID of a sonar sensor.
unsigned int sonar_hightlight_id_
Current rfid antenna for highlight.
void loadRfidAntenna(QTreeWidgetItem *item)
Loads a specific rfid reader sensor from a file.
int searchThermalSensor(QString frameId)
Returns the ID of a thermal sensor.
static int laser_number
< Number of laser sensors
The main namespace for STDR GUI.
void loadSonar(QTreeWidgetItem *item)
Loads a specific sonar sensor from a file.
void treeItemClicked(QTreeWidgetItem *item, int column)
Called when a tree item is clicked.
stdr_msgs::RobotMsg new_robot_msg_
Current laser for highlight.
void drawSonars(void)
Draws the robot's sonars.
CRobotCreatorConnector(int argc, char **argv)
Default contructor.
QTreeWidgetItem * current_footprint_point_
void setNewRobot(stdr_msgs::RobotMsg msg)
Sets the created robot.
void addRfidAntenna(void)
Adds an rfid antenna sensor in the new robot.
void updateCO2SensorOpen(void)
Called when the refresh button of the properties widget is clicked.
void drawRfidAntennas(void)
Draws the robot's rfid antennas.
void setInitialPose(float x, float y)
Sets the robot's initial pose.
void editLaser(QTreeWidgetItem *item)
Edits a specific laser sensor based on a tree item. Initiates the laser sensor editor widget...
void eraseLaser(QTreeWidgetItem *item)
Erases a specific laser sensor based on a tree item.
void updateCO2Sensor(void)
Called when the update button of the properties widget is clicked.
Implements the high level functionalities of the robot creator widget. Inherits form QObject...
void updateThermalSensorOpen(void)
Called when the refresh button of the properties widget is clicked.
void drawSoundSensors(void)
Draws the robot's rfid antennas.
void editRfid(QTreeWidgetItem *item)
Edits a specific rfid antenna sensor based on a tree item. Initiates the rfid antenna sensor editor w...
QTreeWidgetItem * current_co2_sensor_
unsigned int co2_sensor_hightlight_id_
void addCO2Sensor(void)
Adds a co2 sensor in the new robot.
static int sonar_number
Number of rfid antenna sensors.
void updateRfidAntennaOpen(void)
Called when the update button of the properties widget is clicked.
void editSoundSensor(QTreeWidgetItem *item)
Edits a specific sound sensor based on a tree item. \ Initiates the sound sensor editor widget...
void eraseThermalSensor(QTreeWidgetItem *item)
Erases a specific thermal sensor based on a tree item.
void editRobot(void)
Shows the edit robot widget.
void eraseFootprintPoint(QTreeWidgetItem *item)
Erases a footprint point in the new robot.
unsigned int rfid_antenna_hightlight_id_
Current rfid antenna for highlight.
void eraseSonar(QTreeWidgetItem *item)
Erases a specific sonar sensor based on a tree item.
void loadThermalSensor(QTreeWidgetItem *item)
Loads a specific thermal sensor from a file.
unsigned int laser_hightlight_id_
Current sonar for highlight.
static int co2_sensors_number
void updateRobotOpen(void)
Called when the refresh button of the properties widget is clicked.
void saveRobotPressed(stdr_msgs::RobotMsg newRobotMsg, QString file_name)
Emitted to save the robot in a yaml file.
void updateCO2SensorTree(QTreeWidgetItem *item, stdr_msgs::CO2SensorMsg l)
Updates a tree item with a specific co2 sensor.
void updateSonarOpen(void)
Called when the refresh button of the properties widget is clicked.
void loadCO2Sensor(QTreeWidgetItem *item)
Loads a specific co2 sensor from a file.