This flask application visualizes the locus of ROS robot.
This application works as a component of FIWARE.
This application retrieves a series of positions and euler angles of robot from FIWARE cygnus, and visualizes it as a robot locus using d3.js.
- v1
- the API v1 retrieves a series of positions from MongoDB directly.
- v2
- the API v2 retrieves a series of posisions through FIWARE STH-Comet.
python 3.6 or higer
This application accepts the Environment Variables like below:
Environment Variable | Summary | Default |
---|---|---|
LOG_LEVEL |
log level(DEBUG, INFO, WARNING, ERRRO, CRITICAL) | INFO |
LISTEN_PORT |
listen port of this service | 3000 |
PREFIX |
the prefix specified as the ambassador's annotation | |
BEARER_AUTH |
Bearer Auth token used by ajax request | |
MONGODB_ENDPOINT |
the endpoint of MongoDB which is used by FIWARE cygnus (like mongodb:27017 ) |
|
MONGODB_REPLICASET |
the replicaset name of MongoDB which is used by FIWARE cygnus (like rs0 ) |
|
MONGODB_DATABASE |
the database name of MongoDB which is used by FIWARE cygnus | |
MONGODB_COLLECTION |
the collection name of MongoDB which is used by FIWARE cygnus | |
CYGNUS_MONGO_ATTR_PERSISTENCE |
the data style of cygnus-mongo ('column' or 'row') |
Environment Variable | Summary | Default |
---|---|---|
API_VERSION |
set v2 explicitly if you use API v2 |
|
LOG_LEVEL |
log level(DEBUG, INFO, WARNING, ERRRO, CRITICAL) | INFO |
LISTEN_PORT |
listen port of this service | 3000 |
PREFIX |
the prefix specified as the ambassador's annotation | |
BEARER_AUTH |
Bearer Auth token used by ajax request | |
COMET_ENDPOINT |
the endpoint of FIWARE STH-Comet (like http://comet:8666 ) |
|
FIWARE_SERVICE |
the FIWARE SERVICE of an entity to be retrieved the historical data | |
FIWARE_SERVICEPATH |
the FIWARE SERVICEPATH of an entity to be retrieved the historical data | |
ENTITY_TYPE |
the entity type of an entity to be retrieved the historical data | |
ENTITY_ID |
the entity id of an entity to be retrieved the historical data | |
FETCH_LIMIT |
the max number to be fetch data at one time from FIWARE STH-Comet | 128 |
Copyright (c) 2018-2019 TIS Inc.