Autoxing REST API Book
  • English
  • zh-CN
GitHub
  • English
  • zh-CN
GitHub
  • Guide

    • Getting Started
    • Start Moving
    • Getting Started with WebSockets
    • Robot Admin (Standalone Version)
  • Reference

    • REST API Principles
    • Map API
    • Move API
    • Current Map and Pose API
    • Overlays
    • Mapping API
    • IoT Devices
    • Device Information API
    • Robot Parameters API
    • System Settings
    • App Store API
    • Hostname API
    • Landmarks
    • Submaps
  • Services

    • Service API
    • Motion & Chassis Control
    • Localization
    • Mapping
    • Cargo Handling
    • Perception & Sensors
    • Calibration
    • Network
    • System & Maintenance
  • WebSocket

    • WebSocket Reference
    • Localization
    • Mapping
    • Navigation & Planning
    • Chassis & Safety
    • Cargo & Equipment
    • Perception & Cameras
    • Environment & Connectivity
    • System & Power
  • Other

    • Deprecations
    • Changelog

Service API

Services are HTTP endpoints that trigger an action on the robot. Send an empty body unless a parameter block is shown.

Every endpoint uses one of two URL prefixes:

  • /services/... — a robot service. Usually POST; responds with JSON.
  • /ros/... — a service proxied from ROS. Defaults to binary protobuf and returns proto3 JSON when the request sends Accept: application/json. A few endpoints (map overlays, traffic info) are raw JSON.

The reference is grouped by what the service does:

  • Motion & Chassis Control — drive modes, emergency stop, wheel and chassis errors.
  • Localization — global positioning and pose queries for chargers, pallets, trailers, and racks.
  • Mapping — auto-mapping, landmarks, overlays, traffic info, submaps, and the SLAM map image.
  • Cargo Handling — jack, roller, towing hook, cargo load/unload, and rack size detection.
  • Perception & Sensors — lidar and depth camera power, RGB frames, nav thumbnail, and V2X beacons.
  • Calibration — IMU, gyro scale, depth cameras, duo lidar, and jack mast calibration.
  • Network — Wi-Fi mode and route priority.
  • System & Maintenance — power, time, restarts, error recovery, and ROS topic introspection.

Conventions

Content-type & response format

Endpoints under /services/ speak JSON. Services proxied under /ros/ default to application/x-protobuf; they respond with application/json when the request includes Accept: application/json. JSON bodies are generated by serializing the same protobuf message via google::protobuf::util::MessageToJsonString (proto3 JSON mapping — field names are snake_case).

Accept request headerContent-Type responseBody
(absent)application/x-protobufbinary protobuf
application/x-protobufapplication/x-protobufbinary protobuf
application/jsonapplication/jsonproto3 JSON
(any other)text/plain415 Unsupported Media Type

The raw JSON endpoints (map overlays and traffic info) ignore Accept and always return application/json.

Protobuf definitions

Protobuf message definitions are published as part of the @kingsimba/axbot-sdk TypeScript SDK on npm. The .proto source files are available in the axbot-ts-sdk repository. Each endpoint references its own response message.

Service index

Motion & Chassis Control

EndpointMethodDescription
/services/wheel_control/set_control_modePOSTSwitch between auto, manual, and remote control.
/services/wheel_control/set_emergency_stopPOSTPress or release the software emergency stop.
/services/confirm_estopPOSTRelease the wheels on a slope after the emergency stop is pressed.
/services/wheel_control/clear_errorsPOSTClear errors reported by the wheel controller.
/services/monitor/clear_flip_errorPOSTClear error 8004 after a tip-over has been inspected.
/services/monitor/clear_slipping_errorPOSTClear error 2008 after a heavy impact (experimental).

Localization

EndpointMethodDescription
/services/start_global_positioningPOSTLocalize the robot globally with barcodes and base-map matching.
/services/query_pose/<poi>GETQuery the map pose of a charger, pallet, trailer, or rack edge.

Mapping

