ros2 crystal rqt_plot error: find() takes no keyword arguments
I'm using rqt_plot and having trouble. I noticed that there are a lot of these error messages generated when I'm trying to add a field to the plot:
$ ros2 run rqt_plot rqt_plot
Traceback (most recent call last):
File "/opt/ros/crystal/lib/python3.6/site-packages/rqt_plot/plot_widget.py", line 256, in on_topic_edit_textChanged
plottable, message = is_plottable(self._node, topic_name)
File "/opt/ros/crystal/lib/python3.6/site-packages/rqt_plot/plot_widget.py", line 151, in is_plottable
fields, message = get_plot_fields(node, topic_name)
File "/opt/ros/crystal/lib/python3.6/site-packages/rqt_plot/plot_widget.py", line 135, in get_plot_fields
slot_type, is_array, array_size = _parse_type(slot_type)
File "/opt/ros/crystal/lib/python3.6/site-packages/rqt_plot/plot_widget.py", line 57, in _parse_type
end_array_idx = topic_type_str.find(']', start=array_idx + 1)
TypeError: find() takes no keyword arguments
It seems that plot_widget.py expects topic_type_str
to be of type string
, but it's of type str
instead. Am I missing some dependency? Thanks.