Skip to content

Task Dispatch Interface

Communication address: 192.168.1.106:30000

After receiving a navigation task request, the robot will first execute the navigation task (success/failure/cancel), then return a response message with the execution result. When using this protocol to dispatch navigation tasks, the robot will automatically switch to navigation mode without manual operation.

C++ SDK and examples: DeepRoboticsLab/robotserver_sdk

<?xml version="1.0" encoding="UTF-8"?>
<PatrolDevice>
<Type>1003</Type>
<Command>1</Command>
<Time>2023-01-01 00:00:00</Time>
<Items>
<Value>100</Value><MapID>1</MapID>
<PosX>0.0</PosX><PosY>0.0</PosY><PosZ>0.0</PosZ>
<AngleYaw>0.0</AngleYaw>
<PointInfo>0</PointInfo><Gait>0</Gait><Speed>0</Speed>
<Manner>0</Manner><ObsMode>0</ObsMode><NavMode>0</NavMode>
<Terrain>0</Terrain><Posture>0</Posture>
</Items>
</PatrolDevice>

Parameters are divided into two categories: point attribute parameters and path attribute parameters:

Point attribute parameters (defining the goal point itself):

ParameterMeaningTypeUnitDescription
ValueGoal point IDint/
MapIDGrid map ID of the goal pointint/
PosX/PosY/PosZGoal point position coordinatesfloatm
AngleYawGoal point orientationfloatrad
PointInfoGoal point typeint/Transition point=0, Task point=1, Standing point=2, Charging point=3

Path attribute parameters (defining how to reach the goal point from the current position):

ParameterMeaningTypeDescription
GaitGait to useintWalking=0, Obstacle-clearing=1, Slope=2, Stair=4, Accumulated frame stair=6, 45° stair=7, L-walking=100, Mountain=101, L-stair=102
SpeedSpeed to useintNormal=0, Low=1, High=2
MannerMotion directionintForward=0, Backward=1
ObsModeStop-avoidance functionintEnabled=0, Disabled=1
NavModeNavigation modeintStraight-line navigation=0, Autonomous navigation=1
TerrainHeight map modeintSolid ground=0, Hollow ground=1, Stairs without risers=2, Accumulated frame=3
PostureBody heightintNormal=0, Crawl=1
<?xml version="1.0" encoding="UTF-8"?>
<PatrolDevice>
<Type>1003</Type>
<Command>1</Command>
<Time>2023-01-01 00:01:00</Time>
<Items>
<Result>1</Result>
</Items>
</PatrolDevice>
Result ValueMeaning
1Navigation task executed successfully
2Navigation task execution failed
3Navigation task cancelled
Type Field ValueMessage Type
1004Cancel navigation task
<?xml version="1.0" encoding="UTF-8"?>
<PatrolDevice>
<Type>1004</Type>
<Command>1</Command>
<Time>2023-01-01 00:00:00</Time>
<Items/>
</PatrolDevice>
Type Field ValueMessage Type
1007Query navigation task execution status
<?xml version="1.0" encoding="UTF-8"?>
<PatrolDevice>
<Type>1007</Type>
<Command>1</Command>
<Time>2023-01-01 00:00:00</Time>
<Items/>
</PatrolDevice>
<?xml version="1.0" encoding="UTF-8"?>
<PatrolDevice>
<Type>1007</Type>
<Command>1</Command>
<Time>2023-01-01 00:00:01</Time>
<Items>
<NavTaskState>0</NavTaskState>
</Items>
</PatrolDevice>
NavTaskState ValueMeaning
0No navigation task
1Navigation task in progress

Get perception status information from the navigation host (192.168.1.106:30000) via the TCP body monitoring protocol.

Type Field ValueMessage Type
2002Perception status information
ParameterMeaningValue Description
ObsStateWhether there are obstacles on the planned path within 2 meters of the robotNo obstacle=0, Obstacle present=1