pamoja for TypeScript - v0.1.17
    Preparing search index...

    Variable cdrConst

    cdr: {
        reader: (data: Buffer) => ros2.CdrReader;
        twistFromBytes: typeof ros2TwistFromCdr;
        twistToBytes: typeof ros2TwistToCdr;
        writer: () => ros2.CdrWriter;
    }

    The CDR encoding a ROS 2 payload travels in.

    Type Declaration

    • Readonlyreader: (data: Buffer) => ros2.CdrReader

      Creates a decoder over encoded bytes.

    • ReadonlytwistFromBytes: typeof ros2TwistFromCdr

      Decodes a twist from its CDR representation, or null if the bytes are not a well-formed twist.

    • ReadonlytwistToBytes: typeof ros2TwistToCdr

      Encodes a twist into its CDR representation.

    • Readonlywriter: () => ros2.CdrWriter

      Creates an encoder with the encapsulation header already written.