Skip to content

Commit 67c755a

Browse files
authored
tutorials/segmentation_camera: Little fixes (#471)
Signed-off-by: Martin Pecka <peci1@seznam.cz>
1 parent 02fc5ad commit 67c755a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tutorials/segmentation_camera.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,14 @@ For panoptic/instance segmentation, to parse the `labels_map`, click on any pixe
378378

379379
## Processing the segmentation sensor via gz-transport
380380
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.
382382

383383
Consider the following SDF snippet from the segmentation camera:
384384
```xml
385-
<topic>segmentation</topic>
385+
<topic>semantic</topic>
386386
```
387387

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`.
389389
We can write some c++ code that subscribes to these topics:
390390

391391
```cpp
@@ -445,10 +445,10 @@ int main(int argc, char **argv)
445445
{
446446
gz::transport::Node node;
447447

448-
if (!node.Subscribe("/segmentation/colored_map", &OnNewColoredMap) ||
449-
!node.Subscribe("/segmentation/labels_map", &OnNewLabelMap))
448+
if (!node.Subscribe("/semantic/colored_map", &OnNewColoredMap) ||
449+
!node.Subscribe("/semantic/labels_map", &OnNewLabelMap))
450450
{
451-
std::cerr << "Error subscribing to the boundingbox camera topic"
451+
std::cerr << "Error subscribing to the semantic camera topic"
452452
<< std::endl;
453453
return -1;
454454
}
@@ -459,4 +459,4 @@ int main(int argc, char **argv)
459459
```
460460
461461
If you'd like to gain a better understanding of how the subscriber code works,
462-
you can go through the [gz-transport tutorials](https://gazebosim.org/api/transport/11.0/tutorials.html).
462+
you can go through the [gz-transport tutorials](https://gazebosim.org/api/transport/14.0/tutorials.html).

0 commit comments

Comments
 (0)