Giter VIP home page Giter VIP logo

regilo's People

Contributors

branoholy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

geordi

regilo's Issues

Disallow more instructions at one line

More instructions at one line are not correctly shown in the coverage results.

The line below is marked as tested even if the method is never called.

if(obj != nullptr) obj->method();

A split to more lines should correct it.

if(obj != nullptr)
    obj->method();

It is necessary to

  • change the beautifier settings,
  • reformat the source code,
  • check new coverage results.

Create unit tests

Test everything to get 100% coverage.

  • ScanRecord & ScanData
  • Log & TimedLog
  • SerialController
  • SocketController
  • HokuyoController
  • NeatoController

Incorrect CMake Options

CMake option() should be used only for bool variables. Use set instead

set(<variable> <value> [[CACHE <type> <docstring> [FORCE]] | PARENT_SCOPE])

Change the arguments used for reading from a log

Two changes are necessary

  • The argument -c should take the device:protocol format where protocol could be log. Then, the -e argument could also point to a log path. The argument -l would be used only for the output log.
  • The argument -l is missing in the regilo-scan example.

Improve the Log class

  • Add a separate class for the metadata

  • Improve backward compatibility of the log classes

  • Read metadata and determinate the version/class in runtime

  • Other improvements

  • Use the following format

    # comment
    type <string>
    version <int>
    [additional metadata]
    
    <name:char/string> [<length:int> ]<value:any>
    <name:char/string> [<length:int> ]<value:any>
    
    <name:char/string> [<length:int> ]<value:any>
    <name:char/string> [<length:int> ]<value:any>
    ...
    

    Example for regilo::Log

    # Log
    type log
    version 2
    
    c 11 testmode on
    r 0
    
    c 7 gettime
    r 12 Sunday 16:45
    

    Example for regilo::TimedLog

    # TimedLog
    # Backward compatible with class log
    type timedlog
    version 2
    timeres 1 1000
    
    c 11 testmode on
    r 0
    t 1718373
    
    c 7 gettime
    r 12 Sunday 16:45
    t 18373748
    

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.