[Rock-dev] Strange size of some packed std::string
Janosch Machowinski
Janosch.Machowinski at dfki.de
Wed May 17 08:37:45 CEST 2017
I digged further into this issue,
between gcc versions the implementation
of std::string changed, resulting in this difference
in size. The 'typelib' format is not affected from
this. However the isSame call is affected. As this
seems to be a typelib issue then I switch to a
issue on github...
Greetings
Janosch
Am 16.05.2017 um 17:13 schrieb Janosch Machowinski:
> Hey,
> we got some strange log files, were the size of
> SOME std::string containers is reported to be 8 Bytes.
> The size of the std::string container on the host system is
> 32 byte.
>
> Log :
> compound /base/samples/RigidBodyState_m [416] {
> (+0) compound /base/Time [8] {
> (+0) sint(8) (/int64_t) microseconds
> }; time
> (+8) container /std/string</int8_t> (8) sourceFrame
> (+16) container /std/string</int8_t> (8) targetFrame
> (+24) compound /wrappers/Matrix</double,3,1> [24]
>
> Host :
> (+0) compound /base/Time [8] {
> (+0) sint(8) (/int64_t) microseconds
> }; time
> (+8) container /std/string</int8_t> (32) sourceFrame
> (+40) container /std/string</int8_t> (32) targetFrame
>
> The c++ replay fails to replay these streams, while the
> ruby version seems to be able to replay the streams.
> Any idea what might be going on here ?
> Janosch
>
>
--
Dipl. Inf. Janosch Machowinski
SAR- & Sicherheitsrobotik
Universität Bremen
FB 3 - Mathematik und Informatik
AG Robotik
Robert-Hooke-Straße 1
28359 Bremen, Germany
Zentrale: +49 421 178 45-6611
Besuchsadresse der Nebengeschäftstelle:
Robert-Hooke-Straße 5
28359 Bremen, Germany
Tel.: +49 421 178 45-6614
Empfang: +49 421 178 45-6600
Fax: +49 421 178 45-4150
E-Mail: jmachowinski at informatik.uni-bremen.de
Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
More information about the Rock-dev
mailing list