Skip to content

Commit 65d6157

Browse files
MAC-VO Dense Mapping mode & adaptation (#247)
* Add macvo2 codebase * switch to macvo2 * Fix MACVO2 * Fix visualization * Minor fix * cleanup * working version * Add disparity publisher --------- Co-authored-by: haleqiu <[email protected]>
1 parent b06a4a8 commit 65d6157

File tree

8 files changed

+26
-7
lines changed

8 files changed

+26
-7
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This top-level .env file under AirStack/ defines variables that are propagated through docker-compose.yaml
22
PROJECT_NAME="airstack"
3-
PROJECT_VERSION="0.13.0"
3+
PROJECT_VERSION="0.13.1"
44
# can replace with your docker hub username
55
PROJECT_DOCKER_REGISTRY="airlab-storage.andrew.cmu.edu:5001/shared"
66
DEFAULT_ISAAC_SCENE="omniverse://airlab-storage.andrew.cmu.edu:8443/Projects/AirStack/AFCA/fire_academy_faro_with_sky.scene.usd"

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
[submodule "robot/ros_ws/src/autonomy/2_perception/macvo/macvo/src"]
1111
path = robot/ros_ws/src/autonomy/2_perception/macvo/macvo/src
1212
url = https://github.com/MAC-VO/MAC-VO.git
13+
[submodule "robot/ros_ws/src/autonomy/2_perception/macvo2"]
14+
path = robot/ros_ws/src/autonomy/2_perception/macvo2
15+
url = [email protected]:castacks/MAC-VO-ROS2.git

robot/docker/Dockerfile.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ RUN pip3 install \
115115
tabulate \
116116
einops \
117117
timm==0.9.12 \
118-
rerun-sdk==0.17 \
118+
rerun-sdk==0.22.0 \
119119
yacs \
120120
wandb
121121

robot/docker/robot.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# These become environment variables in the robot container
2-
USE_MACVO="false"
2+
USE_MACVO="true"

robot/ros_ws/src/autonomy/2_perception/macvo/config/rviz_macvo.rviz

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Visualization Manager:
5959
Name: Pose
6060
Shaft Length: 1
6161
Shaft Radius: 0.05000000074505806
62-
Shape: Arrow
62+
Shape: Axes
6363
Topic:
6464
Depth: 5
6565
Durability Policy: Volatile
Submodule macvo2 added at b76d3a7

robot/ros_ws/src/autonomy/2_perception/perception_bringup/launch/perception.launch.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!-- State Estimation -->
55
<!-- Visual Odometry -->
66

7-
<node pkg="macvo" exec="macvo" if="$(env USE_MACVO)">
7+
<!-- <node pkg="macvo" exec="macvo" if="$(env USE_MACVO)">
88
<param name="camera_config" value="$(find-pkg-share macvo)/config/model_config.yaml" />
99
<param from="$(find-pkg-share macvo)/config/interface_config.yaml" />
1010
<remap from="left/image_rect"
@@ -18,6 +18,22 @@
1818
<remap from="visual_odometry_points"
1919
to="/$(env ROBOT_NAME)/perception/visual_odometry_points" />
2020
<remap from="visual_odometry_img" to="/$(env ROBOT_NAME)/perception/visual_odometry_img" />
21+
</node> -->
22+
<node pkg="macvo2" exec="macvo2" if="$(env USE_MACVO)">
23+
<param name="camera_config" value="$(find-pkg-share macvo2)/config/model_config.yaml" />
24+
<param from="$(find-pkg-share macvo2)/config/interface_config.yaml" />
25+
<remap from="left/image_rect"
26+
to="/$(env ROBOT_NAME)/sensors/front_stereo/left/image_rect" />
27+
<remap from="right/image_rect"
28+
to="/$(env ROBOT_NAME)/sensors/front_stereo/right/image_rect" />
29+
<remap from="/sensors/get_camera_params"
30+
to="/$(env ROBOT_NAME)/sensors/get_camera_params" />
31+
<remap from="visual_odometry_pose"
32+
to="/$(env ROBOT_NAME)/perception/visual_odometry_pose" />
33+
<remap from="visual_odometry_points"
34+
to="/$(env ROBOT_NAME)/perception/visual_odometry_points" />
35+
<remap from="visual_odometry_img"
36+
to="/$(env ROBOT_NAME)/perception/visual_odometry_img" />
2137
</node>
2238

2339
<!-- Depth Estimation -->

robot/ros_ws/src/robot_bringup/rviz/robot.rviz

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,14 @@ Visualization Manager:
259259
Name: Visual Odometry
260260
Shaft Length: 1
261261
Shaft Radius: 0.05000000074505806
262-
Shape: Arrow
262+
Shape: Axes
263263
Topic:
264264
Depth: 5
265265
Durability Policy: Volatile
266266
Filter size: 10
267267
History Policy: Keep Last
268268
Reliability Policy: Reliable
269269
Value: /robot_1/perception/visual_odometry_pose
270-
Value: true
271270
Enabled: true
272271
Name: Perception
273272
- Class: rviz_common/Group

0 commit comments

Comments
 (0)