본문 바로가기

분류 전체보기

(28)
E2VID 설치 및 사용 https://github.com/uzh-rpg/rpg_e2vid @Article{Rebecq19cvpr, author = {Henri Rebecq and Ren{\'{e}} Ranftl and Vladlen Koltun and Davide Scaramuzza}, title = {Events-to-Video: Bringing Modern Computer Vision to Event Cameras}, journal = {{IEEE} Conf. Comput. Vis. Pattern Recog. (CVPR)}, year = 2019 } Dependencies Pytorch ≥ 1.0 Numpy Pandas OpenCV Install with Anaconda conda create -n E2VID conda a..
HASTE 설치 https://github.com/ialzugaray/hasteDependencies 선행 ) GLOG 설치git clone https://github.com/google/glog.git cd glog # conda deactivate cmake -S . -B build -G "Unix Makefiles" cmake --build build # cmake --build build --target test 에러 해결법 → conda deactivate콘다를 설치하고 그냥 실행하면 에러가 생긴다. https://github.com/google/glog/issues/843정상설치 확인Install only stand-alone benchmarking app git clone https://github.com/..
앞으로 블로그는...? 보호되어 있는 글입니다.
프로젝트 개요 본 프로젝트는 2021년 2학기에 수강한 [기초제어실습] 강의 프로젝트를 진행하면서 기록한 노션 글을 정리한 것이다. 당시에 작성한 보고서를 올릴 수 있으면 좋으련만 아쉽다. Wall Following간단하게 벽을 바라보는 초음파 센서의 데이터와 PID 제어를 써서 벽을 도는 로봇을 구동하고, 보고서로 정리하는 과정이다. Line Tracer 바닥을 향해 보고있는 적외선 센서 하나의 데이터와 PID 제어를 사용해 최대한 빠르게 경로를 따라가는 로봇을 만드는 것이다. Uploaded by N2T
Line Tracer-코드 정리 제어 코드#!/usr/bin/env pybricks-micropython from pybricks.hubs import EV3Brick from pybricks.ev3devices import Motor,ColorSensor,InfraredSensor from pybricks.robotics import DriveBase from pybricks.parameters import Port, Stop, Direction, Button, Color from pybricks.tools import wait, StopWatch, DataLog # Initialize the motors. L_motor = Motor(Port.A) R_motor = Motor(Port.B) # Initialize the color ..
Line Tracer-센서 데이터 그래프 생성 받아온 거리값으로 그래프 만들기제목→ "pid_graph_dist:"y축 → reflectionx축 → 시간(sequence).직선_1직선_2곡선_1곡선_2 곡선_3 threshold (64/2.0)곡선_4 threshold 증가. (64/1.7) 곡선_5곡선2_1 그림 3은 시나리오 1, 즉 낮은 주기의 곡선에서 Threshold 변화에 따른 측정된 빛 반사 값이다. 옅은 빨강 실선은 Threshold가 32인 실험 결과이고, 짙은 빨강 실선은 Threshold가 37.6인 실험의 결과이다. 대체적으로 비슷한 모습을 보이고 있으나, 1100 시퀀스에서 1500시퀀스 부분에서 큰 차이가 있다. 플랫폼이 검은 선 위에 있는 시간이 감소했다. Threshold 값, 즉 임계 값이 높아져 Curve turn을..
wall follower-실험용 코드 실험코드! ver1.0#!/usr/bin/env pybricks-micropython import time # PID parameters Kp = 0.13 Ki = 0.000 Kd = 0.000 target = 150 error = 0.0 last_error = 0.0 acc_error = 0.0 dt = 0.004 vel = 180 # time current_time= time.time() start_time = current_time while True: dist = int(input()) # Filtering! if dist > 600: dist = 0 # PID calculation error = target - dist diff = error - last_error acc_error += err..
wall follower-코드 정리 제어 코드#!/usr/bin/env pybricks-micropython from pybricks.hubs import EV3Brick from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor, InfraredSensor, UltrasonicSensor, GyroSensor) from pybricks.parameters import Port, Stop, Direction, Button, Color from pybricks.tools import wait, StopWatch, DataLog from pybricks.robotics import DriveBase from pybricks.media.ev3dev import SoundFile, Imag..