Robotics StackExchange | Archived questions

unable to create an octomap from a .bag file using PointCloud2

Hello everyone,

I have a bag file which consists of "PointCloud2" with a corresponding "tf" messages. I am trying to build up an octomap using the inbuilt octomap_server in ROS.

Steps I followed:

  1. Launched "roscore" in one terminal
  2. Edited the file "/opt/ros/groovy/stacks/octomapmapping/octomapserver/launch/octomapmapping.launch" mapped the cloudin to my PointCloud2 topic and changed the name of field to "base_link" as given in the header of the bag file.
  3. Launched octomap node: "roslaunch octomapserver octomapmapping.launch" in a new terminal
  4. Played the bag file: "rosbag play "

Now I am getting this error in the 3rd step-console.

Failed to find match for field 'x'. Failed to find match for field 'y'. Failed to find match for field 'z'.

  1. Now I tried to check if the octomapserver is actually publishing anything back or not: "rostopic echo octomappointcloudcenters " (for PointCloud2: and I am getting the output here)

  2. After this I tried to save the point cloud in form of a .ot file: "rosrun octomapserver octomapsaver " [ INFO] [1397346480.036348865]: Requesting the map from /octomap_binary... [ INFO] [1397346480.039883790]: Map received (17 nodes, 0.050000 m res), saving to sample.ot

  3. But now when I am trying to visualize this octomap using "octovis" : "octovis out.ot"

"I am not able to see a octomap out of it."

I further looked into this and found this issue : dev.pointclouds.org/issues/821

Asked by rosAS on 2014-04-12 15:03:37 UTC

Comments

Can you share the bag file? Were you able to resolve the issue?

Asked by pallyra1 on 2018-02-19 06:24:12 UTC

Answers