ros2_snapshot.snapshot.remapper_bank module

Simple class to hold dictionary of name to remapped key.

Use to invert the references from key to data Supports a one-to-many re-mapping

class ros2_snapshot.snapshot.remapper_bank.RemapperBank

Bases: object

Remapper from data to key for various banks.

add_remap(data_name, key)

Add a remapping from data_name to key.

Supports a one-to-many mapping

Parameters:
  • data_name (str) – the new key

  • key – the old key to data

property items
Returns:

the key, value pairs for remapper bank.

property keys
Returns:

the keys for remapper bank.