This file contains hidden or 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 os | |
| from glob import glob | |
| from setuptools import find_packages, setup | |
| package_name = 'ur3e_on_table' | |
| setup( | |
| name=package_name, | |
| version='0.0.0', |
This file contains hidden or 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 rclpy | |
| from rclpy.node import Node | |
| from sensor_msgs.msg import JointState | |
| import numpy as np | |
| def linear_interpolate(p1, p2, a): | |
| return (1-a)*p1 + a*p2 | |
| class JointPublisherPickAndPlace(Node): |
This file contains hidden or 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
| Panels: | |
| - Class: rviz_common/Displays | |
| Help Height: 78 | |
| Name: Displays | |
| Property Tree Widget: | |
| Expanded: | |
| - /Global Options1 | |
| - /Status1 | |
| - /RobotModel1 | |
| - /RobotModel1/Links1 |
This file contains hidden or 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 numpy as np | |
| import skimage | |
| import skimage.io as io | |
| import matplotlib.pyplot as plt | |
| from pycocotools.coco import COCO | |
| import cv2 # pip install opencv-python | |
| # Input | |
| class_list = [ 'pizza' , 'cat' , 'bus'] |
This file contains hidden or 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
| pdfcode = """ | |
| # Input | |
| input_json = ’ i n s t a n c e s _ t r a i n 2 0 1 4 . json ’ | |
| 3 class_list = [ ’ pizza ’ , ’ cat ’ , ’ bus ’] | |
| 1 | |
| 2 | |
| 4 | |
| # ########################## | |
| # Mapping from COCO label to Class indices | |
| 7 coco_labels_inverse = {} |