Skip to content

Commit

Permalink
Add BDAII copyright statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuguangw committed Oct 16, 2023
1 parent 0e82142 commit 1ba47bd
Show file tree
Hide file tree
Showing 62 changed files with 124 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

name: Pre-Commit

on:
Expand Down
2 changes: 2 additions & 0 deletions config/experiments/reality.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

# @package _global_
defaults:
- /policy: zsos_config_base
Expand Down
2 changes: 2 additions & 0 deletions config/experiments/ver_pointnav.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

# @package _global_

defaults:
Expand Down
2 changes: 2 additions & 0 deletions config/experiments/vlfm_objectnav_hm3d.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

# @package _global_

defaults:
Expand Down
2 changes: 2 additions & 0 deletions config/tasks/pointnav_depth_hm3d.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

# @package _global_

defaults:
Expand Down
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 2 additions & 0 deletions scripts/parse_jsons.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import argparse
import json
import os
Expand Down
2 changes: 2 additions & 0 deletions test/test_setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os

from habitat_baselines.common.baseline_registry import baseline_registry # noqa
Expand Down
2 changes: 2 additions & 0 deletions test/test_visualization.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os

import cv2
Expand Down
2 changes: 2 additions & 0 deletions vlfm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

2 changes: 2 additions & 0 deletions vlfm/mapping/base_map.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, List

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/mapping/frontier_map.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import List, Tuple

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/mapping/object_point_cloud_map.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Dict, Union

import cv2
Expand Down
2 changes: 2 additions & 0 deletions vlfm/mapping/obstacle_map.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import cv2
import numpy as np
from frontier_exploration.frontier_detection import detect_frontier_waypoints
Expand Down
2 changes: 2 additions & 0 deletions vlfm/mapping/traj_visualizer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, List, Union

import cv2
Expand Down
2 changes: 2 additions & 0 deletions vlfm/mapping/value_map.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import glob
import json
import os
Expand Down
2 changes: 2 additions & 0 deletions vlfm/measurements/traveled_stairs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from dataclasses import dataclass
from typing import Any, List

Expand Down
2 changes: 2 additions & 0 deletions vlfm/obs_transformers/resize.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import copy
from dataclasses import dataclass
from typing import Dict, Tuple
Expand Down
2 changes: 2 additions & 0 deletions vlfm/obs_transformers/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Tuple

import torch
Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

2 changes: 2 additions & 0 deletions vlfm/policy/action_replay_policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os
from typing import Any, List

Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/base_objectnav_policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os
from dataclasses import dataclass, fields
from typing import Any, Dict, List, Tuple, Union
Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/base_policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, Generator

import torch
Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/habitat_policies.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from dataclasses import dataclass
from typing import Any, Dict, Union

Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/itm_policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os
from typing import Any, Dict, List, Tuple, Union

Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/reality_policies.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from dataclasses import dataclass
from typing import Any, Dict, List, Tuple, Union

Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

2 changes: 2 additions & 0 deletions vlfm/policy/utils/acyclic_enforcer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, Set

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/utils/non_habitat_policy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

2 changes: 2 additions & 0 deletions vlfm/policy/utils/non_habitat_policy/nh_pointnav_policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Dict, Optional, Tuple

import torch
Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/utils/non_habitat_policy/resnet.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.


# Adapted from:
# https://github.com/facebookresearch/habitat-lab/blob/main/habitat-baselines/habitat_baselines/rl/ddppo/policy/resnet.py
Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/utils/non_habitat_policy/rnn_state_encoder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.


# Adapted from:
# https://github.com/facebookresearch/habitat-lab/blob/main/habitat-baselines/habitat_baselines/rl/models/rnn_state_encoder.py
Expand Down
2 changes: 2 additions & 0 deletions vlfm/policy/utils/pointnav_policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, Dict, Tuple, Union

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/reality/bdsw_nav_env.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import numpy as np
import torch
from spot_wrapper.spot import Spot
Expand Down
2 changes: 2 additions & 0 deletions vlfm/reality/objectnav_env.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os
import time
from datetime import datetime
Expand Down
2 changes: 2 additions & 0 deletions vlfm/reality/pointnav_env.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import time
from typing import Any, Dict, Optional, Tuple, Union

Expand Down
2 changes: 2 additions & 0 deletions vlfm/reality/robots/base_robot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Dict, List, Tuple

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/reality/robots/bdsw_robot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, Dict, List, Tuple

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/reality/robots/camera_ids.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

class SpotCamIds:
r"""Enumeration of types of cameras."""

Expand Down
2 changes: 2 additions & 0 deletions vlfm/reality/run_bdsw_objnav_env.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import time

import hydra
Expand Down
2 changes: 2 additions & 0 deletions vlfm/run.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os

# The following imports require habitat to be installed, and despite not being used by
Expand Down
2 changes: 2 additions & 0 deletions vlfm/semexp_env/eval.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os
import time
from typing import Any, Dict, List, Tuple
Expand Down
2 changes: 2 additions & 0 deletions vlfm/semexp_env/objnav_gibson_zsos.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

ENVIRONMENT:
MAX_EPISODE_STEPS: 500
SIMULATOR:
Expand Down
2 changes: 2 additions & 0 deletions vlfm/semexp_env/semexp_policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, Dict, Tuple, Union

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/utils/episode_stats_logger.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os
from typing import Any, Dict

Expand Down
2 changes: 2 additions & 0 deletions vlfm/utils/generate_dummy_policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import torch

from vlfm.run import get_config
Expand Down
2 changes: 2 additions & 0 deletions vlfm/utils/geometry_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import math
from typing import Tuple, Union

Expand Down
2 changes: 2 additions & 0 deletions vlfm/utils/habitat_visualizer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, Dict, List, Tuple

import cv2
Expand Down
2 changes: 2 additions & 0 deletions vlfm/utils/img_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import List, Tuple, Union

import cv2
Expand Down
2 changes: 2 additions & 0 deletions vlfm/utils/log_saver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import json
import os
import time
Expand Down
2 changes: 2 additions & 0 deletions vlfm/utils/visualization.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import List

import cv2
Expand Down
2 changes: 2 additions & 0 deletions vlfm/utils/vlfm_trainer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os
from collections import defaultdict
from typing import Any, Dict, List
Expand Down
2 changes: 2 additions & 0 deletions vlfm/vlm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

2 changes: 2 additions & 0 deletions vlfm/vlm/blip2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, Optional

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/vlm/blip2itm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Any, Optional

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/vlm/coco_classes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

COCO_CLASSES = [
"person",
"bicycle",
Expand Down
2 changes: 2 additions & 0 deletions vlfm/vlm/detections.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import List, Optional, Tuple

import cv2
Expand Down
2 changes: 2 additions & 0 deletions vlfm/vlm/fiber.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import numpy as np
import torch
from maskrcnn_benchmark.config import cfg
Expand Down
2 changes: 2 additions & 0 deletions vlfm/vlm/grounding_dino.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

from typing import Optional

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions vlfm/vlm/sam.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import os
from typing import Any, List, Optional

Expand Down
2 changes: 2 additions & 0 deletions vlfm/vlm/server_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import base64
import os
import random
Expand Down
2 changes: 2 additions & 0 deletions vlfm/vlm/yolov7.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.

import sys
from typing import List, Optional

Expand Down

0 comments on commit 1ba47bd

Please sign in to comment.