Description

This package is developed based on the package or_octomap, which can be used to give octomap support to OpenRAVE. General information about OctoMap is available here. More information about the octomap pipeline in ROS can be found at http://wiki.ros.org/octomap.

Travis - Continuous Integration

Documentation

Run

Once the camera is launched and the point cloud topic is being published, the octomap can be created by running:

1 rosrun or_octomap_plugin octomap_creation.py

In order to successfully create the octomap, some command line parameters need to be set correctly:

1 Parameters:
2 --file-name : File name for the generated octomap. Default=octomap.
3 --topic : Point cloud topic name. Default=/camera/depth/points.
4 --frame : The frame name of the octomap. Default=map.
5 --range : Max range of the input point cloud (m). Default=2.0
6 --resolution: Leaf cube size (mm) of the octomap. Default=0.005
7 --timeout : Timeout (s) for the octomap creation. Default=10

Test results

Some test results working with the ensenso camera, can be found at wiki/Test-Results

Note

When the octomap is created, there is some annoying info Writing 181520 nodes to output stream... keep publishing, which could not be stopped from the command or code. The most efficient way to stop it is to add the following line #define NDEBUG to the file /opt/ros/kinetic/include/octomap/octomap_types.h, which would look like:

1 {c++}
2 #define NDEBUG
3 // no debug output if not in debug mode:
4 #ifdef NDEBUG
5  #ifndef OCTOMAP_NODEBUGOUT
6  #define OCTOMAP_NODEBUGOUT
7  #endif
8 #endif

Collision Checking

When or_octomap is created and enabled, or_octomap_checker will be set as the collision checker of OpenRAVE. When this is done, all collision checks get tested against the octomap before they are tested against other OpenRAVE kinbodies. In experiments, fcl collision checker is still at least ten times faster than the or_octomap_checker, therefore it is recommanded to load the generated octomap mesh file into OpenRAVE, and use fcl to make collision check.



or_octomap_plugin
Author(s): Yan Yu
autogenerated on Tue Oct 24 2017 18:02:48