hit-haui / data-generator-nottrashcar Goto Github PK
View Code? Open in Web Editor NEWData generation tool for the real RC car in FPT Driverless Car Challenge 2019
Data generation tool for the real RC car in FPT Driverless Car Challenge 2019
Cần controller tự nhiên hơn. Giống với NFS hơn ạ =))
Load model train từ keras và điều khiển xe base trên code trong repo này.
Lưu ý sẽ có 2 loại model, có loại có speed, có loại không có speed. Nếu không có speed từ model thì tự phải set dựa trên angle nhé.
Hi. Hiện tại data generator đang thiếu Keylistener và synchronizer với frame trong video save lại từ simulator. Như team đã thảo luận, chúng ta sẽ làm key listener chạy trên 1 process riêng và song song với image recorder, sau đó sẽ tìm cách sync hai output lại với nhau.
Key Listener sẽ được base trên thư viện keyboard
, sử dụng chủ yếu là hàm record()
và object KeyEvent
. Object KeyEvent
sẽ có một số thuộc tính cần chú ý như time
, name
và event_type
.
Anh em tập trung xây cho xong tính năng này càng sớm càng tốt nhé.
And btw, hãy tạo nhánh (branch) riêng để làm, không bao giờ được phép commit hay push vào master
nhé
Như đã trao đổi với nhau, team mình quyết định sẽ dùng tay cầm để điều khiển để cho ra output mượt hơn. Duy phụ trách phần này nhé
Trong image_callback()
đang phải xử lý 2 ảnh được gửi từ simulator trong cùng 1 thời điểm là ảnh RGB và ảnh Depth.
def image_callback(rgb_data, depth_data):
temp = np.fromstring(rgb_data.data, np.uint8)
rgb_img = cv2.imdecode(temp, cv2.IMREAD_COLOR)
temp = np.fromstring(depth_data.data, np.uint8)
depth_img = cv2.imdecode(temp, cv2.IMREAD_COLOR)
...
Ở thời điểm hiện tại mới chỉ xử lý tuần tự RGB rồi đến Depth, làm vậy có thể khiến cho tốc độ nhận và lưu ảnh bị giảm xuống, có thể gây ra skip frame, sai frame, etc ..
Để giải quyết vấn đề này cần implement xử lý đa luồng, decode cả ảnh RGB và ảnh Depth trong cùng một thời điểm, có thể trên 2 core hoặc 2 thread khác nhau.
Chỉ cần save video frame với codec tốt hơn để giải quyết vấn đề.
It's gona be solved in no time ;)
Giờ chỉ cần đổi tên 1 số node cần subscribe, log thêm cảm biến tiệm cận làm phanh khẩn cấp là oke
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.