41 bag =
rosbag.Bag(
"test/migrated_explicit_gen2.bag",
"w")
42 m = MigratedExplicit(
None, 17, 58.2,
"aldfkja", 82)
43 bag.write(
"migrated_explicit", m, genpy.Time())
46 bag =
rosbag.Bag(
"test/migrated_implicit_gen2.bag",
"w")
47 m = MigratedImplicit(
None, 34, 16.32,
"kljene", MigratedExplicit(
None, 17, 58.2,
"aldfkja", 82))
48 bag.write(
"migrated_implicit", m, genpy.Time())
51 bag =
rosbag.Bag(
"test/migrated_mixed_gen2.bag",
"w")
52 m = MigratedMixed(
None, MigratedImplicit(
None, 34, 16.32,
"kljene", MigratedExplicit(
None, 17, 58.2,
"aldfkja", 82)))
53 bag.write(
"migrated_mixed", m, genpy.Time())
56 bag =
rosbag.Bag(
"test/partially_migrated_gen2.bag",
"w")
57 m = PartiallyMigrated(40, MigratedExplicit(
None, 17, 58.2,
"aldfkja", 82))
58 bag.write(
"partially_migrated", m, genpy.Time())
62 m = Renamed2(2.17, [8, 2, 5])
63 bag.write(
"renamed", m, genpy.Time())
66 bag =
rosbag.Bag(
"test/convergent_gen2.bag",
"w")
67 m = Convergent(1.2, 3.4, 5.6, 7.8, SimpleMigrated(11), SimpleMigrated(22), SimpleMigrated(33), SimpleMigrated(44))
68 bag.write(
"convergent", m, genpy.Time())
71 bag =
rosbag.Bag(
"test/converged_gen2.bag",
"w")
72 m = Converged([1.2, 3.4, 5.6, 7.8], [SimpleMigrated(11), SimpleMigrated(22), SimpleMigrated(33), SimpleMigrated(44)])
73 bag.write(
"converged", m, genpy.Time())
76 bag =
rosbag.Bag(
"test/constants_gen2.bag",
"w")
77 m = Constants(Constants.CONSTANT)
78 bag.write(
"constants", m, genpy.Time())
81 if __name__ ==
'__main__':