Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Paexo wearable device to serialize wearable data/commands to access through yarp ports #109

Closed
yeshasvitirupachuri opened this issue Mar 29, 2021 · 6 comments

Comments

@yeshasvitirupachuri
Copy link
Member

yeshasvitirupachuri commented Mar 29, 2021

Currently the Paexo wearable device just exposes wearable data from the actual Paexo exoskeleton.
To enable developing matlab controllers for the Paexo, we need to serialize wearable data to be data through yarp ports, also a way to handle the motor commands through receive data from a yarp port.

This issue tracks the details related to addressing this task

CC @lrapetti @claudia-lat @DanielePucci

@yeshasvitirupachuri
Copy link
Member Author

we need to serialize wearable data to be data through yarp ports

Thanks to @prashanthr05 for #113 we can realize this wearable data streaming to yarp ports through the new logger

a way to handle the motor commands through receive data from a yarp port.

At the moment the Paexo wearable device has an rpc port https://github.com/robotology/wearables/blob/master/devices/Paexo/src/Paexo.cpp#L209, and we can use the YarpRpc block from robotology/wb-toolbox#178 to send motor commands to Paexo device.

@diegoferigo please take a look at robotology/wb-toolbox#178 (comment), and let me know if we can proceed with that PR.

CC @lrapetti @claudia-lat

@traversaro
Copy link
Member

@diegoferigo please take a look at robotology/wb-toolbox#178 (comment), and let me know if we can proceed with that PR.

I think I can give feeedback in the PR as we transitioned the maintenance of the repo to me.

@yeshasvitirupachuri
Copy link
Member Author

Thanks to @prashanthr05 for #113 we can realize this wearable data streaming to yarp ports through the new logger

For communication of Paexo wearable data to yarp ports that can be read in simulink, the PR #123 updates iwear logger device with yarp functionality.

For communication from simulink to Paexo, an alternative to yarp rpc block is to update the Paexo wearable device with yarp ports that receive motor commands. Furthermore, having two separate Left and Right motor actuators is needed. This is implemented and tested in Paexo/motor-control-yarp

Following the above two changes, I wrote a simple simulink controller using WBToolBox to read the Paexo data using yarp read blocks and sending motor commands through yarp write blocks.

simplescreenrecorder-2021-06-25_21.28.10.mp4

The entire pipeline works fine, except for high frequency motor commands to the Paexo. This needs to be investigated further.

IMG_0022.MOV
IMG_0024.MOV

CC @claudia-lat @lrapetti @DanielePucci

@lrapetti
Copy link
Member

I think this issue was completed, @claudia-lat @Yeshasvitvs can we close it?

@yeshasvitirupachuri
Copy link
Member Author

Yes

@claudia-lat
Copy link

Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants