Package rosbag :: Module migration
[frames] | no frames]

Module migration

source code

Classes
  BagMigrationException
  MessageUpdateRule
  RuleChain
  ScaffoldNode
  MessageMigrator
Functions
 
checkbag(migrator, inbag)
Check whether a bag file can be played in the current system.
source code
 
checkmessages(migrator, messages)
Check whether a bag file can be played in the current system.
source code
 
fixbag(migrator, inbag, outbag) source code
 
fixbag2(migrator, inbag, outbag, force=False) source code
 
clean_name(name, top_name) source code
 
qualified_name(name, top_name) source code
 
get_message_key(c) source code
 
get_path_key(c1, c2) source code
 
migration_default_value(field_type) source code
 
constants_from_def(core_type, msg_def) source code
Variables
  __package__ = 'rosbag'
Function Details

checkbag(migrator, inbag)

source code 

Check whether a bag file can be played in the current system.

Parameters:
  • migrator - message migrator to use @param inbag name of the bag to be checked. @returns A list of tuples for each type in the bag file. The first element of each tuple is the full migration path for the type. The second element of the tuple is the expanded list of invalid rules for that particular path.

checkmessages(migrator, messages)

source code 

Check whether a bag file can be played in the current system. @param migrator The message migrator to use @param message_list A list of message classes. @returns A list of tuples for each type in the bag file. The first element of each tuple is the full migration path for the type. The second element of the tuple is the expanded list of invalid rules for that particular path.