Skip to content

Commit c11e41b

Browse files
author
Shuo
committed
code clean up
1 parent 9c64e8a commit c11e41b

10 files changed

+21
-15
lines changed

.devcontainer/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main"
66
apt update
77

88
ENV CERES_VERSION="1.14.0"
9-
ENV CATKIN_WS=/root/vins_ws
9+
ENV CATKIN_WS=/root/vilo_ws
1010

1111
# set up thread number for building
1212
RUN if [ "x$(nproc)" = "x1" ] ; then export USE_PROC=1 ; \
@@ -85,7 +85,7 @@ RUN apt-get update && apt-get install gnupg2 -y
8585
# docker run -d \
8686
# --network host \
8787
# --cap-add=IPC_LOCK --cap-add=sys_nice \
88-
# -v ${PATH_TO_THIS_CODE}/tightly-coupled-visual-inertial-leg-odometry:/root/vins_ws/src/vilo \
88+
# -v ${PATH_TO_THIS_CODE}/tightly-coupled-visual-inertial-leg-odometry:/root/vilo_ws/src/vilo \
8989
# --device /dev/input \
9090
# --name vilo_container \
9191
# vilo_image

.devcontainer/devcontainer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"--device=/dev/bus", "--volume=/dev/serial:/dev/serial:ro",
1616
"--volume=${userHome}/.gitconfig:/etc/gitconfig",
1717
"--name=a1_vins_docker_vscode"],
18-
"workspaceMount": "source=${localWorkspaceFolder},target=/root/vins_ws/src/vilo,type=bind",
19-
"workspaceFolder": "/root/vins_ws/src/vilo"
18+
"workspaceMount": "source=${localWorkspaceFolder},target=/root/vilo_ws/src/vilo,type=bind",
19+
"workspaceFolder": "/root/vilo_ws/src/vilo"
2020
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2121
// "forwardPorts": [],
2222

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Here are two videos comparing the performance of the VILO and the VINS-Fusion:
1313
## Installation
1414
use Docker and VSCode ''Remote - Containers''. A dockerfile that configures an individual development environment is shown in .devcontainer/Dockerfile.
1515

16+
The state estimation result can be visualized using Rviz. If the user's computer already has ROS installed then open Rviz directly and load config file config/rviz/vilo_rviz_config.rviz.
17+
18+
If the user's computer does not have ROS installed, the user can use Rviz inside the docker. However in order to see the Rviz interface the computer must have graphic driver and xhost properly configured.
19+
1620

1721
## Dataset
1822
A Google drive folder https://drive.google.com/drive/folders/13GsFDaBkDrslOl9BfE4AJnOn3ECDXVnc
@@ -24,14 +28,16 @@ contains several dataset to test the VILO.
2428
2. indoor_with_ground_truth_1.bag. The robot moves forward and back quickly. Groundtruh data is
2529

2630
## Test On Dataset
27-
Since the Remote container
31+
Since we directly map the code into a location inside the docker (/root/vilo_ws). If we download dataset rosbag to
32+
${PATH_TO_CODE_REPO}/bags, the bag file will appear in the docker container as well (/root/vilo_ws/src/vilo/bags)
2833

2934
```
3035
roslaunch a1_launch hardware_a1_vilo_together.launch
3136
# wait for a few seconds
3237
rosbag play --clock -r 0.5 outdoor_snow.bag
3338
```
3439
Notice the rosbag play should be slow down for slow computers, otherwise the VILO cannot finish computation in time.
40+
3541
## Sensor Setup
3642
The VILO can only works properly when sensor topics are received correctly and all sensor transformations are set properly.
3743

config/a1_config/hardware_a1_vilo_config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ num_of_cam: 2
88
imu_topic: "/hardware_a1/imu"
99
image0_topic: "/camera_forward/infra1/image_rect_raw"
1010
image1_topic: "/camera_forward/infra2/image_rect_raw"
11-
output_path: "/root/vins_ws/src/vilo/bags/output"
11+
output_path: "/root/vilo_ws/src/vilo/bags/output"
1212

1313
cam0_calib: "a1_realsense_left.yaml"
1414
cam1_calib: "a1_realsense_right.yaml"
@@ -100,5 +100,5 @@ td: 0.00240 # initial value of time offset. unit: s.
100100

101101
#loop closure parameters
102102
load_previous_pose_graph: 0 # load and reuse previous pose graph; load from 'pose_graph_save_path'
103-
pose_graph_save_path: "/root/vins_ws/src/vilo/bags/output/pose_graph/" # save and load path
103+
pose_graph_save_path: "/root/vilo_ws/src/vilo/bags/output/pose_graph/" # save and load path
104104
save_image: 0 # save image in pose graph for visualization prupose; you can close this function by setting 0

