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 is displayed in rviz #10

Closed
yangjiongfeng opened this issue Jul 3, 2019 · 8 comments
Closed

No map is displayed in rviz #10

yangjiongfeng opened this issue Jul 3, 2019 · 8 comments

Comments

@yangjiongfeng
Copy link

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
Copy link
Owner

hyye commented Jul 3, 2019

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
Copy link
Author

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
Copy link
Owner

hyye commented Jul 4, 2019

Can you make sure if you build the code with Release option? As I replied here #2 (comment).

@hyye
Copy link
Owner

hyye commented Jul 4, 2019

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

@yangjiongfeng
Copy link
Author

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
Copy link
Owner

hyye commented Jul 4, 2019

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
Copy link
Author

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
Copy link
Owner

hyye commented Jul 4, 2019

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

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

2 participants