EndpointMethodDescription
/services/enable_auto_mappingPOSTLet the robot explore and map on its own (experimental).
/services/start_collecting_landmarksPOSTCollect landmarks for the current map.
/services/stop_collecting_landmarksPOSTStop collecting landmarks.
/ros/map/overlaysGET/PUTRead or replace the dynamic map overlays as GeoJSON.
/ros/map/traffic_infoGET/PUTRead or replace the dynamic no-passing zones.
/ros/slam/submaps/{uuid}/{trajectory_id}/{submap_index}GETFetch one Cartographer submap.
/ros/slam/map_imageGETFetch the current SLAM map as a protobuf-encoded PNG.

Cargo Handling

EndpointMethodDescription
/services/jack_upPOSTRaise the jack.
/services/jack_downPOSTLower the jack.
/services/jack_self_checkPOSTSelf-check the jack.
/services/clear_jack_errorsPOSTClear jack overload errors.
/services/roller_loadPOSTLoad cargo with the roller.
/services/roller_unloadPOSTUnload cargo with the roller.
/services/load_cargoPOSTLoad cargo with the lifting mechanism.
/services/unload_cargoPOSTUnload cargo with the lifting mechanism.
/services/towing_hook_lockPOSTLock the towing hook.
/services/towing_hook_releasePOSTRelease the towing hook.
/services/clear_towing_hook_errorPOSTClear a towing-hook device error.
/services/start_rack_size_detectionPOSTMeasure a rack's width and depth with the laser scanner.
/services/stop_rack_size_detectionPOSTStop the rack size measurement.

Perception & Sensors

EndpointMethodDescription
/services/baseboard/power_on_lidarPOSTPower the lidar on or off.
/services/depth_camera/enable_camerasPOSTEnable or disable the depth cameras.
/services/get_rgb_imagePOSTFetch the latest RGB camera frame.
/services/get_nav_thumbnailPOSTFetch a 200×200 snapshot of the robot and its surroundings.
/services/probe_v2x_beaconsPOSTActivate V2X beacons for a few seconds to test connectivity.

Calibration

EndpointMethodDescription
/services/imu/recalibratePOSTRecalibrate the IMU while the robot stands still.
/services/imu/calibrate_gyro_scalePOSTCalibrate the gyroscope scale.
/ros/imu/clear_gyro_scalePOSTClear the stored gyroscope scale calibration.
/services/calibrate_depth_camerasPOSTAlign the depth-camera point clouds with the lidar.
/services/calibrate_depth_camera_masksPOSTMask the parts of the robot seen by its own depth cameras.
/services/calibrate_duo_lidar_posesPOSTCalibrate the poses of the left-front and right-back lidars.
/ros/jack_mast/calibrate_mast_tick_basePOSTCalibrate the tick base of the jack mast.

Network

EndpointMethodDescription
/services/setup_wifiPOSTSwitch Wi-Fi between AP and station mode.
/services/set_route_modePOSTChoose which network interface is the default route.

System & Maintenance

EndpointMethodDescription
/services/wake_up_devicePOSTWake the robot from sleep.
/services/restart_servicePOSTRestart all robot software.
/services/baseboard/shutdownPOSTReboot or shut down the main computer or the whole device.
/services/step_timeGET/POSTCheck for a time offset (GET) or step the clock (POST).
/services/monitor_recheck_errorsPOSTRe-run the error checks.
/services/reset_usb_devicesPOSTReset selected USB devices by bus/dev.
/services/clear_system_down_unexpectedlyPOSTClear the “system down unexpectedly” alert.
/services/clear_range_data_all_zero_errorPOSTClear the “range data all zero” lidar error.
/services/clear_fall_risk_warningPOSTClear the fall-risk warning.
/ros/rosmaster/topicsGETList published ROS topics with types and counts.
/ros/rosmaster/topics/published_namesGETList the names of published ROS topics.
Edit this page
Last Updated: 10/30/26, 7:15 PM
Contributors: FengZhaolin
Next
Motion & Chassis Control