ros / dynamic_reconfigure

BSD 3-Clause "New" or "Revised" License
48 stars 111 forks source link

Make Config object pickle-able in Python 3 #154

Closed cottsay closed 4 years ago

cottsay commented 4 years ago

In Python 3, .items() returns a dict_items object, which can't easily be pickled. In Python 2, .items() returns a list of tuples, which can be pickled.

To maintain pickle-ability, convert the dict_items into a list.

rqt_reconfigure has a feature which saves current Dynamic Reconfigure configuration to a file, which is broken in Noetic without this change.