Coder Social home page Coder Social logo

melekwalha1 / mobile-robot-ros-cv Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 261 KB

Implementation of an autonomous mobile robot with ROS Noetic, incorporating computer vision to explore robotics and visual perception.

License: MIT License

CMake 80.66% Python 19.34%

mobile-robot-ros-cv's Introduction

mobile-robot-ros-cv

This project consist of creating xacro and Gazebo files within the URDF folder of a mobile robot. The objective is to define its mechanical characteristics and position of each component of this Robot, including the chassis, the 4 wheels, and the camera. Additionally, a Python script will be written to define a node for autonomously controlling the robot's movement from point A to point B (in this example I write a python pipeline named "main2.py" in src forlder to put the robot moving from point (0,0) to point (5,5) the return to (0,0).

Darknet Ros example: Detection image

define the robot

tester la camera

  roslaunch usb_cam usb_cam-test.launch

then

Use this command to Open the project in gazebo

  roslaunch robot_model_pkg robot_xacro.launch  

use this command to make the robot moving from A to B autonomously

  rosrun robot_model_pkg main2.py  

Use this command to make the robot moving using keyboard

  rosrun teleop_twist_keyboard teleop_twist_keyboard.py

this is the end of the first section which is moving the robot autonomosly the second part consist of adding the Computer Vision part we will use the camera of the mobile robot to detect things.

adding the computer vision part

The camera topic

  rostopic list 

Darknet Ros example: Detection image as you see here the topic is .../image_raw if you want to test it do ...

Test the camera of the mobile robot

  rosrun image_view image_view image:=/robot/camera1/image_raw

Now, edit in darknet the adress of the camera

Now install the "darknet_ros" package from this git "https://github.com/pushkalkatara/darknet_ros.git" and make it inside src of your project. and you should make some modification so enter to the package "darknet_ros" then enter to the folder "darknet_ros" you will find the file "ros.yaml" inside the folder "config" and change the topic of your camera.

Now, let's run the Computer Vision part by executing this command

  roslaunch darknet_ros darknet_ros.launch

mobile-robot-ros-cv's People

Contributors

melekwalha1 avatar

Stargazers

Mohamed KHLIFI avatar chawki hjaiji avatar

Watchers

 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.