[ros-users] SegFault in TransformBroadcaster

Brian Gerkey gerkey at willowgarage.com
Thu Jan 13 06:08:23 UTC 2011


On Wed, Jan 12, 2011 at 8:44 AM, David Gossow <dgossow at uni-koblenz.de> wrote:
> Problem solved. I've called add_library instead of rosbuild_add_library
> for the class where the error h
> happened. This lead to the compiler flag -DBT_USE_DOUBLE_PRECISION being
> missing in that part of the code, which resulted in my code and all
> inline functions assuming float data and the externally linked code
> assuming double data. The std::strings that caused the segfault were
> thus overwritten by the oversized double data.
>
> Seems a bit dangerous to have this flag set via the manifest.xml export
> and not checking it somehow, as everything will compile without warning
> and then produce seemingly random errors.

Glad to hear that you figured it out.  Any suggestion on where else
those compile flags should live?

	brian.



More information about the ros-users mailing list