robocup-logistics / rcll-refbox

The referee box (refbox) of the RoboCup Logistics League
GNU General Public License v2.0
6 stars 11 forks source link

Improve Websocket types (strings -> numbers) #186

Closed greedykangaroo01 closed 8 months ago

greedykangaroo01 commented 11 months ago

Currently, a few properties in the websocket that always contain numerical values are typed and thus sent as strings. I noticed this with

snoato commented 10 months ago

quantity_requested is an integer:

json_string.SetInt((get_value<int64_t>(fact, "quantity-requested")));
(*o).AddMember("quantity_requested", json_string, alloc);

Others will be adapted in an upcoming PR.

TarikViehmann commented 8 months ago

Fixed through https://github.com/robocup-logistics/rcll-refbox/pull/180