Skip to content
Snippets Groups Projects
Commit 209d5fe0 authored by Abhishek Kadian's avatar Abhishek Kadian
Browse files

update cv2 import to work with pyrobot

parent 9a64c826
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,13 @@
import os
import shutil
import cv2
# TODO(akadian): remove the below pyrobot hack
import sys
ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages'
if ros_path in sys.path:
sys.path.remove(ros_path)
import cv2
sys.path.append(ros_path)
import numpy as np
import habitat
......
......@@ -7,7 +7,13 @@
from typing import Any, List, Optional, Type
import attr
import cv2
# TODO(akadian): remove the below pyrobot hack
import sys
ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages'
if ros_path in sys.path:
sys.path.remove(ros_path)
import cv2
sys.path.append(ros_path)
import numpy as np
from gym import spaces
......
......@@ -7,7 +7,13 @@
import os
from typing import List, Optional, Tuple
import cv2
# TODO(akadian): remove the below pyrobot hack
import sys
ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages'
if ros_path in sys.path:
sys.path.remove(ros_path)
import cv2
sys.path.append(ros_path)
import imageio
import numpy as np
import scipy.ndimage
......
......@@ -7,7 +7,13 @@
import os
from typing import Dict, List, Optional, Tuple
import cv2
# TODO(akadian): remove the below pyrobot hack
import sys
ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages'
if ros_path in sys.path:
sys.path.remove(ros_path)
import cv2
sys.path.append(ros_path)
import imageio
import numpy as np
import tqdm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment