Open MechatronixX opened 2 years ago
It's read here: https://github.com/ros/geometry2/blob/5d17166159a0f9e90197f37709355ce5d757bb02/tf2_py/src/tf2_py.cpp#L182
It uses PyArg_ParseTuple
and would need to be extended to use
PyArg_ParseTupleAndKeywords
to be able to use the keywords as well.
If this would be valuable to you a PR would be appreciated.
I see. Maybe just disabling named arguments in the concerned function would be fine for now? https://deepsource.io/blog/python-positional-only-arguments/
Not planning to create a PR currently.
For ROS Noetic on Ubuntu 20.04 and Python 3.8.10. When loading a
tf.py.BufferCore
with transforms, it seems it does not respect thecache_time
argument when setting it as a named argument in Python. Running the below code should generate an exception with a message along the lines ofThe error message is consistent with an hypothesis that using the
cache_time
named argument makes the constructor use the default argument. The default argument is as far as I can tell from scattered sources online a duration of 10 seconds.