ros2dart / dartros1

A ROS1 client library for dart
Apache License 2.0
20 stars 11 forks source link

fixed getSystemState() error #48

Closed codehasbug closed 1 year ago

codehasbug commented 1 year ago

Env

Problem

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.

TimWhiting commented 1 year ago

Thanks, I'll run the CI and deploy an updated version later today.