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

Access the joint torques estimated by WBD #133

Open
isorrentino opened this issue Dec 3, 2021 · 2 comments
Open

Access the joint torques estimated by WBD #133

isorrentino opened this issue Dec 3, 2021 · 2 comments

Comments

@isorrentino
Copy link
Collaborator

Hi all, I was wondering if there is a way to read the joint torques estimated by WBD when the robot is simulated? I checked the available YARP ports and none is used for the estimated joint torques. Are they exposed in some way? I would like to read them in order to log a dataset.

cc @GiulioRomualdi @traversaro

@traversaro
Copy link
Member

The estimated torques are published in C++ by attaching devices that implement the YARP Device interface IVirtualAnalogSensor (see

ok = this->openRemapperVirtualSensors(config);
). This interface is implemented on the real robot on devics such as embObjMotionControl (see https://github.com/robotology/icub-main/blob/624bc968dabe64bfb129a25f72e0b80fc9503af0/src/libraries/icubmod/embObjMotionControl/embObjMotionControl.cpp#L3733), but to publish that on a YARP port, you can use a virtualAnalogClient device, see
* Parameters accepted in the config argument of the open method:
for its parameters.

See for example:

@traversaro
Copy link
Member

fyi @Nicogene

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

No branches or pull requests

2 participants