xacro-parser

Utility for parsing and converting ROS Xacro files in Javascript.

MIT License

Downloads
3.8K
Stars
23
Committers
9

Bot releases are visible (Hide)

xacro-parser - Latest Release

Published by gkjohnson almost 2 years ago

Added

  • Exposed the expression parser so functions can be added and extended.
  • Support for dictionary reading in expressions.
  • New arguments to the cli.
xacro-parser -

Published by gkjohnson over 2 years ago

Fixed

  • Move typescript from dependencies to dev dependencies.
xacro-parser -

Published by gkjohnson over 2 years ago

Added

  • XacroParser: Support for default "args" and "arguments" object.
xacro-parser -

Published by gkjohnson over 2 years ago

Fixed

  • Added missing command type for rospackCommand callback
xacro-parser -

Published by gkjohnson almost 3 years ago

Fixed

  • Comments are no longer processed as part of the xacro tag parsing.
xacro-parser -

Published by gkjohnson almost 3 years ago

Added

  • Support for the "=" syntax as well as ":=" for macro parameters.
xacro-parser -

Published by gkjohnson about 3 years ago

Fixed

  • Type definitions not working for Typescript users
xacro-parser -

Published by gkjohnson about 3 years ago

Fixed

  • XacroLoader typescript definitions.
  • Node package.json incorrectly using a module file in the "main" field.
xacro-parser -

Published by gkjohnson over 3 years ago

Fixed

  • Type definitions not exporting correctly.
xacro-parser -

Published by gkjohnson over 3 years ago

Added

  • Support for default macro values specified using single quotes.
  • Support for not operator.

Changed

  • Added "type": "module" and "sideEffects": false to the package.json.

Fixed

  • Typescript definitions exporting the XacroLoader and XacroParser classes incorrectly.
  • ! operator performing a factorial rather than a boolean inversion.
  • || operator performing concatenation rather than boolean OR. Note that the && operator is not currently supported by expr-eval which is used for expressions. Instead and can be used.
xacro-parser -

Published by gkjohnson almost 4 years ago

Added

  • Option to pass a function as the rospack commands option.

Fixed

  • XacroLoader: throw a human readable error if fetch fails.
xacro-parser -

Published by gkjohnson almost 4 years ago

Added

  • Support for radians and degrees functions in xacro expressions.

Fix

  • README typo.
  • Case where a file separator would be added to the working path even if it wasn't specified.
xacro-parser -

Published by gkjohnson over 4 years ago

Fix

  • Dependency warnings.
xacro-parser -

Published by gkjohnson over 4 years ago

Changed

  • Package and build to use a single index.js file.
xacro-parser -

Published by gkjohnson over 4 years ago

Added

  • Add support for basic math functions in expressions.

Changed

  • Use expr-eval package instead of new Function for expression evaluation.
  • Remove comments that preceed xacro elements.
  • Throw errors rather than log warnings when a xacro fails to be created properly.
xacro-parser -

Published by gkjohnson almost 5 years ago

Changed

  • Changed the XacroLoader parse and load signatures to accept an onError callback and removed the options parameter.
xacro-parser -

Published by gkjohnson about 5 years ago

Initial release