std_msgs 0.0.2

  • Readme
  • Changelog
  • Installing
  • 54

A ROS std_msgs package for dartros

0.0.1 #

  • Initial version, starting to expose it publicly to enable pub dependency, still a work in progress

0.0.2 #

  • Better typing

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  std_msgs: ^0.0.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:std_msgs/msgs.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
47
Health:
Code health derived from static analysis. [more]
75
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
54
Learn more about scoring.

We analyzed this package on Jul 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13

Health suggestions

Fix lib/msgs.dart. (-14.82 points)

Analysis of lib/msgs.dart reported 32 hints, including:

line 2 col 33: Use lowercase_with_underscores when specifying a library prefix.

line 4 col 32: Use lowercase_with_underscores when specifying a library prefix.

line 6 col 32: Use lowercase_with_underscores when specifying a library prefix.

line 8 col 33: Use lowercase_with_underscores when specifying a library prefix.

line 10 col 41: Use lowercase_with_underscores when specifying a library prefix.

Fix lib/src/msgs/Bool.dart. (-0.50 points)

Analysis of lib/src/msgs/Bool.dart reported 1 hint:

line 6 col 8: Unused import: 'dart:convert'.

Fix lib/src/msgs/Byte.dart. (-0.50 points)

Analysis of lib/src/msgs/Byte.dart reported 1 hint:

line 6 col 8: Unused import: 'dart:convert'.

Fix additional 30 files with analysis or formatting issues. (-13.50 points)

Additional issues in the following files:

  • lib/src/msgs/ByteMultiArray.dart (1 hint)
  • lib/src/msgs/Char.dart (1 hint)
  • lib/src/msgs/ColorRGBA.dart (1 hint)
  • lib/src/msgs/Duration.dart (1 hint)
  • lib/src/msgs/Empty.dart (1 hint)
  • lib/src/msgs/Float32.dart (1 hint)
  • lib/src/msgs/Float32MultiArray.dart (1 hint)
  • lib/src/msgs/Float64.dart (1 hint)
  • lib/src/msgs/Float64MultiArray.dart (1 hint)
  • lib/src/msgs/Int16.dart (1 hint)
  • lib/src/msgs/Int16MultiArray.dart (1 hint)
  • lib/src/msgs/Int32.dart (1 hint)
  • lib/src/msgs/Int32MultiArray.dart (1 hint)
  • lib/src/msgs/Int64.dart (1 hint)
  • lib/src/msgs/Int64MultiArray.dart (1 hint)
  • lib/src/msgs/Int8.dart (1 hint)
  • lib/src/msgs/Int8MultiArray.dart (1 hint)
  • lib/src/msgs/MultiArrayLayout.dart (1 hint)
  • lib/src/msgs/Time.dart (1 hint)
  • lib/src/msgs/UInt16.dart (1 hint)
  • lib/src/msgs/UInt16MultiArray.dart (1 hint)
  • lib/src/msgs/UInt32.dart (1 hint)
  • lib/src/msgs/UInt32MultiArray.dart (1 hint)
  • lib/src/msgs/UInt64.dart (1 hint)
  • lib/src/msgs/UInt64MultiArray.dart (1 hint)
  • lib/src/msgs/UInt8.dart (1 hint)
  • lib/src/msgs/UInt8MultiArray.dart (1 hint)
  • lib/src/msgs/Header.dart (Run dartfmt to format lib/src/msgs/Header.dart.)
  • lib/src/msgs/MultiArrayDimension.dart (Run dartfmt to format lib/src/msgs/MultiArrayDimension.dart.)
  • lib/src/msgs/StringMessage.dart (Run dartfmt to format lib/src/msgs/StringMessage.dart.)

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

Running dartdoc failed with the following output: NoSuchMethodError: The getter 'attributes' was called on null. Receiver: null Tried calling: attributes

#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1      DartdocCustomizer._addPubPackageLink (package:pub_dev/dartdoc/customization.dart:168:17)
#2      DartdocCustomizer.customizeHtml (package:pub_dev/dartdoc/customization.dart:61:7)
#3      DartdocCustomizer.customizeFile (package:pub_dev/dartdoc/customization.dart:35:31)
<asynchronous suspension>
#4      DartdocCustomizer.customizeDir (package:pub_dev/dartdoc/customization.dart:26:25)
<asynchronous suspension>
#5      DartdocJobProcessor.process (package:pub_dev/dartdoc/dartdoc_runner.dart:211:14)
<asynchronous suspension>
#6      JobProcessor.run (package:pub_dev/job/job.dart:65:28)
<asynchronous suspension>
#7      JobMaintenance.run (package:pub_dev/job/job.dart:106:18)
#8      _workerMain.<anonymous closure> (package:pub_dev/service/entrypoint/dartdoc.dart:108:26)
#9      StackZoneSpecification._registerUnaryCallback.<anonymous closure>.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:26)
#10     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#11     StackZoneSpecification._registerUnaryCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:14)
#12     _rootRunUnary (dart:async/zone.dart:1192:38)
#13     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#14     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#16     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#17     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#18     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#19     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#20     DartdocJobProcessor.generateDocsForSdk (package:pub_dev/dartdoc/dartdoc_runner.dart)
#21     StackZoneSpecification._registerUnaryCallback.<anonymous closure>.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:26)
#22     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#23     StackZoneSpecification._registerUnaryCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:14)
#24     _rootRunUnary (dart:async/zone.dart:1192:38)
#25     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#26     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#27     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#28     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#29     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#30     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7)
#31     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#32     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#33     _rootRun (dart:async/zone.dart:1184:13)
#34     _CustomZone.run (dart:async/zone.dart:1077:19)
#35     _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#36     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
#37     _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#38     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#39     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#40     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

Homepage URL isn't helpful. (-10 points)

Update the homepage field from pubspec.yaml: link to a website about the package or use the source repository URL.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and std_msgs.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 < 3.0.0
buffer ^1.0.6 1.0.7
dartros ^0.0.1 0.0.3+3
Transitive dependencies
actionlib_msgs 0.0.1
characters 1.0.0
charcode 1.1.3
collection 1.14.13
convert 2.1.1
crypto 2.1.5
dartx 0.4.2
freezed_annotation 0.7.1 0.11.0
http 0.12.1
http_parser 3.1.4
json_annotation 3.0.1
logger 0.9.1
meta 1.1.8
path 1.7.0
pedantic 1.9.0 1.9.1
petitparser 3.0.4
rosgraph_msgs 0.0.2
rxdart 0.24.1
source_span 1.7.0
string_scanner 1.0.5
string_validator 0.1.4
term_glyph 1.1.0
time 1.3.0
typed_data 1.2.0
xml 4.2.0
xml_rpc 0.3.0