Code Monkey home page Code Monkey logo

stanfordpupper-offlinesetup's Introduction

StanfordPupper-OfflineSetup

包含Stanford Pupper机器狗项目离线安装所需的程序,解决国外源超时报错的问题

在根据Pupper项目官方文档安装树莓派上所需的程序的时候有可能会发生意外的问题,主要原因有二:

第一个问题是树莓派的网络连接问题。经过尝试,树莓派的有线网卡eth0的IP地址必须按照Stanford文档中所规定的设置为10.0.0.X网段,否则会导致PS4手柄无法遥控机器狗(具体原因待查明)。

由于有线网被限制为只能在内网与PC端进行ssh通信,所以与Internet的连接只能通过WiFi进行。有关WiFi的设置需要修改 RPI-Setup/applience/etc/wpa_supplicant/wpa_supplicant.conf文件以设置要连接的WiFi名和密码。

第二个问题是,由于在国内的原因,通过树莓派直接下载GitHub上的源代码以及安装python库会经常会超时报错,所以无法直接使用GitHub上的源码进行安装。

更换国内的软件镜像源可以解决树莓派安装软件的问题,但因为piwheel并没有国内镜像源,所以安装python第三方库仍然会报错。

解决方案是在PC端下载所需的所有GitHub代码,以及python所需的第三方库的whl文件,然后复制到树莓派中进行本地安装。

我将更换镜像源、安装whl文件等一系列前置操作写成bash脚本,在正式安装Stanford提供的代码之前,执行sudo bash pre-installl.sh命令即可完成上述一系列操作。

所以给出的适合我们的软件安装方法如下:

  1. 使用Win32DiskImager等软件将系统镜像文件2019-09-26-raspbian-buster-lite.img(官方推荐的版本)烧写进TF卡中。
  2. 复制RPI-Setup文件夹中的所有文件及文件夹到TF卡中,覆盖已存在的文件(如有需要记得修改WiFi配置文件)。
  3. 将TF卡插入树莓派,通电,正常启动树莓派。
  4. 通过网线将PC与树莓派相连,修改PC端网卡的IP地址为10.0.0.X网段中的任意一个地址(注意不要与树莓派初始的10.0.0.10冲突)
  5. 通过ssh工具与树莓派建立连接(地址为10.0.0.10,用户名为pi,密码为raspberry)。如使用powershell执行ssh [email protected]
  6. (以下命令均在树莓派中执行)执行sudo --set date将树莓派系统时间修改为当前时间,格式为月/日/年 小时:分钟
  7. 执行sudo bash pre-installl.sh进行更改镜像源及前置安装
  8. 执行sudo ./install_packages.sh根据提示修改IP地址及主机名(记住修改后的IP地址)
  9. 执行cd StanfordQuadrupedsudo bash install.sh。安装完成后断电重启树莓派。
  10. 执行sudo systemctl status joysticksudo systemctl status joystick查看服务运行状况,如无报错,则安装完成。

stanfordpupper-offlinesetup's People

Contributors

littleping-221 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.