41 bag =
rosbag.Bag(
"test/migrated_explicit_gen1.bag",
"w")
42 m = MigratedExplicit(
None, 17, 58.2,
"aldfkja")
43 bag.write(
"migrated_explicit", m, genpy.Time())
46 bag =
rosbag.Bag(
"test/migrated_implicit_gen1.bag",
"w")
47 m = MigratedImplicit(
None, 34, 16.32,
"kljene", MigratedExplicit(
None, 17, 58.2,
"aldfkja"))
48 bag.write(
"migrated_implicit", m, genpy.Time())
51 bag =
rosbag.Bag(
"test/migrated_mixed_gen1.bag",
"w")
52 m = MigratedMixed(
None, MigratedImplicit(
None, 34, 16.32,
"kljene", MigratedExplicit(
None, 17, 58.2,
"aldfkja")))
53 bag.write(
"migrated_mixed", m, genpy.Time())
56 bag =
rosbag.Bag(
"test/migrated_addsub_gen1.bag",
"w")
57 m = MigratedAddSub(Simple(42))
58 bag.write(
"migrated_addsub", m, genpy.Time())
61 bag =
rosbag.Bag(
"test/unmigrated_gen1.bag",
"w")
62 m = Unmigrated(12,
"uuiasjs")
63 bag.write(
"unmigrated", m, genpy.Time())
66 bag =
rosbag.Bag(
"test/subunmigrated_gen1.bag",
"w")
67 m = SubUnmigrated(92, Unmigrated(12,
"uuiasjs"))
68 bag.write(
"subunmigrated", m, genpy.Time())
71 bag =
rosbag.Bag(
"test/partially_migrated_gen1.bag",
"w")
72 m = PartiallyMigrated(40, MigratedExplicit(
None, 17, 58.2,
"aldfkja"))
73 bag.write(
"partially_migrated", m, genpy.Time())
77 m = Renamed1(2.17, [8, 2, 5])
78 bag.write(
"renamed", m, genpy.Time())
81 bag =
rosbag.Bag(
"test/convergent_gen1.bag",
"w")
82 m = Convergent(1.2, 3.4, 5.6, 7.8, SimpleMigrated(11), SimpleMigrated(22), SimpleMigrated(33), SimpleMigrated(44))
83 bag.write(
"convergent", m, genpy.Time())
86 bag =
rosbag.Bag(
"test/converged_gen1.bag",
"w")
87 m = Converged([1.2, 3.4, 5.6, 7.8], [SimpleMigrated(11), SimpleMigrated(22), SimpleMigrated(33), SimpleMigrated(44)])
88 bag.write(
"converged", m, genpy.Time())
91 bag =
rosbag.Bag(
"test/constants_gen1.bag",
"w")
92 m = Constants(Constants.CONSTANT)
93 bag.write(
"constants", m, genpy.Time())
96 if __name__ ==
'__main__':