app
¶
Rover Control Server.
Run with
app.Rover
¶
Rover system.
Source code in collect/app.py
log
¶
Get log entries.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start
|
float
|
timestamp in seconds since epoch; if |
required |
Returns:
Type | Description |
---|---|
dict
|
A dictionary with the log entries for each sensor
( |
Source code in collect/app.py
app.RoverSensor
¶
Data collection process wrapper.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sensor
|
str
|
name of the sensor to collect data from (radar, lidar, etc). |
required |
Source code in collect/app.py
log_entries
¶
Aggregate log entries more recent than the start time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start
|
float
|
timestamp in seconds since epoch; if |
required |
Returns:
Type | Description |
---|---|
list[tuple[float, dict]]
|
A list of tuples with timestamp and log entry, where the timestamp is in seconds since epoch. |
Source code in collect/app.py
loop
¶
Run / log loop.
Source code in collect/app.py
app.command
¶
Issue command.
App route: POST:/command
Response
200
: "ok" if command was accepted400
: an error message with if the command is invalid or arguments are missing.
Source code in collect/app.py
app.index
¶
Index page.
App route: GET:/
Response
Rendered HTML.
Source code in collect/app.py
app.log
¶
Get log messages after start time.
App route: GET:/log/<start>
Response
JSON object with log entries for each sensor and the timestamp of the last entry.
Source code in collect/app.py
app.log_all
¶
Get all log messages.
App route: GET:/log
Response
JSON object with log entries for each sensor and the timestamp of the last entry. The log entries are in the format