ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Adding a call to canTransform or waitForTransform before lookupTransform solves the problem. For example, listener.waitForTransform("/map", "/base_link", ros::Time(0),ros::Duration(1)); the line before lookupTransform makes everything work.

One of my colleagues recommend that I always call waitForTransform before lookupTransform.

Is this a bug in TransformListener or normal behaviour?

click to hide/show revision 2
Modified on request from tom

Adding a call to canTransform or waitForTransform before lookupTransform solves the problem. For example, listener.waitForTransform("/map", "/base_link", ros::Time(0),ros::Duration(1)); the line before lookupTransform makes everything work.

One of my colleagues recommend that I always call waitForTransform before lookupTransform.

Is this a bug in TransformListener or normal behaviour?