Represents the response to a generic InertialNode command
Creates an InertialCmdResponse with default values
InertialCmdResponse( |
| ) |
Creates an InertialCmdResponse with the given parameters
state ResponsePattern::State | The state of the response |
success bool | Whether or not the response was a success |
errorCode InertialPacket::MipAckNack | The MIP Ack/Nack error code received |
cmdName std::string | The name of the command that this response corresponds to |
The state of the response, which determines which exceptions are thrown, if any
Whether or not the response was a success
The MIP ack/nack that was received with the packet
The name of the command that this response corresponds to (to be used in error descriptions)
Throws an exeption if the response was a failure.
Error_Communication: There was no response to the command. The command timed out.
Error_InertialCmdFailed: The command has failed. Check the error code for more details.
Gets whether or not the command was a success.
true if the command was a success, false otherwise
Error: The function was called before there was a response to the command (uninitialized)
Gets the MIP ack/nack error code that was returned
The MIP ack/nack error code as a <InertialPacket::MipAckNack>