Undocumented
Module | cli |
Undocumented |
Module | color |
No module docstring; 0/1 variable, 1/5 function documented |
Module | xmlutils |
No module docstring; 3/7 functions documented |
From __init__.py
:
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Wrapper class providing dotted access to dict items |
Class |
|
Wrapper class for yaml lists to allow recursive inheritance of wrapper property |
Exception |
|
XacroException allows to wrap another exception (exc) and to augment its error message: prefixing with msg and suffixing with suffix. str(e) finally prints: msg str(exc) suffix |
Function | abs |
Prepend the dirname of the currently processed file if filename_spec is not yet absolute |
Function | check |
Helper routine to fetch required and optional attributes and complain about any additional attributes. :param tag (xml.dom.Element): DOM element node :param required [str]: list of required attributes :param optional [str]: list of optional attributes... |
Function | construct |
utility function for converting degrees into radians from yaml |
Function | construct |
utility function to construct radian values from yaml |
Function | create |
Undocumented |
Function | eval |
Recursively evaluate node, expanding macros, replacing properties, and evaluating expressions |
Function | eval |
Undocumented |
Function | eval |
Undocumented |
Function | eval |
Undocumented |
Function | get |
Return a boolean value that corresponds to the given Xacro condition value. Values "true", "1" and "1.0" are supposed to be True. Values "false", "0" and "0.0" are supposed to be False. All other values raise an exception. |
Function | get |
Undocumented |
Function | grab |
Undocumented |
Function | grab |
Undocumented |
Function | handle |
Undocumented |
Function | handle |
Undocumented |
Function | import |
import all namespace declarations into parent |
Function | init |
Undocumented |
Function | is |
Checks whether name is a valid property or macro identifier. With python-based evaluation, we need to avoid name clashes with python keywords. |
Function | load |
Undocumented |
Function | main |
Undocumented |
Function | open |
Undocumented |
Function | parse |
Parse input or filename into a DOM tree. If inp is None, open filename and load from there. Otherwise, parse inp, either as string or file object. If inp is already a DOM tree, this function is a noop. ... |
Function | parse |
parse the first param spec from a macro parameter string s accepting the following syntax: <param>[:=|=][^|]<default> :param s: param spec string :return: param, (forward, default), rest-of-string |
Function | print |
Undocumented |
Function | process |
Undocumented |
Function | process |
main processing pipeline |
Function | process |
Undocumented |
Function | remove |
remove consecutive comments in front of the xacro-specific node |
Function | resolve |
Undocumented |
Function | safe |
Undocumented |
Function | tokenize |
Undocumented |
Constant | LEXER |
Undocumented |
Variable | all |
Undocumented |
Variable | default |
Undocumented |
Variable | encoding |
Undocumented |
Variable | filestack |
Undocumented |
Variable | include |
Undocumented |
Variable | macrostack |
Undocumented |
Variable | re |
Undocumented |
Variable | substitution |
Undocumented |
Variable | verbosity |
Undocumented |
Variable | _empty |
Undocumented |
Variable | _global |
Undocumented |
Helper routine to fetch required and optional attributes and complain about any additional attributes. :param tag (xml.dom.Element): DOM element node :param required [str]: list of required attributes :param optional [str]: list of optional attributes
Checks whether name is a valid property or macro identifier. With python-based evaluation, we need to avoid name clashes with python keywords.
parse the first param spec from a macro parameter string s accepting the following syntax: <param>[:=|=][^|]<default> :param s: param spec string :return: param, (forward, default), rest-of-string
forward will be either param or None (depending on whether ^ was specified) default will be the default string or None If there is no default spec at all, the middle pair will be replaced by None
Undocumented
Value |
|
Return a boolean value that corresponds to the given Xacro condition value. Values "true", "1" and "1.0" are supposed to be True. Values "false", "0" and "0.0" are supposed to be False. All other values raise an exception.
Parameters | |
value | The value to be evaluated. The value has to already be evaluated by Xacro. |
condition | The original condition text in the XML. |
Returns | |
The corresponding boolean value, or a Python expression that, converted to boolean, corresponds to it. | |
Raises | |
ValueError | If the condition value is incorrect. |