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

How to visualize octomap in rviz? #5

Open
yincanben opened this issue Nov 10, 2014 · 1 comment
Open

How to visualize octomap in rviz? #5

yincanben opened this issue Nov 10, 2014 · 1 comment
Assignees

Comments

@yincanben
Copy link

Hello,
I have experienced this package,It is very cool.But when I have tried to run octomap from Kinect data using rgbdslam, I can't visualize anything in rviz.
My setup:
ROS hydro on Ubuntu LTS12.04.
rgbdslam_v2 downloaded ,compiled and installed.
octomap and octomap_mapping installed

The terminal is:

roscore
roslaunch openni_launch openni.launch
roslaunch rgbdslam rgbdslam.launch
roslaunch rgbdslam octomap_server.launch
Some things I've done:
I select that the value of "Fixed frame" is "/map" ,At the same time ,I added MarkerArray /occupied_cells_vis_array.
I also tried to run: rostopic echo /batch/clouds ,The terminal display is:
WARNING: topic [/batch/clouds] does not appear to be published yet

Then I modified src/parameter_sever.cpp
from "addOption("batch_processing", static_cast (false), " to addOption("batch_processing", static_cast (true);
But there is nothing in rviz.
Also,When I added "pointcloud",I have no anything .

I want to visualize the octomap in rviz when it is connect kinect,Can you help me solve this problem ?In advance thank you!

@felixendres
Copy link
Owner

Hi,
I would assume that you haven't send the model (i.e. the registered clouds) to the octomap server yet. Press ctrl+m or select "send model" from the gui's i/o menu. If you are running headless, there is a ROS service call mentioned in the README.
However, the transmission of the clouds between rgbdslam and octomap_server was often brittle. Rgbdslamv2 can use the octomap library internally now, see the Octomap menu in the GUI. It will not visualize to rviz and not act as a map server, but you can view the octomap in rgbdslam's gui and save it.

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

No branches or pull requests

2 participants