Capture Final Map Point Cloud
POST/api/v1/maps/mapping/capture-final-map
Triggers the ROS /get_final_map service (only succeeds while SLAM is still running), then reads the freshly-published cloud off /map_points. Call this before stopping mapping so the cloud can be saved via /add_map even after SLAM has since been stopped.
Request
Responses
- 200
- 403
- 500
- 503
- 504
Final map point cloud captured successfully
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data objectrequired
topic stringrequired
frameId stringrequired
sourceFrameId stringrequired
stamp objectrequired
secs numberrequired
nsecs numberrequired
width numberrequired
height numberrequired
isDense booleanrequired
pointCount numberrequired
transformApplied booleanrequired
transformReason stringrequired
bounds objectrequired
min arrayrequired
max arrayrequired
positions number[]required
colors number[]
status numberrequired
{
"success": true,
"message": "string",
"data": {
"topic": "string",
"frameId": "string",
"sourceFrameId": "string",
"stamp": {
"secs": 0,
"nsecs": 0
},
"width": 0,
"height": 0,
"isDense": true,
"pointCount": 0,
"transformApplied": true,
"transformReason": "string",
"bounds": {
"min": [
null
],
"max": [
null
]
},
"positions": [
0
],
"colors": [
0
]
},
"status": 0
}
Not the owner of the current mapping session
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
ROS service call failed or internal error
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data object,nullrequired
details stringrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
ROS instance not available
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Timed out waiting for /map_points after triggering /get_final_map
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data object,nullrequired
details stringrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Loading...