Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
bool hormodular::SerialModularRobotInterface::setProperty ( std::string  property,
std::string  value 
) [virtual]

Configure a property or parameter of the interface.

Parameters:
propertyProperty to be changed. Currently, only the "LED" property is available, which controls the onboard LED.
valueValue to be set on the property. For "LED", the only available value is "toggle".
Returns:
True if completed successfully, false otherwise

Reimplemented from hormodular::ModularRobotInterface.

{
    if ( property.compare("LED") == 0)
    {
        if ( value.compare("toggle") == 0)
            toggleLED();
        else
        {
            std::cerr << "[SerialModRobInterface] Error: value: " << value << " for property: " << property
                      << " does not exist" << std::endl;
            return false;
        }
    }
    return true;
}
 All Classes Functions Variables Friends