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
import json | |
import os | |
from tqdm import tqdm | |
from xmltodict import unparse | |
# BBOX_OFFSET: Switch between 0-based and 1-based bbox. | |
# The COCO dataset is in 0-based format, while the VOC dataset is 1-based. | |
# To keep 0-based, set it to 0. To convert to 1-based, set it to 1. | |
BBOX_OFFSET = 0 |
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
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
import requests | |
import os | |
def download_all_papers(base_url, save_dir, driver_path): | |
driver = webdriver.Chrome(driver_path) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import rospy | |
from sensor_msgs.msg import PointCloud2 | |
import sensor_msgs.point_cloud2 as pc2 | |
class SubscribePointCloud(object): | |
def __init__(self): |
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
#include <boost/thread.hpp> | |
#include <ros/ros.h> | |
#include <tf/transform_broadcaster.h> | |
#include <tf/transform_listener.h> | |
#include <sensor_msgs/PointCloud2.h> | |
// PCL specific includes | |
#include <pcl_ros/point_cloud.h> | |
#include <pcl/ros/conversions.h> |