Yarp: Unable to compile yarp_ovrheadset

Created on 19 Dec 2018  路  4Comments  路  Source: robotology/yarp

Describe the bug
When I try to compile yarp_ovrheadset I get the following error.
~
a reference of type "yarp::dev::iBattery::Battery_status&" (not const-qualified) cannot be initialized with a value of type "int"
~

Screenshots
schermata del 2018-12-19 16-42-11

Configuration:

Additional context
The bug can be easily fixed by editing https://github.com/robotology/yarp/blob/053d25c23164c7c4a46e056036c6bd17a60ed429/src/devices/ovrheadset/TextureBattery.cpp#L148
into

yarp::dev::iBattery::Battery_status status;

cc @aerydna @kouroshD

Devices YARP v3.2.0 Bug

All 4 comments

@randaz81 I think this might be related to your recent changes to the Battery stuff

424d772 is fine, please proceed...

Fixed by #1943

Shall we cherry-pick the fix in master ?

I think that the changes to the battery are in devel only

Was this page helpful?
0 / 5 - 0 ratings