hyye / lio-mapping

Implementation of Tightly Coupled 3D Lidar Inertial Odometry and Mapping (LIO-mapping)
https://sites.google.com/view/lio-mapping
GNU General Public License v3.0
898 stars 320 forks source link

No map is displayed in rviz #10

Closed yangjiongfeng closed 5 years ago

yangjiongfeng commented 5 years ago

hello i have been run 1.roslaunch lio test_indoor.launch 2.roslaunch lio map_4D_indoor.launch 3.rosbag play fast1.bag but ,No map is displayed in rviz What's wrong with me?

hyye commented 5 years ago

I guess it could related to the communication problem in ROS. Could you close all your launches and start roscore first, before you start other launches and rosbag? rostopic or rqt_graph commands can also help you debug with this problem.

BTW, please make sure the code is built with Release option.

yangjiongfeng commented 5 years ago

I have been restart many times, But as a result, also no map was displayed on rviz 。 What's your WeChat or Email number?

hyye commented 5 years ago

Can you make sure if you build the code with Release option? As I replied here https://github.com/hyye/lio-mapping/issues/2#issuecomment-488046749.

hyye commented 5 years ago

Try to use catkin build -DCMAKE_BUILD_TYPE=Release lio or catkin_make -DCMAKE_BUILD_TYPE=Release to rebuild the project.

yangjiongfeng commented 5 years ago

Thank you! when i try to use catkin build -DCMAKE_BUILD_TYPE=Release ,I've solved the problem 。 why you project need use catkin build -DCMAKE_BUILD_TYPE=Release but not catkin_make?

hyye commented 5 years ago

Glad to help! It is not catkin build or catkin_make making differences, but the CMAKE_BUILD_TYPE. Typically, catkin build or catkin_make will not trigger the Release flag.

yangjiongfeng commented 5 years ago

i have build map use you code. now,i run rosrun rqt_tf_tree rqt_tf_tree,can show de tf_tree 选区_006 and then,i run rqt_graph show 选区_011 only /local/full_point between lio_estimator and lio_map_builder, but you code have four subscribe 选区_010

why build the map only use one subscribe?

hyye commented 5 years ago

It should be four instead of only one, if it run properly. Maybe some of the programs (nodes) are exited.