portName to the target device IP address and portCode to the listening port. V2 Pro listens on port 8001 for incoming messages.
Message conventions
Byte numbering starts at Byte 0. All multi-byte integers use big-endian order.
Messages received by V2 Pro
Odometry
Velocity
v is in mm/s. Angle theta is in 0.01°; for example, 90° is sent as 9000.
Relocation
x and y are in mm. theta is in 0.01°; for example, 90° is sent as 9000.
Start or stop mapping
Send the start command once per mapping task. Do not send it repeatedly.
Switch maps
Confirm that the target map has been built before sending the command.
Messages sent by V2 Pro
Localization result
X and Y are in mm. THETA is in 0.001 rad. After successful relocation, V2 Pro continuously sends this message.
Task result
Start mapping, stop mapping, and switch-map commands return their status in the following message.Stopping mapping can take time. Completion usually takes about one-third of the data-collection duration. Wait for the task-result message before starting another operation.