Interactions-HSG / xarm-grpc

A command-line interface for xArm-C++-SDK to interact with UFACTORY xArms
Eclipse Public License 2.0
5 stars 0 forks source link

Error on multiple parallel requests #27

Closed jo-bru closed 2 years ago

jo-bru commented 3 years ago

If more than four commands are sent in parallel, some commands will fail.

Example Error: Error: Command failed: xarm-commander -i 130.82.171.9 -v get_position

This error can be reproduced by calling more than four commands in parallel running for example the following:

Promise.all([
            sendCommand(['-i', IPaddress, '-v', 'get_version']),
            sendCommand(['-i', IPaddress, '-v', 'get_state']),
            sendCommand(['-i', IPaddress, '-v', 'get_state']),
            sendCommand(['-i', IPaddress, '-v', 'get_state']),
            sendCommand(['-i', IPaddress, '-v', 'get_position'])]);
    })

To understand this error, it should be investigated how many connections can be processed simultaneously by the CPLUS SDK.

jo-bru commented 3 years ago

This problem may be solved if a persistent connection is established (see #18).

jo-bru commented 2 years ago

This is not relevant anymore, as we use an other system architecture (gRPC instead of plain xarm-commander).