Skip to main content

Add Map

POST 

/api/v1/maps/add

Adds a new map via ROS service call. Verifies the map name does not already exist in the database before calling the service.

Request​

Body

    name stringrequired

    Possible values: >= 3 characters and <= 20 characters

    Unique name for the map

    map_info stringrequired

    JSON-stringified ROS OccupancyGrid map info (name + map.header/info), without the grid data — sent separately as the 'data' binary field.

    data binary

    Raw occupancy grid bytes: one signed byte (-1..100) per cell.

    map_type string

    Possible values: [2D, 3D]

    Source of the save: 3D map editor saves are rasterized with occupancyGridToPng3D (mission_control_ui pixel parity). Defaults to the 2D rasterizer when omitted.

Responses​

Map added successfully

Schema
    success booleanrequired
    message stringrequired
    status numberrequired
    data objectrequired
    status booleanrequired
Loading...