Closed HosameldinMohamed closed 11 months ago
CC @traversaro
If I recall correctly the current logic is that you should either have all sensors exposed via IAnalogSensors or all via ISixAxisForceTorqueSensors, you can't mix some sensors exposed via IAnalogSensors and some others via ISixAxisForceTorqueSensors.
If I recall correctly the current logic is that you should either have all sensors exposed via IAnalogSensors or all via ISixAxisForceTorqueSensors, you can't mix some sensors exposed via IAnalogSensors and some others via ISixAxisForceTorqueSensors.
I'm not sure this is the cause of this particular error, anyhow I tried with all FTs exposed via ISixAxisForceTorqueSensors
, but still the same error occurs.
The error happens because attach methods in https://github.com/robotology/whole-body-estimators/blob/c46c1852974776038a75b7c0e542ccb2917d7c7f/devices/wholeBodyDynamics/WholeBodyDynamicsDevice.cpp#L1734-L1735
are executed with no errors but still return 0 devices because remappedMASInterfaces.ftMultiSensors->getNrOfSixAxisForceTorqueSensors()
returns 0.
I found that I am missing the group multipleAnalogSensorsNames
in the config files, which I guess should list the names of the MAS FT sensors, see this logic
https://github.com/robotology/whole-body-estimators/blob/c46c1852974776038a75b7c0e542ccb2917d7c7f/devices/wholeBodyDynamics/WholeBodyDynamicsDevice.cpp#L772-L795
But I still can't get it right because I don't know how to properly add this group. CC @CarlottaSartore @GiulioRomualdi
But I still can't get it right because I don't know how to properly add this group.
Adding this configuration worked (we are using 4 FTs in iRonCub):
<group name="multipleAnalogSensorsNames">
<param name="SixAxisForceTorqueSensorsNames">("l_arm_ft_sensor", "r_arm_ft_sensor", "l_leg_ft_sensor", "r_leg_ft_sensor")</param>
<param name="TemperatureSensorsNames">("l_arm_ft_sensor", "r_arm_ft_sensor", "l_leg_ft_sensor", "r_leg_ft_sensor")</param>
</group>
Probably we need to document this somewhere..
I was also able to launch the device successfully with mixing attaching multipleanalogservers
and analogservers
.
CC @traversaro
I think we can close this issue!
Here's the config file I used
config file
```xmlBasically, I replaced 2
analogServer
FTs withmultipleanalogservers
.I am getting the following error
It happens due to this line:
https://github.com/robotology/whole-body-estimators/blob/c46c1852974776038a75b7c0e542ccb2917d7c7f/devices/wholeBodyDynamics/WholeBodyDynamicsDevice.cpp#L1743-L1747
Which is strange because the MAS sensors are detected based on
From line https://github.com/robotology/whole-body-estimators/blob/c46c1852974776038a75b7c0e542ccb2917d7c7f/devices/wholeBodyDynamics/WholeBodyDynamicsDevice.cpp#L1720
Which means
ftSensorList.size()
is actually not empty.What could I be possibly missing?