Skip to main content

VirtualWall

Message type: map_manager/msg/VirtualWall

Description

Defines a virtual wall as a line segment on a floor.

Fields

FieldTypeDescription
idint32Unique identifier.
floor_idstringUnique floor identifier.
startgeometry_msgs/PointStart point of the virtual wall.
endgeometry_msgs/PointEnd 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)