Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix #41

Merged
merged 5 commits into from
Nov 19, 2024
Merged
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
2 changes: 1 addition & 1 deletion omniverse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ The rendered viewpoints are collected by executing

```
cd IsaacLab
./isaaclab.sh -p <path-to-viplanner-repo>/omniverse/standalone/viplanner_demo.py --scene <matterport/carla/warehouse> --num_samples <how-many-viewpoints>
./isaaclab.sh -p <path-to-viplanner-repo>/omniverse/standalone/data_collect.py --scene <matterport/carla/warehouse> --num_samples <how-many-viewpoints>
```

To test that the data has been correctly extracted, please run the 3D reconstruction and see if the results fits to the simulated environment.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from __future__ import annotations

from nav_collectors.configs import MatterportSemanticCostMapping
from omni.viplanner.config import MatterportSemanticCostMapping
from omni.isaac.lab.utils import configclass


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import omni.isaac.lab.utils.math as math_utils
import torch
import torchvision.transforms as transforms
from omni.isaac.debug_draw import _debug_draw

from viplanner.config import TrainCfg

Expand Down Expand Up @@ -51,7 +50,12 @@ def __init__(self, model_dir: str, fear_threshold: float = 0.5, device: str = "c
self.traj_generate = TrajOpt()

# setup waypoint display in Isaac
self.draw = _debug_draw.acquire_debug_draw_interface()
# in headless mode, we cannot visualize the graph and omni.debug.draw is not available
try:
import omni.isaac.debug_draw._debug_draw as omni_debug_draw
self.draw = omni_debug_draw.acquire_debug_draw_interface()
except ImportError:
print("[WARNING] Graph Visualization is not available in headless mode.")
self.color_fear = [(1.0, 0.4, 0.1, 1.0)] # red
self.color_path = [(0.4, 1.0, 0.1, 1.0)] # green
self.size = [5.0]
Expand Down
Loading