Good Morning,
Tossing this one out to the team:
We are using the Zone data API and we would like it to publish the geo.vertices of the zones. I don’t see any way to turn that on anywhere… checked the api.
Does anyone know how to do this?
Thanks!
GG
kbear
September 23, 2024, 9:39pm
6
@gregguzz is this maybe what you are trying to turn on?
“convert_to_geo_coordinates” = true
@kbear perhaps that is it. Where did we find that setting?
@kbear Were you teasing me with that setting?
I can’t find that anywhere…
@gregguzz are you getting the data over a TCP socket or MQTT? If TCP, this is an optional field found here .
This is a lidarhub setting, which mean you need to pick Lidahub
from the services
drop down in the top right of the Settings
tab.
@clark.dev I have never used optional fields before. and these setting are not available in the LidarHub GUI. So I figure I need to do this in Swagger.
Do I GET all of the application settings, cut and paste them into PUT application settings and add the new setting then execute?
@clark.dev Tried inserting the setting here:
"tcp_servers": [
{
"source": "object_list",
"port": 3302,
"data_hertz": 1,
"transmit_hertz": 1
},
{
"source": "occupations",
"port": 3303,
"data_hertz": 1,
"transmit_hertz": 1
“convert_to_geo_coordinates”: true
}
],
"event_recorder": {
"json_data": {
"object_list_enabled": false,
"occupations_enabled": false,
"aggregation_timeseries_enabled": false,
"aggregation_realtime_enabled": false,
"diagnostics_enabled": false
and received this message: {
“message”: “400 Bad Request: The browser (or proxy) sent a request that this server could not understand.”
}
Does it need to go somewhere else?
Which endpoint are you sending this too? Can you share the full settings file as well.
There’s a missing comma after "transmit_hertz": 1
before the geo setting you just inserted. The error you’re getting however doesn’t seem like a JSON validation error.
it was the comma… all good.
@clark.dev The setting took but it is not affecting the output. This is for ZONE data, see below that that geo_vertices array is empty:
{
“zones”: [
{
“id”: 1727380432775,
“name”: “Zone-1”,
“type”: “Event”,
“has_point_count”: false,
“min_height”: 1.50502750884062,
“max_height”: 2.46656597037908,
“metadata”: {
“include_classifications”: [
“PROSPECT”,
“UNKNOWN”,
“PERSON”,
“VEHICLE”,
“BICYCLE”,
“LARGE_VEHICLE”
],
“object_filters”: [
{
“classification”: “”,
“max_height”: 2.5,
“min_height”: -0.200000002980232
}
]
},
“vertices”: [
{
“x”: 9.33,
“y”: 18.27
},
{
“x”: 22.01,
“y”: 18.02
},
{
“x”: 21.38,
“y”: 8.48
},
{
“x”: 9.24,
“y”: 9.86
}
],
“geo_vertices”:
}
]
}
@gregguzz Have you set a geo coordinate for the box? If not, go to https://{your-server-ip}/lidar-hub/map
and set one there.
Nice! That works. I was trying to work in a 0,0 environment but that would not work. So I took it to Italy and