GithubHelp home page GithubHelp logo

quantumxt / ros-pibot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 4.0 6 KB

A simple 2 wheel robot powered by ROS, Arduino & Raspberry Pi 3.

C++ 100.00%
rpi3 arduino ros-noetic differential-drive-robot

ros-pibot's Introduction

ros-pibot

NOTE: This repository has been archived, please refer to the newer pibot repository here.

A simple 2 wheel differential drive robot powered by ROS, Arduino & Raspberry Pi 3.

Tested on Raspbian GNU/Linux 10 (buster), ROS Noetic Installation.

ROS Installation

ROS Noetic would be compiled from source!

Prerequistes

Add the Noetic repo list:

$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu buster main" > /etc/apt/sources.list.d/ros-noetic.list'

Add the ROS key:

$ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

Update & check whether the Debian package index is up-to-date:

$ sudo apt update
$ sudo apt upgrade

Prepare (and install) the dependencies:

$ sudo apt-get install -y python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential cmake

Initialise rosdep:

$ sudo rosdep init
$ rosdep update

Compilation

Create a catkin_ws to compile ROS source.

$ mkdir -p ~/ros_catkin_ws
$ cd ~/ros_catkin_ws

wstool would be used to fetch the core packages so we can build them. We would be using the ROS-Comm variant plus the navigation packages. (This does not come with GUI tools like rviz and rqt)

$ rosinstall_generator ros_comm  navigation --rosdistro noetic --deps --wet-only --tar > noetic-ros_comm-nav-wet.rosinstall
$ wstool init src noetic-ros_comm-nav-wet.rosinstall

After that, resolve all required dependencies.

$ cd ~/ros_catkin_ws
$ rosdep install -y --from-paths src --ignore-src --rosdistro noetic -r --os=debian:buster

Finally, we'll be building the workspace with catkin_make_isolated.

$ sudo src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/noetic -j2 -DPYTHON_EXECUTABLE=/usr/bin/python3

-j parameter specifies the number of processor(s) to be used, it works fine for -j2, but above that the system could get stuck while compiling as it runs out of memory.

References

ros-pibot's People

Stargazers

 avatar

Watchers

 avatar

ros-pibot's Issues

Is the corresponding ROS package open source?

Hello, I'm a master student from China working on mobile robot powered by ROS.

This project is a really good starting point for me. Thanks a lot for your help. But I failed to find the corresponding source code on ROS side, is it available on github?

Thanks again for your help.

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.