Giter VIP home page Giter VIP logo

color_sensor_compute_error's Introduction

color_sensor_compute_error

Compute the error between a targeted luminious intensity and the one measured.

Notice

It subscribes to the colorSensorValue of the color sensor node. These values are used to determine two things:

  • The color. If it corresponds to a known color (blue or orange), the color will be published as a String on the Color topic.
  • The luminious intensity. If the color measured is unknown, the average between the three measured values (R,G,B) will be computed to get the luminious inntensity. This value will be compared to the targeted value and the error will be send to the Error topic.

Subscribed Topics

  • /colorSensorValue ([std_msgs/Int16MultiArray]) Array of the values (R,G,B) measured by the color sensor.

Published Topics

  • /Color ([std_msgs/String]) Publishes the detected color if it is known.
  • /Error ([std_msgs/Float32]) Publishes the computed error.

How to build

cd ~/catkin_ws/src/
git clone https://github.com/Thermay-Robotics/color_sensor_compute_error.git
cd ~/catkin_ws
catkin_make

Run

Launch

roslaunch calcul_erreur calcul_erreur.launch

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.