RTT measurements should be reported per-robot #3391
Labels
Difficulty - 3
Easy and simple issues that require some context to do
Needs Hardware
This ticket needs extra hardware, like a robot or development board to work on
Thunderscope
Description of the task
We use round-trip time as a measure of how long it takes for us to communicate with the robots. We send the timestamp of sent packets in the
PrimitiveSet
(PC -> robot) and report the timestamp inRobotStatus
(robot -> PC). This round-trip is forwarded toThunderscope
when we receive it inRobotCommunication
. which is visualized here. (This widget is visible when./tbots.py run thunderscope_main
is run with the--run_blue
or--run_yellow
or--run_diagnostics
flags).A problem is that we lose the associated
RobotId
when that proto gets forwarded toThunderscope
. We end up assuming the latest availableRobotStatus
is associated with thatRobotStatistic
but that may not be the case.We should create a new
robot_id
field that can be taken fromRobotStatus
when it is created in theRobotCommunication
module. Then, we should decouple the robot widget update logic so that we can update the RTT andRobotStatus
separately.Acceptance criteria
RobotStatistic
definition to include therobot_id
and fill it out inRobotCommunication
RobotStatus
inrobot_view.py
Blocked By
The text was updated successfully, but these errors were encountered: