Ros-typescript-generator: A CLI for generating typescript types from ros msg files

ros-typescript-generator is a CLI for generating typescript interfaces and enums from ros1 and ros2 msg and srv files.

Unlike rostsd-gen, this ONLY generates ts types and enums. This means the output does not include any nodejs dependencies. In fact, it has no runtime dependencies at all. It creates typescript interfaces rather than classes. This makes it good option for any frontend project. It creates something like this


In addition - If there is interest I can have a look at open-sourcing some of my other work that leverages this, roslibjs and recoil to make a very fast, flexible, typesafe state container that works very well for ROS frontends written in react.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.