Skip to content

mqjinwon/direct_lidar_odometry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Direct LiDAR Odometry: Fast Localization with Dense Point Clouds

This repository is for an easy-to-use library utilizing Docker. We use the following environment.

  • docker
    • Ubuntu 20.04
    • ROS noetic

You can find the original instruction file here

We have modified README.md to include instructions for installing Docker images and containers.

1. Build docker image with Dockerfile

Using the image file, you can create a container.

cd docker
docker build -t dlo-noetic:latest .

2. Make container

Using image file, you can make container.

docker run --privileged -it \
           --volume=${DLO_root}:/root/workspace/src \
           --volume=/tmp/.X11-unix:/tmp/.X11-unix:rw \
           --net=host \
           --ipc=host \
           --name=${docker container name} \
           --env="DISPLAY=$DISPLAY" \
           ${docker image} /bin/bash

You need to replace ${DLO_root}, ${docker container name}, and ${docker image} with your specific values. An example is provided below.

Example

docker run --privileged -it \
           --volume=/home/jin/Documents/direct_lidar_odometry:/root/workspace/src \
           --volume=/tmp/.X11-unix:/tmp/.X11-unix:rw \
           --net=host \
           --ipc=host \
           --name=dlo-noetic \
           --env="DISPLAY=$DISPLAY" \
           dlo-noetic:latest /bin/bash

Output

==============Direct Lidar Odometry Noetic Docker Env Ready================
root@jin-940XFG:~/workspace#

3. Build project

❗️ All processes are operated within the container terminal!

source /ros_entrypoint.sh
source /opt/ros/noetic/setup.bash
catkin init
catkin build

4. Execution

❗️ All processes are operated within the container terminal!

roslaunch direct_lidar_odometry dlo.launch \
  pointcloud_topic:=${lidar_topic} \
  imu_topic:=${imu_topic}

Services

You can save .pcd and trajectory files.

Save .pcd file

rosservice call /robot/dlo_map/save_pcd LEAF_SIZE SAVE_PATH

Save the trajectory in the KITTI format.

rosservice call /robot/dlo_odom/save_traj SAVE_PATH

Test Data

For your convenience, we provide sample test data here (9 minutes, ~4.2GB).

roslaunch direct_lidar_odometry dlo.launch
rosbag play dlo_test.bag

Result

Video

Video Label

Top view Side view
Alt text Alt text

Alt text

Acknowledge

We thank the authors of the direct lidar odometry open-source packages.

Maintainer

About

Docker version of Direct LiDAR Odometry

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.9%
  • CMake 1.7%
  • Other 0.4%