Update Telemetry to Use Services Rather than Publishers#72
Update Telemetry to Use Services Rather than Publishers#72VladimirKupryukhin wants to merge 2 commits intomainfrom
Conversation
loukylor
left a comment
There was a problem hiding this comment.
Does this work in its current state? I'm like 90% sure since there are multiple RobotInfo instances floating around, there will be multiple handlers for the service, and therefore multiple nodes trying to respond to a single request.
|
Yes, you are right. Check out the "Note" found here: https://docs.ros.org/en/humble/Concepts/Basic/About-Services.html I will make a new node, perhaps called the |
|
Note that services will likely increase the latency due to requiring a round trip. We may get more mileage by using a heartbeat-like system to tell the rover that we want to receive the data (and maybe also specifying the update rate). The latency is still there, it's just being moved to the end so that when we stop looking at it, it takes a bit of time before it stops sending it (which isn't a huge issue, in my opinion). |
|
@uellenberg Just wanted to rope back into this. What's the status of the telemetry system? Do we still want to use services? Should I just close this PR? |
What is this
The old telemetry code uses publishes that always publish data to the ROS network every 4ms. This is bad since we potentially flood the web socket with data that potentially is not being used. Instead, this PR changes it into a service based system. The mission control asks for data, and the rover gives it
What was changed
container_launch.shto properly name the image astrickfireimagerather thantrickfirerobot.