Coder Social home page Coder Social logo

daddy_robot's Introduction

daddy_robot

Demo video

https://youtu.be/T0yaw4qGdxE

Run on raspberry pi

source /opt/ros/foxy/setup.bash
cd daddy_robot
. install/setup.bash
ros2 run daddy_robot daddy_robot_node

Launch on boot

crontab -e

Add a new entry in the file:

@reboot python3 /home/pi/daddy_robot/server.py

Make sure the file is executable:

sudo chmod a+x /home/pi/daddy_robot/server.py

raspiberry pi setup

sudo vim /boot/firmware/config.txt

add the following two lines:

start_x=1 # enable raspi camera
gpu_mem=512

https://www.raspberrypi.org/documentation/configuration/config-txt/memory.md

random commands i've used:

sudo apt-get update
sudo apt-get upgrade

python3 --version
sudo apt-get install python3-dev python3-rpi.gpio

sudo service uv4l_raspicam start
sudo service uv4l_raspicam restart
sudo service uv4l_raspicam stop

sudo apt install fswebcam
fswebcam image.jpg

sudo nano /etc/uv4l/uv4l-raspicam.conf
uv4l --config-file=/etc/uv4l/uv4l-uvc.conf 

cat /etc/uv4l/uv4l-uvc.conf 
uv4l --config-file=/etc/uv4l/uv4l-uvc.conf --device-path=/dev/video0
uv4l --sched-rr --mem-lock --driver raspicam --width 960 --height 540 --framerate 30 --encoding mjpeg --vflip --hflip
uv4l --sched-rr --mem-lock --driver uvc --device-id=038f:6001

sudo service uv4l_raspicam status
lsusb

sudo vim /etc/systemd/system/uv4l_raspicam.service
sudo vim /etc/uv4l/uv4l-raspicam.conf

sudo apt install python3-pip
pip3 install aiortc
sudo apt-get install libffi
sudo apt install libavdevice-dev libavfilter-dev libopus-dev libvpx-dev pkg-config
sudo apt-get install python-cffi
sudo apt-get install python3-dev
sudo apt-get install -y python3-cffi
sudo apt install libsrtp2-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqtgui4
sudo apt-get install python3-pyqt5
sudo apt-get install -y libilmbase-dev
sudo apt-get install -y libopenexr-dev
sudo apt-get install -y libgstreamer1.0-dev
sudo apt install libqt4-test

pip3 uninstall opencv-python
pip3 install opencv-python==3.4.6.27

Development

cd frontend
npx webpack --mode development
python3 -m http.server

ROS Resources

http://docs.donkeycar.com https://www.youtube.com/playlist?list=PLjDc7gDlIASSp38zxcD_KMhogQBt7Dz_r linuxconf ros talks

daddy_robot's People

Contributors

mattsroufe avatar

Watchers

James Cloos avatar  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.