Skip to main content

update_virtual_wall

Service type: map_manager/srv/AddVirtualWall

Service name: /wall/update

Description​

Updates an existing virtual wall. The endpoint reuses AddVirtualWall; wall.id identifies the target and remains unchanged. floor_id fields are ignored.

Request (Request)​

FieldTypeDescription
wallmap_manager/msg/VirtualWallid is the numeric target ID; GRW uses x and y from start and end.

Example​

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

Bash
ros2 service call $ROBOT_NAMESPACE/wall/update map_manager/srv/AddVirtualWall "{wall: {id: 42, start: {x: 1.0, y: 5.0}, end: {x: 11.0, y: 5.0}}}"