gkjohnson / xacro-parser

Utility for parsing and converting ROS Xacro files in Javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parsed files with includes have huge amounts of whitespace and include Xacro comments

gkjohnson opened this issue · comments

See generated Valkyrie URDF xacro. It may be best to just trim all newline whitespace? How does python xacro handle this?

It looks like newlines and comments before a xacro node are stripped: https://github.com/ros/xacro/blob/melodic-devel/src/xacro/__init__.py#L792-L809

While it's not exactly the same as the python xacro parser I'm going to call this good enough for now