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
# Python client example to get Lidar data from a car | |
# | |
import setup_path | |
import airsim | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
import sys | |
import math | |
import time |
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 airsim #pip install airsim | |
import cv2 | |
import numpy as np | |
# for car use CarClient() | |
client = airsim.CarClient() | |
def transform_input(responses): | |
img1d = np.fromstring(responses[0].image_data_uint8, dtype=np.uint8) | |
#img1d = 255 / np.maximum(np.ones(img1d.size), img1d) |
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 airsim #pip install airsim | |
import cv2 | |
import numpy as np | |
import time | |
# for car use CarClient() | |
client = airsim.CarClient() | |
car_controls = airsim.CarControls() | |
def transform_input(responses): | |
img1d = np.fromstring(responses[0].image_data_uint8, dtype=np.uint8) |
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 <DHT.h> | |
#include <DHT_U.h> | |
#include <MD_MAX72xx.h> | |
#include <MD_MAX72xx_lib.h> | |
#define DHTPIN 7 | |
#define DHTTYPE DHT11 | |
DHT dht(DHTPIN, DHTTYPE); |