#include <epuckMonitor.h>
Public Slots | |
void | connect () |
void | disconnect () |
void | updateParameters () |
void | goUp () |
void | goDown () |
void | goLeft () |
void | goRight () |
void | stop () |
void | led0 () |
void | led1 () |
void | led2 () |
void | led3 () |
void | led4 () |
void | led5 () |
void | led6 () |
void | led7 () |
void | led8 () |
void | led9 () |
void | sound1 () |
void | sound2 () |
void | sound3 () |
void | sound4 () |
void | sound5 () |
void | sensorActivation () |
void | continuousActivation () |
void | updateSpeed () |
void | binarySensorsUpdate () |
void | asciiSensorsUpdate () |
void | cameraUpdate () |
void | getImage () |
Public Member Functions | |
void | activateThreads () |
void | deactivateThreads () |
Public Attributes | |
int | motorSpeed |
MyThread * | binarySensorThread |
MyThread2 * | asciiSensorThread |
ThreadCapture * | cameraThread |
bool | imgReceived |
SerialComm * | serial |
void EpuckMonitor::activateThreads | ( | ) |
activate the threads accordingly to the user specification (checkboxes "Activate Sensors" and "Continuous")
void EpuckMonitor::deactivateThreads | ( | ) |
deactivate all the running threads
void EpuckMonitor::connect | ( | ) | [slot] |
called when the "Connect" button is clicked; initialize the connection and the threads
void EpuckMonitor::disconnect | ( | ) | [slot] |
called when the "Disconnect" button is clicked; stop the connection and the threads if they are running
void EpuckMonitor::updateParameters | ( | ) | [slot] |
called when the "Send Parameters" button is clicked; send the command to the robot to change the camera parameters
void EpuckMonitor::goUp | ( | ) | [slot] |
called when the "F" button is clicked; send the command to move forward the robot
void EpuckMonitor::goDown | ( | ) | [slot] |
called when the "B" button is clicked; send the command to move backward the robot
void EpuckMonitor::goLeft | ( | ) | [slot] |
called when the "L" button is clicked; send the command to turn left the robot
void EpuckMonitor::goRight | ( | ) | [slot] |
called when the "R" button is clicked; send the command to turn right the robot
void EpuckMonitor::stop | ( | ) | [slot] |
called when the "S" button is clicked; send the command to stop the robot
void EpuckMonitor::led0 | ( | ) | [slot] |
called when the "LED0" checkbox is checked/unchecked; send the command to turn on/off the LED0
void EpuckMonitor::led1 | ( | ) | [slot] |
called when the "LED1" checkbox is checked/unchecked; send the command to turn on/off the LED1
void EpuckMonitor::led2 | ( | ) | [slot] |
called when the "LED2" checkbox is checked/unchecked; send the command to turn on/off the LED2
void EpuckMonitor::led3 | ( | ) | [slot] |
called when the "LED3" checkbox is checked/unchecked; send the command to turn on/off the LED3
void EpuckMonitor::led4 | ( | ) | [slot] |
called when the "LED4" checkbox is checked/unchecked; send the command to turn on/off the LED4
void EpuckMonitor::led5 | ( | ) | [slot] |
called when the "LED5" checkbox is checked/unchecked; send the command to turn on/off the LED5
void EpuckMonitor::led6 | ( | ) | [slot] |
called when the "LED6" checkbox is checked/unchecked; send the command to turn on/off the LED6
void EpuckMonitor::led7 | ( | ) | [slot] |
called when the "LED7" checkbox is checked/unchecked; send the command to turn on/off the LED7
void EpuckMonitor::led8 | ( | ) | [slot] |
called when the "LED8" checkbox is checked/unchecked; send the command to turn on/off the body led
void EpuckMonitor::led9 | ( | ) | [slot] |
called when the "LED9" checkbox is checked/unchecked; send the command to turn on/off the front led
void EpuckMonitor::sound1 | ( | ) | [slot] |
called when the "1" button is clicked; send the command to play the first sound
void EpuckMonitor::sound2 | ( | ) | [slot] |
called when the "2" button is clicked; send the command to play the second sound
void EpuckMonitor::sound3 | ( | ) | [slot] |
called when the "3" button is clicked; send the command to play the third sound
void EpuckMonitor::sound4 | ( | ) | [slot] |
called when the "4" button is clicked; send the command to play the fourth sound
void EpuckMonitor::sound5 | ( | ) | [slot] |
called when the "5" button is clicked; send the command to play the fifth sound
void EpuckMonitor::sensorActivation | ( | ) | [slot] |
called when the "Activate Sensors" checkbox is checked/unchecked; activate/deactivate the threads for receiveing data from the sensors
void EpuckMonitor::continuousActivation | ( | ) | [slot] |
called when the "Continuous" checkbox is checked/unchecked; activate/deactivate the thread for receiveing images from the camera
void EpuckMonitor::updateSpeed | ( | ) | [slot] |
called when the slider changes its state; update the "motorSpeed" variable accordingly
void EpuckMonitor::binarySensorsUpdate | ( | ) | [slot] |
called when the "binaraySensorThread" terminates; update the graphical objects accordingly to the received data
void EpuckMonitor::asciiSensorsUpdate | ( | ) | [slot] |
called when the "asciiSensorThread" terminates; update the graphical objects accordingly to the received data
void EpuckMonitor::cameraUpdate | ( | ) | [slot] |
called when the "cameraThread" terminates; update the image accordingly to the received data
void EpuckMonitor::getImage | ( | ) | [slot] |
called when the "Get Image" button is clicked; start the "cameraThread" in order to receive an image from the robot
used to store the value of the velocity changed with the slider
thread pointer to MyThread, desigend to send binary commands to the E-Puck robot
thread pointer to MyThread2, designed to send ascii commands to the E-Puck robot
thread pointer to ThreadCapture, designed to receive images from the E-Puck robot
indicate whether or not the image was received completely
pointer to the serial port for the bluetooth device (Linux, MacOS)