config/a1_config/hardware_a1_vins_config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ num_of_cam: 2
88
imu_topic: "/hardware_a1/imu"
99
image0_topic: "/camera_forward/infra1/image_rect_raw"
1010
image1_topic: "/camera_forward/infra2/image_rect_raw"
11-
output_path: "/root/vins_ws/src/vilo/bags/output"
11+
output_path: "/root/vilo_ws/src/vilo/bags/output"
1212

1313
cam0_calib: "a1_realsense_left.yaml"
1414
cam1_calib: "a1_realsense_right.yaml"

config/go1_config/hardware_go1_vilo_config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ num_of_cam: 2
88
imu_topic: "/hardware_go1/imu"
99
image0_topic: "/camera_forward/infra1/image_rect_raw"
1010
image1_topic: "/camera_forward/infra2/image_rect_raw"
11-
output_path: "/root/vins_ws/src/vilo/bags/output"
11+
output_path: "/root/vilo_ws/src/vilo/bags/output"
1212

1313
cam0_calib: "go1_realsense_left.yaml"
1414
cam1_calib: "go1_realsense_right.yaml"
@@ -101,5 +101,5 @@ td: 0.00240 # initial value of time offset. unit: s.
101101

102102
#loop closure parameters
103103
load_previous_pose_graph: 0 # load and reuse previous pose graph; load from 'pose_graph_save_path'
104-
pose_graph_save_path: "/root/vins_ws/src/vilo/bags/output/pose_graph/" # save and load path
104+
pose_graph_save_path: "/root/vilo_ws/src/vilo/bags/output/pose_graph/" # save and load path
105105
save_image: 0 # save image in pose graph for visualization prupose; you can close this function by setting 0

config/go1_config/hardware_go1_vins_config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ num_of_cam: 2
88
imu_topic: "/hardware_go1/imu"
99
image0_topic: "/camera_forward/infra1/image_rect_raw"
1010
image1_topic: "/camera_forward/infra2/image_rect_raw"
11-
output_path: "/root/vins_ws/src/vilo/bags/output"
11+
output_path: "/root/vilo_ws/src/vilo/bags/output"
1212

1313
cam0_calib: "go1_realsense_left.yaml"
1414
cam1_calib: "go1_realsense_right.yaml"
@@ -68,5 +68,5 @@ td: 0.00240 # initial value of time offset. unit: s.
6868

6969
#loop closure parameters
7070
load_previous_pose_graph: 0 # load and reuse previous pose graph; load from 'pose_graph_save_path'
71-
pose_graph_save_path: "/root/vins_ws/src/vilo/bags/output/pose_graph/" # save and load path
71+
pose_graph_save_path: "/root/vilo_ws/src/vilo/bags/output/pose_graph/" # save and load path
7272
save_image: 0 # save image in pose graph for visualization prupose; you can close this function by setting 0

config/hardware_a1_vilo_config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ num_of_cam: 2
88
imu_topic: "/hardware_a1/imu"
99
image0_topic: "/camera_forward/infra1/image_rect_raw"
1010
image1_topic: "/camera_forward/infra2/image_rect_raw"
11-
output_path: "/root/vins_ws/src/vilo/bags/output"
11+
output_path: "/root/vilo_ws/src/vilo/bags/output"
1212

1313
cam0_calib: "left.yaml"
1414
cam1_calib: "right.yaml"
@@ -100,5 +100,5 @@ td: 0.00240 # initial value of time offset. unit: s.
100100

101101
#loop closure parameters
102102
load_previous_pose_graph: 0 # load and reuse previous pose graph; load from 'pose_graph_save_path'
103-
pose_graph_save_path: "/root/vins_ws/src/vilo/bags/output/pose_graph/" # save and load path
103+
pose_graph_save_path: "/root/vilo_ws/src/vilo/bags/output/pose_graph/" # save and load path
104104
save_image: 0 # save image in pose graph for visualization prupose; you can close this function by setting 0

config/hardware_a1_vins_config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ num_of_cam: 2
88
imu_topic: "/hardware_a1/imu"
99
image0_topic: "/camera_forward/infra1/image_rect_raw"
1010
image1_topic: "/camera_forward/infra2/image_rect_raw"
11-
output_path: "/root/vins_ws/src/vilo/bags/output"
11+
output_path: "/root/vilo_ws/src/vilo/bags/output"
1212

1313
cam0_calib: "left.yaml"
1414
cam1_calib: "right.yaml"

output/vilo_output_goes_here.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)