Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Loss of Java LogTranscoder #536

@andybarry

Description

@andybarry

It looks like in the Java revamp (#527) we lost TranscoderPlugin.java. Do you intend to bring that back?

I ask because I have a great use-case for it that is difficult to do in C/C++:

  1. All my logs include a simple type that dumps the text of all of my ZCM types (to make the log self-documenting)
  2. If I only add new fields, I can get automatic log transcoding by:
  • Reading the log types out of an old log and putting them in a temp directory
  • Compiling those old types
  • Running a Java program that implements TranscoderPlugin and performs reflection on the old and the new types
  • Registers itself for all new fields (recursively) and transcodes with NaNs etc. for fields that didn't exist at the time the log was created

I have this all wrapped up so it's completely automatic and it's really cool. For me, it solves a major pain point of LCM/ZCM. I'm happy to share code on this if others are interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions