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
| from streamlit.web import cli as stcli | |
| import streamlit as st | |
| import rospy | |
| from std_msgs.msg import String, Int32 | |
| import sys | |
| import time | |
| mynum=0 | |
| mydelta=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
| """ | |
| Created on Mon Nov 13 16:12:42 2017 | |
| @author: merwan | |
| """ | |
| import numpy as np | |
| import cv2 | |
| import time | |
| import os | |
| import argparse |
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 cv2 | |
| import cv2.aruco as aruco | |
| # Select type of aruco marker (size) | |
| aruco_dict = aruco.Dictionary_get(aruco.DICT_5X5_1000) | |
| # Create an image from the marker | |
| # second param is the ID number | |
| # last param is the image size | |
| img = aruco.drawMarker(aruco_dict, 2, 700) |
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 rosbag, sys, csv | |
| import time | |
| import string | |
| import os #for file management make directory | |
| import shutil #for file management, copy file | |
| # verify correct input arguments: 1 or 2 | |
| if (len(sys.argv) > 2): | |
| print("invalid number of arguments: " + str(len(sys.argv))) | |
| print("should be 2: 'bag2csv.py' and 'bagName'") |
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
| """ | |
| Created on Mon Dec 11 14:02:33 2017 | |
| @author: merwan | |
| """ | |
| import os | |
| import argparse | |
| import cv2 | |
| import rosbag | |
| import sys |
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
| #!/usr/bin/env python3 | |
| import streamlit as st | |
| import rospy | |
| import time | |
| import threading | |
| from std_msgs.msg import String, Int32 | |
| from sensor_msgs.msg import Image | |
| from cv_bridge import CvBridge |
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
| #!/usr/bin/env python3 | |
| import rospy | |
| import cv2 | |
| from std_msgs.msg import String | |
| from sensor_msgs.msg import Image | |
| from cv_bridge import CvBridge | |
| bridge = CvBridge() |
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
| # !/bin/bash | |
| # Installation instructions from https://docs.docker.com/engine/install/ubuntu/ | |
| # Update the apt package index and install packages to allow apt to use a repository over HTTPS: | |
| sudo apt update | |
| sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
| # Add Docker’s official GPG key | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| # Use the following command to set up the stable repository | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| # INSTALL DOCKER ENGINE |
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
| # !/bin/bash | |
| # Installation instructions from https://docs.docker.com/engine/install/ubuntu/ | |
| # Update the apt package index and install packages to allow apt to use a repository over HTTPS: | |
| sudo apt update | |
| sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
| # Add Docker’s official GPG key | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| # Use the following command to set up the stable repository | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| # INSTALL DOCKER ENGINE |
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
| # NOTES: ROS Melodic -- Python3.7 | |
| # Solution is to build cv_bridge with python3. | |
| sudo apt-get install python-catkin-tools python3-dev python3-catkin-pkg-modules python3-numpy python3-yaml ros-melodic-cv-bridge | |
| # Create catkin workspace | |
| mkdir catkin_workspace | |
| cd catkin_workspace | |
| catkin init | |
| # Instruct catkin to set cmake variables |