ami-iit / yarp-openmct

Repo for YARP and OpenMCT integration.
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Add the possibility to visualize the YarpTextLogging from any logged process #143

Closed nunoguedelha closed 1 year ago

nunoguedelha commented 2 years ago

Implements #138 .

Step 1: Add ports, parsing and notification of Yarp Text Logging data (no auto search for the ports streaming the Yarp text logging)

In a first step we focus on the data parsing and sending to the visualizer, the dictionary definition and the actual data visualisation in the OpenMCT framework. For this purpose, the port names are fully defined in the configuration file servers.js, and edited every time the processes logging the data (yarprobotinterface, WalkingModule) are stopped and run again. => commits c9b285d837ed23d071b514f688bd734525736b2d to 126edf941d1448ba552ce3820859a1df3242c69b included.

In the configuration file

On the telemetry server:

On OpenMCT framework

Note: There is a pop-up window when we hover above a given datum, and we have a "view full datum" option.

Step 2: Improved Version: auto search for ports streaming the logged data and refresh the connections

In the configuration file

[^*]: The syntax is as follows: the pattern "@{...}" wraps a regular expression which, once unwrapped, can be directly interpreted by the Javascript code.

On the telemetry server

(Re)connect the Yarp text logging ports as soon as the client page is refreshed (servers.json config is reloaded)

Below is an example of the displayed "Process Logging" folder and the contained Yarp Text Logging entries.

image

nunoguedelha commented 1 year ago

CC @S-Dafarra , @RiccardoGrieco @GiulioRomualdi

Copied Riccardo and Giulio in case they are curious about this.

nunoguedelha commented 1 year ago

Thanks @traversaro !