pojiro / rpi4_mouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rpi4Mouse

mouse_and_gamepad

Document for ME!

git clone git@github.com:pojiro/rpi4_mouse.git
cd rpi4_mouse
export MIX_TARGET=rpi4_mouse
mix deps.get
export ROS_DISTRO=humble
mix rclex.prep.ros2 --arch arm64v8
# copy raspimouse_msg's include/lib/share directory to rootfs_overlay/opt/ros/humble
mix rclex.gen.msgs
mix prod.firmware
mix prod.upload

control from host PC with Logicool F310 Gamepad

your linux user is needed to be input group user (then, you may need to reboot host PC)

# debian/ubuntu/mint
sudo adduser $USER input

install https://github.com/rt-net/raspimouse_ros2_examples to HOST PC, then

ros2 launch raspimouse_ros2_examples teleop_joy.launch.py mouse:=true

use shiguredo/momo for camera

  1. download momo-2022.4.1_raspberry-pi-os_armv8.tar.gz from https://github.com/shiguredo/momo/releases/tag/2022.4.1
  2. untar it
  3. then copy the entire directory, momo-2022.4.1_raspberry-pi-os_armv8, to rootfs_overlay/opt/momo/.

Targets

Nerves applications produce images for hardware targets based on the MIX_TARGET environment variable. If MIX_TARGET is unset, mix builds an image that runs on the host (e.g., your laptop). This is useful for executing logic tests, running utilities, and debugging. Other targets are represented by a short name like rpi3 that maps to a Nerves system image for that platform. All of this logic is in the generated mix.exs and may be customized. For more information about targets see:

https://hexdocs.pm/nerves/targets.html#content

Getting Started

To start your Nerves app:

  • export MIX_TARGET=my_target or prefix every command with MIX_TARGET=my_target. For example, MIX_TARGET=rpi3
  • Install dependencies with mix deps.get
  • Create firmware with mix firmware
  • Burn to an SD card with mix burn

Learn more

About


Languages

Language:Elixir 95.8%Language:HTML 4.2%