Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not a real answer, but have you perhaps considered using genmsg for this? Seegenmsg/test/test_genmsg_gentools.py for some examples.

Not a real answer, but have you perhaps considered using genmsg for this? SeeSee genmsg/test/test_genmsg_gentools.py for some examples.

Not a real answer, but have you perhaps considered using genmsg for this? See genmsg/test/test_genmsg_gentools.py for some examples.


Edit: just to be complete:

msg_context = genmsg.msg_loader.MsgContext.create_default()
full_type_name = genmsg.gentools.compute_full_type_name(package_name, os.path.basename(input_file))
spec = genmsg.msg_loader.load_msg_from_file(msg_context, input_file, full_type_name)
search_path = genmsg.command_line.includepath_to_dict(include_path)
genmsg.msg_loader.load_depends(msg_context, spec, search_path)

md5sum = genmsg.gentools.compute_md5(msg_context, spec)

Mostly creative copy/paste from the genmsg package.