Feature request: abs() function in ${.} expressions
mfbehrens99 opened this issue · comments
While implementing some too complicated calculations in xacro I noticed that python's abs
is not usable in xacro.
Sorry if it is available, but I could not find it in the python
nor in the math
namespace, and I could not find it in any documentation.
I can reproduce the missing abs
function. However, I don't understand why it is missing. Here is a simple alternative: Use fabs
:
<bar function="${fabs(-3)}"/>
Thank you! That would fix it.
I created a pull request to add support for abs. If you want to merge it, do so, otherwise just close it.
Fixed via d9b6679