werobos_command_helper 0.0.1
werobos_command_helper: ^0.0.1 copied to clipboard
A simple package that provides standardized robot commands (sit, stand, walk, follow, alert) for robotics projects.
example/main.dart
import 'package:werobos_command_helper/werobos_command_helper.dart';
void main() {
// Example usage
final cmd = WerobosCommand.sit;
final code = WerobosCommandHelper.toCode(cmd);
print("Enum: $cmd"); // Enum: WerobosCommand.sit
print("Code: $code"); // Code: CMD_SIT
final parsed = WerobosCommandHelper.fromCode("CMD_WALK");
print("Parsed: $parsed"); // Parsed: WerobosCommand.walk
}