Skip to main content

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​

FieldTypeDescription
floor_idstringIDL compatibility field; ignored by GRW.
area_idint32Numeric ID of the area to remove.

Response​

FieldTypeDescription
successboolWhether the operation succeeded.
messagestringResult message.
walls_removedint32IDL response field; GRW does not manage virtual walls.

Example​

Complete Environment Preparation first: the CLI examples require ROBOT_NAMESPACE to be set.

Bash
ros2 service call $ROBOT_NAMESPACE/forbidden/remove map_manager/srv/RemoveForbiddenArea "{area_id: 17}"

AddForbiddenArea, ListForbiddenAreas, and UpdateForbiddenArea.