remove_forbidden_area
Service type: map_manager/srv/RemoveForbiddenArea
Service name: /forbidden/remove
Description
Deletes a forbidden area from the current GRW map by its numeric area_id. floor_id is an IDL field and is ignored. Removing an area does not affect virtual walls.
Request
| Field | Type | Description |
|---|---|---|
| floor_id | string | IDL compatibility field; ignored by GRW. |
| area_id | int32 | Numeric ID of the area to remove. |
Response
| Field | Type | Description |
|---|---|---|
| success | bool | Whether the operation succeeded. |
| message | string | Result message. |
| walls_removed | int32 | IDL response field; GRW does not manage virtual walls. |
Example
Complete Environment Preparation first: the CLI examples require
ROBOT_NAMESPACEto be set.
Bash
ros2 service call $ROBOT_NAMESPACE/forbidden/remove map_manager/srv/RemoveForbiddenArea "{area_id: 17}"
Related APIs
AddForbiddenArea, ListForbiddenAreas, and UpdateForbiddenArea.