list_forbidden_areas
Service type: map_manager/srv/ListForbiddenAreas
Service name: /forbidden/list
Description
Lists every forbidden area in the current GRW map. floor_id is an IDL field and is ignored; each entry returns its numeric id and four-vertex rectangular boundary.
Request
| Field | Type | Description |
|---|---|---|
| floor_id | string | IDL compatibility field; ignored by GRW. |
Response
| Field | Type | Description |
|---|---|---|
| areas | map_manager/msg/ForbiddenArea[] | Areas, each with a numeric id and four-vertex boundary. |
| floor_ids | string[] | IDL response field; GRW does not provide floor filtering. |
| 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/forbidden/list map_manager/srv/ListForbiddenAreas "{}"
Related APIs
AddForbiddenArea, UpdateForbiddenArea, and RemoveForbiddenArea.