LCM

LCM package __init__.py file This file automatically generated by lcm-gen. DO NOT MODIFY BY HAND!!!!

Classes:

SensorData(sensor_type, channel)

Wrapper class for the various types of publishable sensor data.

Functions:

gen(lang[, path, headers])

Generates LCM files for sensors in whatever language requested.

class holoocean.lcm.SensorData(sensor_type, channel)

Wrapper class for the various types of publishable sensor data.

Parameters:
  • sensor_type (str) – Type of sensor to be imported

  • channel (str) – Name of channel to publish to.

Methods:

set_value(timestamp, value)

Set value in respective sensor class.

set_value(timestamp, value)

Set value in respective sensor class.

Parameters:
  • timestamp (int) – Number of milliseconds since last data was published

  • value (list) – List of sensor data to put into LCM sensor class

holoocean.lcm.gen(lang, path='.', headers=None)

Generates LCM files for sensors in whatever language requested.

Parameters:
  • lang (str) – One of “cpp”, “c”, “java”, “python”, “lua”, “csharp”, “go”

  • path (str, optional) – Location to save files in. Defaults to current directory.

  • headers (str, optional) – Where to store .h files for C . Defaults to same as c files, given by path arg.