Giter VIP home page Giter VIP logo

cyberdog_utils's Introduction

Cyberdog Utils

Remote access jetson nx

Method 1

  • Open phone wifi hotspot
  • Open app, connect to wifi hotspot

On pc, connect to phone wifi hotspot, then use nmap to scan the network

sudo nmap -sP 192.168.1.0/24

Install nmap with:

sudo apt install nmap

Once the ip detected, to remote access jetson nx:

ssh [email protected]

replace the ip adress with yours, password: 123

Method 2

  • open pc wifi hotspot
  • Open app, connect to pc wifi hotspot

Then the same steps from the method above.

Recommand this method

Recommanded tools

vscode + ssh extension

Generate wav file to replace the ugly one

  • Dependencies

pip install baidu-aip

cd scripts
python3 csv_2_wav.py

the wav files will be generated by data/wav folder

scp ../data/wav/* [email protected]:/opt/ros2/cyberdog/data/wav/

replace ip, reboot the robot.

Joystick control (testing)

A lot of the code is based on Karlsx's code

sudo pip3 install pygame grpcio grpcio-tools
python3 -m grpc_tools.protoc --python_out=. --grpc_python_out=. -I. ./proto/*.proto
cd scripts/
python3 joy.py

It should work with all available joyticks listed in /dev/input/js* .

Realsense depth image centroid follower

Not perfect for the moment but can be tested for fun:

  1. Create a ros2 workspace on cyberdog, clone this repo
  2. In launch/rs_follow.py modify the parameters (put your dog's mi number)
  3. Build this package, you might need to source ros2 environment first
  4. Bring up your cyberdog: connect it to your phone, (ideally use your phone's hotspot if you want to bring it outside) switch to outdoor mode, stand up and get down, this will "active" the dog, because on activation, it will disable realsense camera on outdoor mode.
  5. Enable realsense camera
ros2 service call /mi999999(put your dog number)/camera/enable std_srvs/SetBool "{data : True}"
  1. stand up again and the dog will follow the centroid point in front of the camera.

TODO

  • parameterize instead of changing values in launch file
  • add service call to enable realsense camera instead of command line
  • add service call to enable follower
  • add param to enable follower with a gait number
  • automate mi serial detection in launch file, ref athena_common getNamepace()
  • add script to launch at system start

cyberdog_utils's People

Contributors

linzhibo avatar

Stargazers

 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.