-
Notifications
You must be signed in to change notification settings - Fork 565
Open
Description
Working over wi-fi can be challenging due to communication over a lossy or unstable network. ROS QoS is a great mechanism to handle these issues, with it's reliability, durability and lifespan option it can solve and help in many ways. An example is a topic with a reliable publisher with volatile durability. Another option is using BEST_EFFORT reliability to lower traffic throughput.
A base for this approach was already merged In #86, but it still lacks many features (the attributes I mentioned above). A possible solution is adding durability
, reliability
and lifespan
attributes to the query, such that the new JSON will be
{ "op": "publish",
(optional) "id": <string>,
"topic": <string>,
(optional) "reliability": <string>,
(optional) "durability": <string>,
(optional) "lifespan": <string>,
"msg": <json>,
}
or, a way better approach will be to send the entire QoS as an inner json in the message:
{ "op": "publish",
(optional) "id": <string>,
"topic": <string>,
(optional) "qos": <json>,
"msg": <json>,
}
Where the qos
JSON is
{
(optional) "reliability": <string>,
(optional) "durability": <string>,
(optional) "lifespan": <string>,
...
}
Metadata
Metadata
Assignees
Labels
No labels