When use the node.getSystemState() function, it occurs the error:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'List<Object?>' is not a subtype of type 'List<String>' in type cast
#0 RosXmlRpcClient.getSystemState (package:dartros/src/ros_xmlrpc_client.dart:318:58)
<asynchronous suspension>
Fixed
The reason is that dart can not directly convert List<Object?> to List<String?>, I have used another way to implement the convertion.
Env
Problem
When use the
node.getSystemState()
function, it occurs the error:Fixed
The reason is that dart can not directly convert
List<Object?>
toList<String?>
, I have used another way to implement the convertion.