Closed nunoguedelha closed 3 years ago
Under "Problems" tab when running the telemetry server from Webstorm, we get the warning:
Unresolved variable or type cubtelemetry
A typo was introduced in 4aed406bb225fb7da5fbc8cb00d737d9a7ced3ee:
This causes all the updates of the bottle type connections (IMU, joint positions telemetry sources) to fail, and the the connection form /icubSim/inertial
to drop. If in the table portInConfig
defining the ports configurations...
...we comment all entries except the one for port /icubSim/inertial
..., instead of the warning we get the error:
/Users/nunoguedelha/dev/yarp-openmct/iCubTelemVizServer/iCubTelemVizServer.js:68
cubtelemetry.updateState(id,bottle.toArray());
^
ReferenceError: cubtelemetry is not defined
at /Users/nunoguedelha/dev/yarp-openmct/iCubTelemVizServer/iCubTelemVizServer.js:68:17
at /Users/nunoguedelha/dev/yarp-openmct/iCubTelemVizServer/node_modules/YarpJS/yarp.js:184:13
npm ERR! Darwin 19.6.0
npm ERR! argv "/Users/nunoguedelha/.nvm/versions/node/v4.2.2/bin/node" "/Users/nunoguedelha/.nvm/versions/node/v4.2.2/bin/npm" "start"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! iCubTelemVizServer@1.0.0 start: `node iCubTelemVizServer.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iCubTelemVizServer@1.0.0 start script 'node iCubTelemVizServer.js'.
npm ERR! This is most likely a problem with the iCubTelemVizServer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node iCubTelemVizServer.js
npm ERR! You can get their info via:
npm ERR! npm owner ls iCubTelemVizServer
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/nunoguedelha/dev/yarp-openmct/iCubTelemVizServer/npm-debug.log
After fixing the typo, everything goes back to normal:
[INFO] |yarp.os.Port| Port /yarpjs/camLeftEye:i active at tcp://127.0.0.1:10057/
[INFO] |yarp.os.Port| Port /yarpjs/camRightEye:i active at tcp://127.0.0.1:10058/
ICubTelemetry History hosted at http://localhost:8081/history
ICubTelemetry Realtime hosted at ws://localhost:8081/realtime
listening on http://localhost:3000
connected
~Fixed by #7 .~
Fixed in #9 .
How to reproduce the issue
yarpserver --write
.We get on the same terminal the following log messages: