peterWon / CleaningRobot

Path planning and tracking using ROS
244 stars 82 forks source link

The program has a runtime error #9

Open X5reme opened 3 years ago

X5reme commented 3 years ago

Error msg is:[ERROR] [1606813160.660855737]: Do not call canTransform or lookupTransform with a timeout unless you are using another thread for populating data. Without a dedicated thread it will always timeout. If you have a seperate thread servicing tf messages, call setUsingDedicatedThread(true) on your Buffer instance.

X5reme commented 3 years ago

I found something wrong. _tf2ros::Buffer tf(ros::Duration(10)); It should be amended as: _tf2_ros::Buffer tf; tf2ros::TransformListener tfListener(tf); However, after modifying the code, the path cannot be displayed.

jessieqiqi commented 3 years ago

@X5reme me too ! It bas been solved?

SIIYIIX commented 3 years ago

me too!

bharathyr06002 commented 2 years ago

I found something wrong. _tf2ros::Buffer tf(ros::Duration(10)); It should be amended as: _tf2_ros::Buffer tf; tf2ros::TransformListener tfListener(tf); However, after modifying the code, the path cannot be displayed.

if u r getting indexes and distance being displayed in terminal , it means algorithm is still running.... reducing map size might help.