-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8137d71
commit 14a486a
Showing
11 changed files
with
282 additions
and
143 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from wild_visual_navigation.cfg import RosLearningNodeParams | ||
from omegaconf import OmegaConf | ||
from omegaconf import read_write | ||
|
||
|
||
def test_configuration(): | ||
cfg = OmegaConf.structured(RosLearningNodeParams) | ||
print(cfg) | ||
with read_write(cfg): | ||
cfg.image_callback_rate = 1.0 | ||
|
||
print(cfg.image_callback_rate) | ||
|
||
|
||
if __name__ == "__main__": | ||
test_configuration() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .experiment_params import ExperimentParams | ||
from .ros_params import RosLearningNodeParams, RosFeatureExtractorNodeParams |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
from dataclasses import dataclass | ||
from typing import Dict | ||
from typing import Any | ||
|
||
|
||
@dataclass | ||
class RosLearningNodeParams: | ||
# TODO remove all unnecessary topics here | ||
# Input topics | ||
robot_state_topic: str | ||
desired_twist_topic: str | ||
# desired_twist_topic: "/log/state/desiredRobotTwist" | ||
|
||
# Relevant frames | ||
fixed_frame: str | ||
base_frame: str | ||
footprint_frame: str | ||
|
||
# Robot size | ||
robot_length: float | ||
robot_width: float | ||
robot_height: float | ||
|
||
# Robot specs | ||
robot_max_velocity: float | ||
|
||
# Traversability estimation params | ||
traversability_radius: float # meters | ||
image_graph_dist_thr: float # meters | ||
proprio_graph_dist_thr: float # meters | ||
network_input_image_height: int # 448 | ||
network_input_image_width: int # 448 | ||
segmentation_type: str | ||
feature_type: str | ||
dino_patch_size: int # 8 or 16; 8 is finer | ||
slic_num_components: int | ||
dino_dim: int # 90 or 384; 384 is better | ||
confidence_std_factor: float | ||
scale_traversability: bool # This parameter needs to be false when using the anomaly detection model | ||
scale_traversability_max_fpr: float | ||
min_samples_for_training: int | ||
prediction_per_pixel: bool | ||
traversability_threshold: float | ||
clip_to_binary: bool | ||
|
||
# Supervision Generator | ||
untraversable_thr: float | ||
|
||
mission_name: str | ||
mission_timestamp: bool | ||
|
||
# Threads | ||
image_callback_rate: float # hertz | ||
proprio_callback_rate: float # hertz | ||
learning_thread_rate: float # hertz | ||
logging_thread_rate: float # hertz | ||
status_thread_rate: float # hertz | ||
|
||
# Runtime options | ||
device: str | ||
mode: str # check out comments in the class WVNMode | ||
colormap: str | ||
|
||
print_image_callback_time: bool | ||
print_proprio_callback_time: bool | ||
log_time: bool | ||
log_confidence: bool | ||
verbose: bool | ||
debug_supervision_node_index_from_last: int | ||
use_debug_for_desired: bool | ||
|
||
extraction_store_folder: str | ||
exp: str | ||
use_binary_only: bool | ||
|
||
|
||
@dataclass | ||
class RosFeatureExtractorNodeParams: | ||
# Input topics | ||
robot_state_topic: str | ||
desired_twist_topic: str | ||
# desired_twist_topic: "/log/state/desiredRobotTwist" | ||
|
||
# Relevant frames | ||
fixed_frame: str | ||
base_frame: str | ||
footprint_frame: str | ||
|
||
# Robot size | ||
robot_length: float | ||
robot_width: float | ||
robot_height: float | ||
|
||
# Robot specs | ||
robot_max_velocity: float | ||
|
||
# Traversability estimation params | ||
traversability_radius: float # meters | ||
image_graph_dist_thr: float # meters | ||
proprio_graph_dist_thr: float # meters | ||
network_input_image_height: int # 448 | ||
network_input_image_width: int # 448 | ||
segmentation_type: str | ||
feature_type: str | ||
dino_patch_size: int # 8 or 16; 8 is finer | ||
slic_num_components: int | ||
dino_dim: int # 90 or 384; 384 is better | ||
confidence_std_factor: float | ||
scale_traversability: bool # This parameter needs to be false when using the anomaly detection model | ||
scale_traversability_max_fpr: float | ||
min_samples_for_training: int | ||
prediction_per_pixel: bool | ||
traversability_threshold: float | ||
clip_to_binary: bool | ||
|
||
# Supervision Generator | ||
untraversable_thr: float | ||
|
||
mission_name: str | ||
mission_timestamp: bool | ||
|
||
# Threads | ||
image_callback_rate: float # hertz | ||
proprio_callback_rate: float # hertz | ||
learning_thread_rate: float # hertz | ||
logging_thread_rate: float # hertz | ||
status_thread_rate: float # hertz | ||
|
||
# Runtime options | ||
device: str | ||
mode: str # check out comments in the class WVNMode | ||
colormap: str | ||
|
||
print_image_callback_time: bool | ||
print_proprio_callback_time: bool | ||
log_time: bool | ||
log_confidence: bool | ||
verbose: bool | ||
debug_supervision_node_index_from_last: int | ||
use_debug_for_desired: bool | ||
|
||
extraction_store_folder: str | ||
exp: str | ||
use_binary_only: bool | ||
camera_topics: Dict[str, Any] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
wild_visual_navigation_ros/config/wild_visual_navigation/default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.