RyuYamamoto / turtlebot_octomap

MIT License
17 stars 5 forks source link

can't get the octomap #8

Open junjie666666 opened 7 years ago

junjie666666 commented 7 years ago

I can get the colorful 3D map follow your code,thank you very much.but I can't get the octomap by the order:roslaunch turtlebot_octomap turtlebot_build_map.launch I try to change the topic of mapcloud from /mapData to /octomap_cloud,but it doesn't work. Therefore,how can I get the octomap just like the video on your youtube?

hychiang-git commented 5 years ago

I have the same issue here.

I got some errors with the two launch files provided in the repository, so I modify the launch files as below


- `turtlebot_rtabmap.launch` (is the same with `demo_turtlebot_mapping.launch` under `/opt/ros/kinetic/share/rtabmap_ros/launch/demo`)


As I ran `roslaunch turtlebot_octomap turtlebot_build_map.launch`  and `roslaunch kobuki_keyop keyop.launch`, I could control the turtlebot and the RTAB worked fine.

![image](https://user-images.githubusercontent.com/9960543/54515765-076dbe00-4998-11e9-9032-5770becd787a.png)

I could also see some pointcloud as I subscribe /rtabmap/cloud_map in RVIZ
![image](https://user-images.githubusercontent.com/9960543/54516243-49e3ca80-4999-11e9-9e23-a1edc0940001.png)

However, as I tried to visualize the octomap, I saw nothing in my RVIZ.
![image](https://user-images.githubusercontent.com/9960543/54515928-7e0abb80-4998-11e9-947b-5a288215b62f.png)

I also provide the rqt_graph here in case.
![image](https://user-images.githubusercontent.com/9960543/54516536-266d4f80-499a-11e9-95c5-7f45108bc06e.png)

Does anyone have the experience of visualizing octomap in rviz?

Thanks