/voxfield

🦊 Voxfield: non-Projective Signed Distance Fields for Online Planning and 3D Reconstruction [IROS' 22]

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

This repository represents the official implementation of the paper:

Voxfield: Non-Projective Signed Distance Fields for Online Planning and 3D Reconstruction

Yue Pan, Yves Kompis, Luca Bartolomei, Ruben Mascaro, Cyrill Stachniss, Margarita Chli

ETH Zurich | University of Bonn

1-min demo video | 7-min presentation | paper

Pipeline


Voxfield is an improved version of the volumetric mapping framework Voxblox on both the mapping accuracy and efficiency. Voxfield is heavily based on the original Voxblox implementation, with the additional capacity of a non-projective TSDF integration and an efficient ESDF integration based on TSDF map. The constructed TSDF and ESDF map can be used for 3D reconstruction and robot path planning in real-time.

This repository also provides the implementation of other state-of-the-art methods (Voxblox, FIESTA, EDT) on this task. A comparison of these methods' workflow are shown below.

Pipeline

Voxfield can be seamlessly integrated into those projects that originally use Voxblox as their volumetric mapping backbone (Cblox, Voxgraph, Kimera, etc). To make Voxfield directly compatible to those projects, we keep the name of our package as voxblox. In addition, we provide an example on a multi-resolution panoptic mapping framework Panmap for high-fidelity large-scale semantic reconstruction.

Installation

If you have installed ROS, set up the catkin workspace and the SSH key for github, you can use the following commands to install Voxfield:

cd ~/catkin_ws/src/
git clone git@github.com:VIS4ROB-lab/voxfield.git
wstool init . ./voxfield/voxfield_ssh.rosinstall     # If you created a new workspace
wstool merge -t . ./voxfield/voxfield_ssh.rosinstall # If you use an existing workspace
wstool update

And then compile Voxfield with:

cd ~/catkin_ws/src/
catkin build voxblox_ros

To avoid the potential conflict, if the original voxblox was installed, it's better to remove voxblox from catkin_ws/src.

For more details, please follow these instructions.

Instructions

  • To run the non-projective TSDF mapping and ESDF mapping of the proposed Voxfield, use the executables: np_tsdf_server and voxfield_server.
  • To run the original TSDF mapping and ESDF mapping of Voxblox, use the executables: tsdf_server and voxblox_server.
  • To run the ESDF mapping of FIESTA, use the executables: fiesta_server.
  • To run the ESDF mapping of EDT, use the executables: voxedt_server.
  • List of the ros services can be found here, which should be the same as Voxblox.

Example Usage

Run on the Cow & Lady real-world RGB-D dataset

  1. Download the dataset here or use the following command in a target folder:
wget http://robotics.ethz.ch/~asl-datasets/iros_2017_voxblox/data.bag
wget http://robotics.ethz.ch/~asl-datasets/iros_2017_voxblox/voxblox_cow_extras.zip
  1. Set the bag_file path in the launch files ./voxblox_ros/launch/voxfield_launch/cow_voxfield.launch to the path storing the Cow & Lady bag file.
  2. Run Voxfield mapping on the Cow & Lady dataset:
roslaunch voxblox_ros cow_voxfield.launch

Run on the KITTI real-world LiDAR or stereo dataset

  1. Download the full dataset here or a rosbag of sequence07 here. Then use the kitti_to_rosbag package to convert the full dataset to rosbags.
  2. Set the bag_file path in the launch files ./voxblox_ros/launch/voxfield_launch/kitti_voxfield.launch to the path storing the KITTI bag file.
  3. Run Voxfield mapping on the KITTI dataset:
roslaunch voxblox_ros kitti_voxfield.launch

Run on the MaiCity synthetic LiDAR dataset

  1. Download the dataset here or use the following command in a target folder:
wget https://www.ipb.uni-bonn.de/html/projects/mai_city/mai_city.tar.gz
tar -xvf mai_city.tar.gz
  1. Set the bag_file path in the launch files ./voxblox_ros/launch/voxfield_launch/mai_voxfield.launch to the path storing the MaiCity bag file.
  2. Run Voxfield mapping on the MaiCity dataset:
roslaunch voxblox_ros mai_voxfield.launch

Run on your own data (TBA)

Customizing, comparison and evaluation

To change the mapping and visualization parameters such as voxel size and truncation distance, please configure the .yaml files under ./voxblox_ros/cfg/param/ folder.

For the comparison with other state-of-the-art methods (Voxblox, FIESTA, EDT), set the bag_file path in the corresponding launch file [dataset]_[method].launch and launch it.

To evaluate the TSDF, mesh and ESDF mapping quality, one first need to use the ros service to save the corresponding map. You can configure the data path and evaluation setup here and conduct the evaluation by launching here. You may also check the evaluation metrics here.

Used for online path planning

Please check these instructions and the repository mav_voxblox_planning.

Replace Voxblox in your high-level volumetric mapping project

  • Panmap (Multi-resolution panoptic mapping)
  • Kimera (Semantic-metric mapping)
  • Voxgraph (Global consistent mapping)
  • ... ...

Citation

If you find this code useful for your work or use it in your project, please consider citing the paper:

@inproceedings{pan2022iros,
  title={Voxfield: Non-Projective Signed Distance Fields for Online Planning and 3D Reconstruction},
  author={Yue Pan and Yves Kompis and Luca Bartolomei and Ruben Mascaro and Cyrill Stachniss and Margarita Chli},
  booktitle={Proceedings of the IEEE/RSJ Int. Conf. on Intelligent Robots and Systems (IROS)},
  year={2022}
}

Acknowledgments

We thanks greatly for the authors of the following opensource projects:

  • Voxblox (underlying data structure, mesh reconstruction, visualization, comparison baseline)
  • FIESTA (comparison baseline)
  • VDB-EDT (comparison baseline)