Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No map data on 2d rplidar #1545

Open
joyde3382 opened this issue Mar 18, 2019 · 5 comments
Open

No map data on 2d rplidar #1545

joyde3382 opened this issue Mar 18, 2019 · 5 comments

Comments

@joyde3382
Copy link

joyde3382 commented Mar 18, 2019

Hey i have this issue when running the command

`roslaunch cartographer_ros backpack_2d.launch´

The process starts but gets stuck like in the picture below

Screenshot from 2019-03-18 14-08-31

I am fully able to run the deutsche museum demo, provided by Cartographer, but i can't get it to work with my own lidar (RPLidar a1).

Also the lidar is perfectly connected (i get data from /scan) and i am running hector SLAM just fine.
roscore and rviz are also both up and running beforehand.

Any suggestions to get it working with cartographer?

@carry4985
Copy link

I guess you need check the configuration file(.lua). you should set num_laser_scans = 1 and num_multi_echo_laser_scans = 0

@joyde3382
Copy link
Author

joyde3382 commented Mar 21, 2019

@carry4985

Thanks for your reply, but I already did that, still same issue :/

here are my .lua and .launch files

backback_2d.lua: https://pastebin.com/FXA4Du0D
backback_2d.launch: https://pastebin.com/trzJDZ7Z

and this is my rqt_graph:

rqt_graph_cartographer2

@carry4985
Copy link

carry4985 commented Mar 22, 2019 via email

@joyde3382
Copy link
Author

joyde3382 commented Mar 25, 2019

@carry4985, not quite sure what you're getting at. I managed to link the lidar node with the cartographer node
by replacing the following lines:

tracking_frame = "base_link",
published_frame = "base_link",

with

tracking_frame = "rplidarNode",
published_frame = "rplidarNode",

Screenshot from 2019-03-25 14-52-02

However i am still stuck at the same place..

@joyde3382 joyde3382 changed the title Stuck when trying to launch cartographer with RPLidar No map data on 2d rplidar Mar 25, 2019
@jgaud
Copy link

jgaud commented Nov 15, 2019

@joyde3382 Did you figure out how to set it up?
I am running into the same issue.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants