Function hardware_interface::parse_bool

Function Documentation

bool hardware_interface::parse_bool(const std::string &bool_string)

Parse a boolean value from a string.

Parameters:

bool_string – The input string, can be “true”, “false” (case insensitive)

Throws:

std::invalid_argument – if the string is not a valid boolean representation.

Returns:

The parsed boolean value.