Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
cmake_minimum_required(VERSION 3.0.2)
project(physics_atv_visual_mapping)

## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
nav_msgs
rospy
sensor_msgs
grid_map_msgs
std_msgs
message_generation
)

catkin_python_setup()


## Generate added messages and services with any dependencies listed here
# generate_messages(
# DEPENDENCIES
# std_msgs
# grid_map_msgs
# geometry_msgs
# nav_msgs
# # geometry_msgs# nav_msgs# sensor_msgs# std_msgs
# )

###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if your package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES physics_atv_visual_mapping
CATKIN_DEPENDS geometry_msgs nav_msgs rospy sensor_msgs grid_map_msgs std_msgs message_runtime
# DEPENDS system_lib
)

###########
## Build ##
###########

## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
# include
${catkin_INCLUDE_DIRS}
)

#############
## Install ##
#############

# all install targets should use catkin DESTINATION variables
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html

## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
catkin_install_python(PROGRAMS
scripts/ros/voxel_localmapping.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

## Mark other files for installation (e.g. launch and bag files, etc.)
install(FILES
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

# install(DIRECTORY models/
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/models)
139 changes: 0 additions & 139 deletions config/ros/matthew_warthog.yaml

This file was deleted.

54 changes: 30 additions & 24 deletions config/ros/rzr_voxel_mapping.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
models_dir: /home/tartandriver/tartandriver_ws/models #necessary to include this for non-ROS offline proc
models_dir: /models #necessary to include this for non-ROS offline proc

images:
image_left:
image_topic: /multisense/left/image_rect_color
camera_info_topic: /multisense/left/camera_info
image_topic: /crl_rzr/multisense_left/aux/image_rect_color
camera_info_topic: /crl_rzr/multisense_left/aux/camera_info
image_compressed: False
folder: image_left_color
folder: image_left
mask: /catkin_ws/src/vfm_voxel_mapping/visual_mapping_noetic/data/masks/rzr/left.png

#camera intrinsics
intrinsics:
Expand All @@ -18,10 +19,11 @@ images:
q: [0.805, -0.212, 0.150, 0.534] #xyzw

image_front:
image_topic: /multisense/left/image_rect_color
camera_info_topic: /multisense/left/camera_info
image_topic: /crl_rzr/multisense_front/aux/image_rect_color
camera_info_topic: /crl_rzr/multisense_front/aux/camera_info
image_compressed: False
folder: image_front_color
folder: image_front
mask: /catkin_ws/src/vfm_voxel_mapping/visual_mapping_noetic/data/masks/rzr/front.png

#camera intrinsics
intrinsics:
Expand All @@ -34,10 +36,11 @@ images:
q: [0.597, -0.593, 0.384, 0.380] #xyzw

image_right:
image_topic: /multisense/left/image_rect_color
camera_info_topic: /multisense/left/camera_info
image_topic: /crl_rzr/multisense_right/aux/image_rect_color
camera_info_topic: /crl_rzr/multisense_right/aux/camera_info
image_compressed: False
folder: image_right_color
folder: image_right
mask: /catkin_ws/src/vfm_voxel_mapping/visual_mapping_noetic/data/masks/rzr/right.png

#camera intrinsics
intrinsics:
Expand All @@ -50,33 +53,35 @@ images:
q: [-0.217, 0.812, -0.523, -0.144] #xyzw

pointcloud:
topic: /superodometry/velodyne_cloud_registered
folder: merged_points_base

odometry:
topic: /superodometry/integrated_to_init
folder: odom
topic: /crl_rzr/velodyne_merged_points
folder: pointcloud_in_vehicle

#the base link of the vehicle (e.g. base_link, vehicle, etc.)
vehicle_frame: crl_rzr/base_link

#the fixed frame to map in
mapping_frame: crl_rzr/map

image_processing:
-
type: dino
args:
dino_type: dinov2_vitb14_reg
dino_layers: [10]
image_insize: [854, 448]
# dino_type: dinov2_vitb14_reg
# dino_layers: [10]
# image_insize: [560, 448]

dino_type: radio_v2.5-b
dino_layers: [11]
image_insize: [640, 512]

# stride: 4
desc_facet: value

-
type: pca
args:
# fp: physics_atv_visual_mapping/pca/radio_v2.5-b_64_renegade_ridge.pt
# fp: physics_atv_visual_mapping/pca/radio_v2.5b_64_gascola_20250124.pt
fp: physics_atv_visual_mapping/pca/vitb_reg_64_gascola_veg.pt
# fp: physics_atv_visual_mapping/pca/dino_vitl_multi_64_gascola_veg.pt
# fp: physics_atv_visual_mapping/pca/vitb_reg_64_gascola_veg.pt
fp: physics_atv_visual_mapping/pca/radio_64_trabuco_racer.pt

# voxel
localmapping:
Expand All @@ -90,7 +95,7 @@ localmapping:
# resolution: [0.8, 0.8, 0.8]
origin: [-50., -50., -10.]
length: [100., 100., 20.]
resolution: [0.25, 0.25, 0.25]
resolution: [0.2, 0.2, 0.1]
# origin: [-30., -30., -15.]
# length: [60., 60., 30.]
# resolution: [0.2, 0.2, 0.2]
Expand Down Expand Up @@ -197,5 +202,6 @@ terrain_estimation:
terrain_mask_layer: min_elevation_filtered_inflated_mask
overhang: 2.0

rate: 0.2
device: cuda
viz: True
Loading