OctoMap / octomap_mapping

ROS stack for mapping with OctoMap, contains octomap_server package
http://www.ros.org/wiki/octomap_mapping
342 stars 280 forks source link

Nothing to publish, octree is empty #63

Closed agchatzik closed 3 years ago

agchatzik commented 4 years ago

I am a publishing a PointCloud (Type: sensor_msgs/PointCloud2) in topic pc_pub. I have remapped "cloud_in" topic to the according pointcloud topic and the fixed frame in the launch file corresponds to the fixed frame in rviz (map) . Running ran "rostopic echo pc_pub" verifies that the pointcloud is indeed being published to this topic and octomap_server is Subscribing into the topic too. However, "Nothing to publish, octree is empty" appears. What could the problem be?

borcherd commented 4 years ago

@kaponloto Did you ever solve it?

wxmerkt commented 4 years ago

Is the map frame being published?

FeiyangJin commented 4 years ago

You may need to specify frame_id and base_frame_id to the same as you used in Rviz. In my case, I did it like:

tomkimsour commented 3 years ago

How did you fix it ?

leonardlohky commented 3 years ago

Also facing this same issue under similar circumstances. Has anyone been able to find a solution?

sherlockholmes1603 commented 2 years ago

Sir we are getting the same error and also there is warn status by visualizing "/occupied_cells_vis_array" topic in rviz and also "/free_cells_vis_array" topic is empty while visualizing the topic in rviz

Please help me guide me what to do

tejalbarnwal commented 2 years ago

Hey, you need to ensure that there is a transformation from the frame_id that you had specified in the octomap_mapping.launch and the frame_id that is present inside the header part of the sensor data.

ShuiYunXi commented 2 years ago

I also get the same error and how to set the transformation frame_id ?by the way my enviroment is foxy and ubuntu20.04.

my error info:

[INFO] [launch]: Default logging verbosity is set to INFO [INFO] [octomap_server_node-1]: process started with pid [11004] [octomap_server_node-1] [INFO] [1651821775.666505026] [octomap_server]: Publishing latched (single publish will take longer, all topics are prepared) [octomap_server_node-1] [WARN] [1651821775.689450702] [octomap_server]: Nothing to publish, octree is empty [octomap_server_node-1] [WARN] [1651821775.689514529] [octomap_server]: Could not open file


JMadhup commented 2 years ago

@ShuiYunXi open the octomap_mapping.launch file in the octomap_server package and there you will see the frame_id parameter. You can then set its value to whatever frame_id is in your sensor message header.

pathakarvindk commented 1 year ago

@ShuiYunXi Did you get any solution. My environment is also foxy and ubuntu20.04. I have point cloud, need to consider that as a collision object in the form of octomap.

Any help is appreciated.

HuaYuXiao commented 7 months ago

If your map is relatively big, just wait for a while and see what happens.