Skip to content
Snippets Groups Projects
  • Ramin Yaghoubzadeh Torky's avatar
    3de37b65
    C++ and Python: parse ipaaca.conf in cwd or ~/.config/ · 3de37b65
    Ramin Yaghoubzadeh Torky authored
    The C++ parser is very minimal and ignores section markers (in our
    case there isn't really any need for different sections anyway).
    Python expects one section [ipaaca] - the format of the files
    is otherwise standard ConfigParser / ini:
    
    [ipaaca]
    
    transport.mqtt.host=localhost
    transport.mqtt.port=1883
    
    backend=ros
    
    You can override any of those using an environment variable
    e.g. IPAACA_TRANSPORT_MQTT_HOST for transport.mqtt.host
    3de37b65
    History
    C++ and Python: parse ipaaca.conf in cwd or ~/.config/
    Ramin Yaghoubzadeh Torky authored
    The C++ parser is very minimal and ignores section markers (in our
    case there isn't really any need for different sections anyway).
    Python expects one section [ipaaca] - the format of the files
    is otherwise standard ConfigParser / ini:
    
    [ipaaca]
    
    transport.mqtt.host=localhost
    transport.mqtt.port=1883
    
    backend=ros
    
    You can override any of those using an environment variable
    e.g. IPAACA_TRANSPORT_MQTT_HOST for transport.mqtt.host