Skip to main content

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​

FieldTypeDescription
floor_idstringIDL compatibility field; ignored by GRW.

Response​

FieldTypeDescription
areasmap_manager/msg/ForbiddenArea[]Areas, each with a numeric id and four-vertex boundary.
floor_idsstring[]IDL response field; GRW does not provide floor filtering.
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/forbidden/list map_manager/srv/ListForbiddenAreas "{}"

AddForbiddenArea, UpdateForbiddenArea, and RemoveForbiddenArea.