navigation icon indicating copy to clipboard operation
navigation copied to clipboard

Amcl not working properly .

Open Daviesss opened this issue 1 year ago • 4 comments

I have a problem . Which i have been on for the past one week. I dont know why this pops up . I am working on Multi robot collaboration(SLAM) . But for some reasons the error below pops up anytime i use Amcl (the robot cant be able to localize on the map due to this error) . I will be glad if i get a help .

[ WARN] [1694953982.886336265, 170.233000000]: No laser scan received (and thus no pose updates have been published) for 170.233000 seconds. Verify that data is being published on the /robot3/scan topic.

Screenshot from 2023-09-17 13-22-34

Daviesss avatar Sep 17 '23 12:09 Daviesss

I solved this problem. I had to tweak the source code . Since the ros::Duration was greater than my laser scan interval the warning messages pops up and my robot scan topics will not receive scan data . So I had to make changes to that method.

Daviesss avatar Sep 18 '23 16:09 Daviesss

I solved this problem. I had to tweak the source code . Since the ros::Duration was greater than my laser scan interval the warning messages pops up and my robot scan topics will not receive scan data . So I had to make changes to that method.

did you mean this duration? https://github.com/ros-planning/navigation/blob/9ad644198e132d0e950579a3bc72c29da46e60b0/amcl/src/amcl_node.cpp#L509C47-L509C47

Bankbuster777 avatar Jan 11 '24 12:01 Bankbuster777

To reduce the number of TF_REPEATED_DATA warnings the laser scan publish rate needs to be reduced, because amcl depends on rate of incoming laser messages. I edited the source code of amcl to suit the coordination. Works fine now .

Daviesss avatar Feb 25 '24 20:02 Daviesss

I solved this problem. I had to tweak the source code . Since the ros::Duration was greater than my laser scan interval the warning messages pops up and my robot scan topics will not receive scan data . So I had to make changes to that method.

I have the same error message:

"[WARN] [1722117737.201293908]: No laser scan received (and thus no pose updates have been published) for 1722117737.201188 seconds. Verify that data is being published on the /scan topic."

I can see that there are messages being published in the /scan topic and that amcl is subscribing to this topic.

How did you go about solving it?

ROS Noetic

mateusguilhermedasilva avatar Jul 27 '24 22:07 mateusguilhermedasilva