robotology / icub-firmware-shared

Protocols and Other Stuff Used both by iCub Firmware and iCub Software
GNU Lesser General Public License v2.1
3 stars 16 forks source link

POS service #42

Closed marcoaccame closed 3 years ago

marcoaccame commented 3 years ago

This PR introduces the POS service.

Description of the service

The POS service is used to stream position values from an ETH board towards the relevant device started by yarprobotinterface, the embObjPOS. The values are retrieved from up to 14 encoders, so far only magnetic encoders from the pmc board. The POS service is required to get position values of the fingers of the new hand.

Changes

This PR is to be processed together with two other PRs: one for icub-firmware and one for icub-main.

In here are the main changes in each of these repositories. I describe them all together because one repo affects the other.

Tests

All the chain was tested on a setup made of:

The service runs with success and streams the values of the target YARP port. The following shows the plot from yarpscope reading on that port.

Screenshot from 2020-12-02 13-46-48

Figure. Outcome of the POS service on yarpscope.

And in here is a video of one experiment. The talk is lost, hence in here i summarize the steps:

Figure. Video of one test of the POS service.

Impact on iCub

The above test worked fine as expected. And the changes done to support the new device are pretty standard and safe and used only if one uses the POS service by starting the embObjPOS device from yarprobotinterface.

Hence, ... I expect no harm on iCub.