iCub-main
Loading...
Searching...
No Matches
wholeBodyPlayer

A module to replay the encoder data coming from yarpdataplayer (https://yarp.it/latest/group__yarpdataplayer.html).

+ Collaboration diagram for wholeBodyPlayer:

A module to replay the encoder data coming from yarpdataplayer (https://yarp.it/latest/group__yarpdataplayer.html).

Disclaimer

Warning
This software has been fully tested only on simulators, it is in a beta state for the use on the real robots.

Description

This module opens a remote_controlboard (https://yarp.it/latest/classRemoteControlBoard.html) for each <part> and commands it in position direct control to specific positions received by the input port related to the part.

The position direct control ensure a more reliable repeatability of the movement but on the other hand can be dangerous if used without guards. In this sense this module checks if the jump from the current state of each joint and the target position is not greater of a tolerance. In this case for security reasons it pauses yarpdataplayer, moves the joint(s) in position control for reaching the target, then send a play command to the yarpdataplayer and resume the position direct control. If the reaching of the target fails also in position control, then a fatal error is triggered and the module closes.

Parameters

–robot The name of the robot to be controlled (e.g icub, icubSim, cer). icub is the default value. –name The prefix to be given to the ports of the module. wholeBodyPlayer is the default value. –parts List of parts to be controlled. It has to be from one to all the following parts: "(head torso left_arm right_arm left_leg right_arm)"

Ports

This module open one port for each part controlled, from which it receive data from yarpdataplayer. They have this name:

/<name>/<part>/state:i

Tested OS

Windows, Linux

Author
Nicolo' Genesio