remove_poi
Service type: map_manager/srv/RemovePOI
Service name: /poi/remove
Description
Removes a POI from the current GRW map by string id. floor_id is ignored.
Idempotent delete: calling with a non-existent id also returns success=True; re-check with /poi/list if you need to confirm the removal.
Request (Request)
| Field | Type | Description |
|---|---|---|
| floor_id | string | IDL compatibility field; ignored. |
| id | string | POI ID to remove. |
Response (Response)
| Field | Type | Description |
|---|---|---|
| success | bool | Whether the operation succeeded. |
| message | string | Result message. |
Example
Complete Environment Preparation first: the CLI examples require
ROBOT_NAMESPACEto be set.
Bash
ros2 service call $ROBOT_NAMESPACE/poi/remove map_manager/srv/RemovePOI "{id: 'gr_charger_01'}" # the same caller id used with /poi/add