Giter Club home page Giter Club logo

omgidl's Introduction

Foxglove OMG IDL

This repo contains implementations of OMG IDL specifications used by Foxglove. The parsers expect schemas according to the MCAP specifications: ros2idl, omgidl.

Package name Description Reference Version
@foxglove/omgidl-parser Parse OMG IDL schemas – README Interface Definition Language Specification
@foxglove/omgidl-serialization De/Serialize data using IDL to CDR and CDR2 – README Extensible and Dynamic Types for DDS Specification
@foxglove/ros2idl-parser Parse the ROS 2 dialect of IDL – README article, repo

See known limitations here: Parser/Grammar Limitations Serialization Limitations

Setup

corepack enable
yarn install

Test

If it's your first time building, you'll need to run yarn build.

Then to run test cases across all packages run yarn test from the root directory.

Note: to ensure that tests from a downstream in-repo dependency are running against the latest upstream version of code, you'll have to run yarn build every time you change the upstream dependency.

The dependency flow is as follows:

  • @foxglove/omgidl-serialization depends on @foxglove/omgidl-parser
  • @foxglove/ros2idl-parser depends on @foxglove/omgidl-parser

Deploy packages

  1. Open a PR updating the version of the packages that have new versions that need to be deployed.
  2. Land PR with change of version numbers and pull the latest on main locally
  3. Add git tags for each package you'd like to publish using the following prefixes
    • @foxglove/omgidl-parser -> omgidl-parser/vX.X.X
    • @foxglove/omgidl-serialization -> omgidl-serialization/vX.X.X
    • @foxglove/ros2idl-parser -> ros2idl-parser/vX.X.X
  4. For example: if you're updating @foxglove/omgidl-parser to v1.2.1 you would add the corresponding git tag by running git tag omgidl-parser/v1.2.1. For updating multiple packages on a single commit you can add multiple tags: git tag omgidl-parser/v1.2.1 omgidl-serialization/v1.1.3 .
  5. After adding the tag run git push origin refs/tags/<tag> to push the specific tag to the remote

Stay in touch

Join our Slack channel to ask questions, share feedback, and stay up to date on what our team is working on.

License

foxglove/omgidl and its packages are licensed under the MIT License.

omgidl's People

Contributors

achim-k avatar amacneil avatar bryfox avatar dependabot[bot] avatar jtbandes avatar snosenzo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

omgidl's Issues

#includes not supported in IDL

Description

  • Version: omgidl-parser/v1.0.3
  • Platform: Ubuntu 22.04

Steps To Reproduce
Create an IDL file this is dependent on another IDL file. Include the contents of the other IDL file using #include<Examples.idl>.

Expected Behavior
The parser recognizes the defined structures in the other idl.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.