Closed DPD85 closed 3 years ago
Thank-you for this report @DPD85 . Would you be interested in submitting a PR to fix this?
@leif81 I did it.
@leif81 It is necessary to revert this because
marshalSize = marshalSize + _articulationParameters.size(); // _numberOfArticulationParameters
this is the size of the variable containing the number of articulation parameters and not the number of articulation parameters. So if you marshal the PDU and compare the size of the buffer with the marshalled size then you will find a difference of 1 byte.
Sorry for the mistake! :-(
Ok thanks for heads up. Can you submit a pull request? I'll merge it when it comes in.
Or did you want the whole original pull request reverted?
You can revert the entire original pull request
Thank-you @DPD85 , the revert is done now.
Inside the implementation of EntityStatePdu I discovered that the marshalled size of the PDU is calculated assuming to be present always only one articulation parameter. This is true for DIS6 and DIS7.
As is possible to see the number of articulation parameters is stubbed to one when instead it should be _articulationParameters.size().