Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

RoboticBase/fiware-robot-visualization

Repository files navigation

fiware-robot-visualization

This flask application visualizes the locus of ROS robot.

TravisCI Status Docker image size

Description

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.

API Version

  • v1
    • the API v1 retrieves a series of positions from MongoDB directly.
  • v2

Requirement

python 3.6 or higer

Environment Variables

This application accepts the Environment Variables like below:

API v1

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')

API v2

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

License

Apache License 2.0

Copyright

Copyright (c) 2018-2019 TIS Inc.

About

This flask application visualizes the locus of ROS robot.

Resources

License

Stars

Watchers

Forks

Packages

No packages published