Scan Matching Failed

1,231 views
Skip to first unread message

Wu Jiang

unread,
Jul 15, 2017, 11:44:39 PM7/15/17
to LINOROBOT
When I launched slam.launch with rplidar a2, I got this message:

Scan Matching Failed, using odometry

Does it mean the laser lost sync with odom?

Juan Miguel Jimeno

unread,
Jul 16, 2017, 12:03:08 AM7/16/17
to LINOROBOT
Hi Wu Jiang,

May I know which version are you using?

Can you run $ rosrun tf view_frames
and post the pdf here?

Thanks!

Wu Jiang

unread,
Jul 16, 2017, 1:47:49 AM7/16/17
to LINOROBOT
Hi Juan,

Please see the attached frames.pdf file. Thanks. 

frames.pdf

Wu Jiang

unread,
Jul 16, 2017, 2:00:45 AM7/16/17
to LINOROBOT
Actually, this one for slam.
frames.pdf

Wu Jiang

unread,
Jul 16, 2017, 2:05:07 AM7/16/17
to LINOROBOT
ran roswtf:

nvidia@tegra-ubuntu:~$ roswtf
Loaded plugin tf.tfwtf
No package or stack in context
================================================================================
Static checks summary:

No errors or warnings
================================================================================
Beginning tests of your ROS graph. These may take awhile...
analyzing graph...
... done analyzing graph
running graph rules...
... done running graph rules
running tf checks, this will take a second...
... tf checks complete

Online checks summary:

Found 1 warning(s).
Warnings are things that may be just fine, but are sometimes at fault

WARNING The following node subscriptions are unconnected:
 * /slam_gmapping:
   * /tf_static
 * /rosserial_lino:
   * /pid
 * /rviz_1500184474894081479:
   * /tf_static
   * /map_updates

Wu Jiang

unread,
Jul 16, 2017, 2:11:43 AM7/16/17
to LINOROBOT
for navigation.launch, I have

nvidia@tegra-ubuntu:~$ roswtf
Loaded plugin tf.tfwtf
No package or stack in context
================================================================================
Static checks summary:

No errors or warnings
================================================================================
Beginning tests of your ROS graph. These may take awhile...
analyzing graph...
... done analyzing graph
running graph rules...
... done running graph rules
running tf checks, this will take a second...
... tf checks complete

Online checks summary:

Found 1 warning(s).
Warnings are things that may be just fine, but are sometimes at fault

WARNING The following node subscriptions are unconnected:
 * /amcl:
   * /tf_static
 * /rviz_1500184474894081479:
   * /tf_static
 * /rosserial_lino:
   * /pid
 * /move_base:
   * /tf_static
   * /move_base/cancel


Found 1 error(s).

ERROR The following nodes should be connected but aren't:
 * /move_base->/move_base (/move_base/global_costmap/footprint)
 * /move_base->/move_base (/move_base/local_costmap/footprint)

Juan Miguel Jimeno

unread,
Jul 16, 2017, 1:38:00 PM7/16/17
to LINOROBOT
Hi Wu Juang,

Can you verify that the laser sensor's working using rviz? https://github.com/linorobot/linorobot/wiki/4.-Laser-Sensor


Just curious are you running all the nodes in the robot's computer?

Wu Jiang

unread,
Jul 17, 2017, 7:38:55 PM7/17/17
to LINOROBOT
Yea, the laser sensor is working in rviz.

Everything is running on robot's computer. I changed some of the params suggested from here http://answers.ros.org/question/206185/why-rplidar-gmapping-has-a-bad-result/

odom_frame: odom 
delta: 0.025
minimumScore: 50
maxRange: 5.5
maxUrange: 5.5
linearUpdate: 0.2
angularUpdate: 0.25
temporalUpdate: 5

Wu Jiang

unread,
Jul 17, 2017, 7:47:05 PM7/17/17
to LINOROBOT
Sorry, posted too fast. After I made these modifications, it works much better now.

Juan Miguel Jimeno

unread,
Jul 17, 2017, 8:42:23 PM7/17/17
to LINOROBOT
Great! You're almost done. Post some pictures of your build once you've wrapped up. :p

Juan Miguel Jimeno

unread,
Jul 18, 2017, 11:40:54 AM7/18/17
to lino...@googlegroups.com
Btw, how's the repo's gmapping settings on RPLidar. I have to take note of this so I can tweak the settings accordingly for RPLidar users. I've tried the same settings on a Hokuyo UST-10LX and it works just as fine tho.

Wu Jiang

unread,
Jul 19, 2017, 1:05:27 PM7/19/17
to LINOROBOT
After I used these params, it works well.

Wu Jiang

unread,
Jul 19, 2017, 2:07:20 PM7/19/17
to LINOROBOT
Actually, let me test more because that error still happens sometimes. I'll report back a fix.

Karthik Balu

unread,
Jun 20, 2019, 7:12:22 AM6/20/19
to LINOROBOT
we are also getting map shifted & jumbled once i start moving and we used your settings but no luck

pls help!

thanks
Reply all
Reply to author
Forward
0 new messages