You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/segmentation_camera.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -378,14 +378,14 @@ For panoptic/instance segmentation, to parse the `labels_map`, click on any pixe
378
378
379
379
## Processing the segmentation sensor via gz-transport
380
380
It's possible to process the segmentation data in real time via `gz-transport`.
381
-
You will need to which topics to subscribe to in order to receive this information.
381
+
You will need to know which topics to subscribe to in order to receive this information.
382
382
383
383
Consider the following SDF snippet from the segmentation camera:
384
384
```xml
385
-
<topic>segmentation</topic>
385
+
<topic>semantic</topic>
386
386
```
387
387
388
-
In this scenario, the sensor data will publish the label map data to `segmentation/labels_map`, and the colored map data to `segmentation/colored_map`.
388
+
In this scenario, the sensor data will publish the label map data to `semantic/labels_map`, and the colored map data to `semantic/colored_map`.
389
389
We can write some c++ code that subscribes to these topics:
390
390
391
391
```cpp
@@ -445,10 +445,10 @@ int main(int argc, char **argv)
445
445
{
446
446
gz::transport::Node node;
447
447
448
-
if (!node.Subscribe("/segmentation/colored_map", &OnNewColoredMap) ||
0 commit comments