Skip to main content

Floor

Message type: map_manager/msg/Floor

Description

Defines a floor, its height range, coordinate origin, map path, and status.

Constants

NameTypeValueDescription
STATUS_UNKNOWNuint80Unknown state.
STATUS_ACTIVEuint81Active state.
STATUS_INACTIVEuint82Inactive state.

Fields

FieldTypeDescription
floor_idstringUnique floor identifier.
namestringHuman-readable name.
levelint32Numeric floor level.
min_heightfloat64Minimum floor height in meters.
max_heightfloat64Maximum floor height in meters.
reference_heightfloat64Reference height used for vertical alignment.
origin_offsetgeometry_msgs/PoseOffset from the global origin to the floor origin.
map_pathstringPath to the map data.
statusuint8Current status code.

Examples

Example 1

Bash
# Use the Floor message when adding a floor
ros2 service call ${MM}/add_floor map_manager/srv/AddFloor \
"{floor: {
floor_id: '1F',
name: 'First Floor',
level: 1,
min_height: 0.0,
max_height: 3.0,
reference_height: 0.0,
status: 1
}}"

Example 2

Python
from map_manager.msg import Floor
from geometry_msgs.msg import Pose

floor = Floor()
floor.floor_id = '1F'
floor.name = 'First Floor'
floor.level = 1
floor.min_height = 0.0
floor.max_height = 3.0
floor.reference_height = 0.0
floor.status = Floor.STATUS_ACTIVE
floor.origin_offset = Pose() # Default origin