Skip to content

JustinhoCHN/jetbot-remote-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jetbot-remote-control

(For Chinese speaker, just read the chinese part, for English speaker, read the part tagged with "EN", enjoy it~)

介绍 - Introduction

本项目为jetbot实现了网页遥控运动功能,网页会实时串流jetbot身上的摄像头,同时还可以用WSAD键控制jetbot的运动。

I've implemented a web service that can let you control the jetbot from a web page, the web page will stream the video that captured by jetbot on board camera in real time, and you can control its motion via keyboard.

依赖 - dependency

中文:

  1. 硬件:你必须至少拥有一个nvidia jetson nano开发板,加一个树莓派摄像头,以及一台x86电脑作服务器用。最好装有马达,不然就没法动了。
  2. 软件:python3.6、opencv 4.1.1、tornado 6.0.3

EN:

  1. Hardware: 1 x nvidia jetson nano + 1 x raspberrypi camera, and 1 x86 pc(for server). Better with motor, other wise you can't control the motion.
  2. Software: python3.6、opencv 4.1.1、tornado 6.0.3

启动 - How to start

中文:

  1. 在jetson nano上启动视频推送服务及遥控客户端:
python3 camera_app.py
python3 motion_app.py
  1. 在PC上启动网页服务:
python3 server.py  # 网页服务
python3 sendlog.py  # 日志流推送服务

EN:

  1. start the video streaming service and remote control client on Jetson nano.
python3 camera_app.py
python3 motion_app.py
  1. start the web server on Your PC.
python3 server.py  # 网页服务
python3 sendlog.py  # 日志流推送服务

Web界面 - Visualization

JOS界面

启动完毕后,在浏览器中输入http://localhost:5501就能看见这个界面了,按下键盘上的WASD可以控制你的机器人。注意右边的操作说明暂时用来装饰用的,那个输入框输入啥都不会有反应,作为TODO功能吧,关注我的B站主页,后续会陆续完善这些功能。

After all the servies are started, you can type http://localhost:5501 to see this web page, and you can use "WASD" buttons to control your jetbot. But the right down corner part is just for decoration for now, those function will be -probably- implemented in the future, just subscribe me

Some BUGs

中文

  1. 如果你关闭server.py,那么sendlog.py会立刻报错退出,因为它要不断地推送日志,如果服务已经被关闭,它就无法POST请求,便会报错退出。写个异常处理就行,但我有点懒。

  2. 目前这个web界面只能在一个标签页打开,因为视频串流貌似只能送到一个客户端。

  3. 如果你关闭这个页面,视频串流不会停止,必须手动关闭;如果你想刷新这个页面,必须关闭camera_app.py后重启这个程序,然后再刷新页面,不然会看不见视频。有兴趣的大佬帮忙解决下,本人前端的知识有点捉急……

EN:

Just Good Luck.

About

controling nvidia jetson nano / jetbot on web page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published