lcm-gen(1)

NAME
lcm-gen - code generation tool.

SYNOPSIS

lcm-gen [options] FILE...

DESCRIPTION

lcm-gen is the Lightweight Communications and Marshalling code generation utility. It takes as input one or more .lcm files containing LCM message type definitions, and generates language-specific bindings for marshalling and unmarshalling messages of the specified types. Currently, lcm-gen is capable of generating language bindings for C, Python, and Java. One or more of -j, -c, or -p must be specified.

OPTIONS
The following options are provided by lcm-gen:

-c, --c
    Emit C code.

--c-cpath DIR
    Destination directory for generated .c files. (default: current directory)

--c-hpath DIR
    Destination directory for generated .h files. (default: current directory)

--cinclude DIR
    Generated #include lines reference this directory

-j, --java
    Emit Java code.

--jpath DIR
    Destination base directory for generated Java files. (default: current directory)

-p, --python
    Emit Python code.

--ppath DIR
    Destination base directory for generated Python files. (default: current directory)

--lazy
    Generate output file only if .lcm is newer than output file (or if output file does not already exist).

-d, --debug
    Show parsed files

-t, --tokenize
    Show tokenization

-h  Prints this help text and exits.

AUTHORS
This manual page was written by Albert Huang <ashuang@alum.mit.edu>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.