VirtualWall
Message type: map_manager/msg/VirtualWall
Description
Defines a virtual wall as a line segment on a floor.
Fields
| Field | Type | Description |
|---|---|---|
id | int32 | Unique identifier. |
floor_id | string | Unique floor identifier. |
start | geometry_msgs/Point | Start point of the virtual wall. |
end | geometry_msgs/Point | End point of the virtual wall. |
Examples
Example 1
Bash
# Add a virtual wall
ros2 service call ${MM}/add_virtual_wall map_manager/srv/AddVirtualWall \
"{floor_id: '1F',
wall: {
id: 1,
floor_id: '1F',
start: {x: 0.0, y: 0.0, z: 0.0},
end: {x: 5.0, y: 0.0, z: 0.0}
}
}"
Example 2
Python
from map_manager.msg import VirtualWall
from geometry_msgs.msg import Point
wall = VirtualWall()
wall.id = 1
wall.floor_id = '1F'
wall.start = Point(x=0.0, y=0.0, z=0.0)
wall.end = Point(x=5.0, y=0.0, z=0.0)