Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
bool hormodular::SerialModularRobotInterface::destroy ( ) [virtual]

Stops the communication with the modular robot, closing the serial port and frees all the dynamically allocated memory.

Returns:
True if completed successfully, false otherwise

Implements hormodular::ModularRobotInterface.

{
    //-- Close serial port
    if ( serialPort && serialPort->IsOpen() )
        serialPort->Close();

    delete serialPort;
    serialPort = NULL;

    return true;
}
 All Classes Functions Variables Friends