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.
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:
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.