TrickfireRobotics / mission-control

The mission control user interface for "Viator" for the University Rover Challenge
1 stars 2 forks source link

Update Telemetrt Code to Use Services Rather than Publishers #19

Closed VladimirKupryukhin closed 1 month ago

VladimirKupryukhin commented 1 month ago

What is it

We shall use services rather than publishers to get telemetry data. The hope is that the telemetry code can be reused for other types of motors as well. As long as you form the JSON string correctly, all is good.

All functionality from the previous version of the code is kept.

How does it work

The telemetry component expects JSON data in the following format:

{
entry : data,
entry: data
etc etc
}

The first time the telemetry component gets this JSON, it will construct its entries that it shows to the user. A RobotInfo-like file was added in order to decouple the ROS specific stuff from the telemetry component. The CSV functionality was also moved as a separate TS script.