Closed nunoguedelha closed 3 years ago
package.json
This script specifies, among other things:
iCubTelemVisServer.js
)npm start
server.js
and static-server.js
server.js
runs the web server (static server) on a default port 8080
if not set through the environment variable PORT
. The web server:
index.html
).Notes: index.html
is directly accessed via the address http://<server-machine-ip>:8080
as it is included in the static folders which have been made remotely accessible to the client.
A telemetry source server provided fake telemetry data and was integrated with the YarpJS server.
The web client installs the dictionary, historical and realtime telemetry plugins.
openmct.css
theme was missing. used espressoTheme.css
instead.DictionaryPlugin
prototype declaration (used function name instead of function expression assigning an anonymous function to a variable name). The second option seems to be more useful for limiting the scope of that function with the declarative keywords let
or const
inside a block or another function.state
property object of the ICubTelemetry()
. In the ICubTelemetry()
, we defined a "sens.imu" telemetry sample as:
"sens.imu": {
"ori": {"roll": 0, "pitch": 0, "yaw": 0},
"acc": {"x": 0, "y": 0, "z": 0},
"gyr": {"x": 0, "y": 0, "z": 0},
"mag": {"x": 0, "y": 0, "z": 0}
}
which, flattened and set to "value" field in the telemetry sample object gives: "value.ori.roll", "value.ori.pitch", ... This matches the "IMU sensor measurements" (key: "sens.imu") "values":
{
"name": "IMU sensor measurements",
"key": "sens.imu",
"values": [
{
"key": "value.ori.roll",
"name": "Roll",
"units": "degrees",
"format": "float",
"hints": {
"range": 1
}
},
{
"key": "value.ori.pitch",
"name": "Pitch",
"units": "degrees",
"format": "float",
"hints": {
"range": 2
}
},
...
const ONE_MINUTE = 60 * 1000;
openmct.time.clock('local', {start: -ONE_MINUTE, end: 0});
yarp-openmct
repository and do some compilation fixes in order to let the server build and run next to the YarpJS server.Note: package-lock.json
file is required for a fast compilation.
Hi @traversaro , would you need any additional information for reviewing this PR?
This actually consists in moving the Open MCT static server, initially implemented in a fork of https://github.com/nasa/openmct-tutorial.git (the fork actually), into this repository.