Coder Social home page Coder Social logo

ros2-slambot-using-raspberrypi's Introduction

Repository for Upcoming Course

  • robot_driving_src : Contain all source Codes to run on RPI
  • slamBot : Package Develop for ROS2 Rpi

Running Code

  • Interfacing Code for RPI

    • RpLidar ROS Package
    - sudo apt-get install ros-foxy-rplidar-ros
    
    • Install required PIGPIO Library
    pip install pigpio
    sudo apt-get install libpigpiod-if2-1
    
    • Build From Source ( a must )
    git clone https://github.com/joan2937/pigpio.git
    cd pigpio
    make
    sudo make install
    
    • Example of compiling a CPP file
    g++ -Wall -pthread -o test hello_blink.cpp -lpigpiod_if2
    
  • ROS Package

    • Creating a Workspace
    mkdir -p ~/ros2_ws/src
    
    • Cloning Repository into ~/ros2_ws/src
    cd ~/ && git clone  https://github.com/noshluk2/ROS2-SlamBot-using-RaspberryPI
    
    • Sourcing Workspace ( Only ONCE )
    echo "source ~/ros2_ws/install/setup.bash" >> ~/.bashrc
    

Requirments

  • Software and Dependencies

    • Ubuntu Server 20.04
    • Ros2 Foxy-base installation
    • Turtlesim Package
      sudo apt-get install ros-foxy-turtlesim
      
  • Hardware

    • Raspberry pi 4
    • Power Bank
    • 16gb Sdcard
    • L298D motor Driver
    • 12V DC magnetic Encoder Motors
    • 12V lipo battery
    • Srews ,pcb offsets and male to female/Male jupmer wires

Using This repository

Running a SSH control through terminal ( shell only )

  • Open terminal on your laptop
    • IP of raspberry pi -> get from any wifi conencted device info app
    • passwork is 'ubuntu'
ssh ubuntu@pi_IP
  • Lidar Scan generation -> fake transform
 ros2 run tf2_ros static_transform_publisher 0 0 0 0 0 0 "world" "laser"
  • Stopping Rplidar Scanning

ros2-slambot-using-raspberrypi's People

Contributors

noshluk2 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.