Code Monkey home page Code Monkey logo

ign-math's Introduction

Ignition Math : Math classes and functions for robot applications

Maintainer: nate AT openrobotics DOT org

GitHub open issues GitHub open pull requests Discourse topics Hex.pm

Build Status
Test coverage codecov
Ubuntu Bionic Build Status
Homebrew Build Status
Windows Build Status

Ignition Math, a component of Ignition Robotics, provides general purpose math classes and functions designed for robotic applications.

Table of Contents

Features

Install

Usage

Documentation

Testing

Folder Structure

Code of Conduct

Contributing

Versioning

License

Features

Ignition Math provides a wide range of functionality, including:

  • Type-templated pose, matrix, vector, and quaternion classes.
  • Shape representations along with operators to compute volume, density, size and other properties.
  • Classes for material properties, mass, inertial, temperature, PID, kmeans, spherical coordinates, and filtering.
  • Optional Eigen component that converts between a few Eigen and Ignition Math types.

Install

See the installation tutorial.

Usage

Please refer to the examples directory.

Documentation

API and tutorials can be found at https://ignitionrobotics.org/libs/math.

You can also generate the documentation from a clone of this repository by following these steps.

  1. You will need Doxygen. On Ubuntu Doxygen can be installed using

    sudo apt-get install doxygen
    
  2. Clone the repository

    git clone https://github.com/ignitionrobotics/ign-math
    
  3. Configure and build the documentation.

    cd ign-math; mkdir build; cd build; cmake ../; make doc
    
  4. View the documentation by running the following command from the build directory.

    firefox doxygen/html/index.html
    

Testing

Follow these steps to run tests and static code analysis in your clone of this repository.

  1. Follow the source install instruction.

  2. Run tests.

    make test
    
  3. Static code checker.

    make codecheck
    

Ruby Tests

Usage

The C++ classes are available in Ruby code by interface files (.i) used by swig to build a C++ extension module.

The interfaces and Ruby test codes are in the src folder. To use a C++ class in Ruby you need to:

  1. Create an interface file describing the class as in Swig and Ruby reference at The Ruby-to-C/C++ Mapping

  2. Include the interface file in /src/ing_math.i

  3. Create the Ruby file and import the class as in Swig and Ruby reference at C++ Classes

Tests

make test already runs all tests, including the ones made in Ruby, but you can run a Ruby test individually using

ctest -R Ruby_TEST.rb

Folder Structure

Refer to the following table for information about important directories and files in this repository.

ign-math
├── examples                 Example programs.
├── include/ignition/math    Header files.
├── src                      Source files and unit tests.
│   └── graph                Source files for the graph classes.
├── eigen3                   Files for Eigen component.
├── test
│    ├── integration         Integration tests.
│    ├── performance         Performance tests.
│    └── regression          Regression tests.
├── tutorials                Tutorials, written in markdown.
├── Changelog.md             Changelog.
└── CMakeLists.txt           CMake build script.

Contributing

Please see CONTRIBUTING.md.

Code of Conduct

Please see CODE_OF_CONDUCT.md.

Versioning

This library uses Semantic Versioning. Additionally, this library is part of the Ignition Robotics project which periodically releases a versioned set of compatible and complimentary libraries. See the Ignition Robotics website for version and release information.

License

This library is licensed under Apache 2.0. See also the LICENSE file.

ign-math's People

Contributors

ahcorde avatar azeey avatar boladjivinny avatar caguero avatar catskul avatar ccrean avatar chapulina avatar dirk-thomas avatar gerkey avatar hidmic avatar iche033 avatar j-rivero avatar jasonzliang avatar luccosta avatar maryab-osr avatar mjcarroll avatar mxgrey avatar nkoenig avatar parrotepicuser avatar pchorak avatar peci1 avatar petermitrano avatar pxalcantara avatar richmattes avatar scpeters avatar slekieffre avatar sloretz avatar tobias-fischer avatar traversaro avatar ximenesfel 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.