ros-typescript-generator icon indicating copy to clipboard operation
ros-typescript-generator copied to clipboard

workaround for https://github.com/foxglove/rosmsg/issues/39

Open jobafr opened this issue 1 year ago • 0 comments

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) Bug fix

  • What is the current behavior? (You can also link to an open issue here) foxglove/rosmsg mixes up types with the same name, which means that ros-typescript-generator generates incorrect interfaces. For a minimal example see https://github.com/foxglove/rosmsg/issues/39

  • What is the new behavior (if this is a feature change)? When a message field's type is declared without an explicit package name, assume it refers to a type in the same package.

  • Other information: This should probably be fixed upstream in foxglove/rosmsg, but their parser seems rather elaborate and I couldn't figure it out, so I reported the bug there and implemented this workaround here for the time being.

jobafr avatar Oct 09 '23 15:10 jobafr