Skip to main content

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)​

FieldTypeDescription
floor_idstringIDL compatibility field; ignored.
idstringPOI ID to remove.

Response (Response)​

FieldTypeDescription
successboolWhether the operation succeeded.
messagestringResult message.

Example​

Complete Environment Preparation first: the CLI examples require ROBOT_NAMESPACE to 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

Related services: AddPOI, ListPOIs.