Giter Site home page Giter Site logo

ehonnef / roba Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 163 KB

Project for robotics course featuring Asus-xtion node, arduino with SRF08 sonar and MinImu-9 sensors nodes.

Python 11.80% CMake 37.92% C++ 50.28%
ros-melodic ros image-processing arduino arduino-ros asus-xtion asus-xtion-pro-live openni2 openni2-ros srf08

roba's Introduction

ROBa

Project for the robotics course. This project aims to implement base nodes (listeners/publishers) for arduino mega sensors (SRF08 sonars and MinIMU-9) and the Asus xtionPro live camera. The nodes will run on Odroid XU4 with Ubuntu 18.04 and ROS melodic.
There are standalone libraries for the SRF08 sonar and MinIMU-9 sensors (LSM6 and LIS3MDL). You just need to download and include in your main file.

Image processing

Using Asus xtionPRO live for the RGB image and depth image.
If you are running on windows remove the path from openni2.initialize("/usr/lib/") ---> openni2.initialize().

Libraries needed

To run the code you need to install de requirements.txt file using pip install -r requirements.txt.
Of course you need to install an external library openni2 that you can find here.
Let me know if I missed some requirements.

Arduino schematics

circuit P.S: IC = MinIMU-9.

ROS

Ok. This one will be tricky:

  • First make sure to install the ROS-melodic-desktop (version that I'm using on Ubuntu 18.04), you can find a tutorial here.
  • Install the python3 libraries from the previous topic.
    • Try to run one of the examples from ./image_processing, if you run you're good to go on the python side (I hope).
  • Install the openni2_launch package.
  • Install the Arduino IDE and necessary libraries, tutorial.
  • Make both python node executable with chmod +x node.py, usually they are located in workspace/src/SOME_PACKAGE/scripts.
  • It'll be nice to have tmux, screen or something similar.

Now to start the workspace navigate to ./ros_workspace and run catkin_make and then source devel/setup.bash.

Upload the Arduino code catkin_make arduino_sensors_firmware_arduino_sensors-upload.

Start the ROS-nodes:

  • Start roscore.
  • Camera topics roslaunch openni2_launch openni2.launch.
  • Arduino node rosrun rosserial_python serial_node.py /dev/ttyACM0.
  • Camera nodes rosrun camera_rgb_img node.py and rosrun camera_rgb_img node.py.

roba's People

Contributors

ehonnef avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

renzhidong1994

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.