DLu / navigation_layers

155 stars 136 forks source link

Undefined symbol at run-time (getTimestamp) #56

Closed pavloblindnology closed 4 years ago

pavloblindnology commented 5 years ago

This line https://github.com/DLu/navigation_layers/blob/3ac9f75370a40e6e56861369456e06d32fd641d5/social_navigation_layers/src/social_layer.cpp#L51 at run-time throws

move_base: symbol lookup error: /home/pkolomiets/eyeguide-main/app/ros/devel/lib//libsocial_layers.so: undefined symbol: _ZN3tf212getTimestampIN13geometry_msgs13PointStampedISaIvEEEEERKN3ros4TimeERKT

This is cured by including tf2_geometry_msgs in social_layer.cpp

include <tf2_geometry_msgs/tf2_geometry_msgs.h>

P.S. Also, why people message's timestamp isn't used for transform? The latest timestamp is used instead.