Code Monkey home page Code Monkey logo

mr-fusion-capstone's People

Contributors

dstockhouse avatar hammane-carl avatar josephkroeker avatar joybear7 avatar pateld-git avatar rockwec1 avatar seanybaggins avatar tjhall1948 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mr-fusion-capstone's Issues

Graceful error handling throughout guidance software

Right now, there are many places in the guidance code that may encounter an error and panic. During debugging this is acceptable, but for operation of the robot we would prefer to detect errors and tell the UI and/or exit gracefully and restart rather than just crash.

This is a possibility whenever an option type uses .unwrap()

Mocking tcp sockets defined in the rust std library

Currently, our unit tests are mocking TCP connections, but some of these mocks are globally defined. This requries us to either

  1. Use syncronization mechanisms in our unit tests to make sure the mocks return codes are not subject to races

  2. Run our tests in one thread (which is currently what we are doing)

It would ideal if we could find a mocking library that does not require these mocks to be global or require explict condition compilation within our source code.

More test functionality coverage for path planning unit tests

More test cases than the one "obvious" pass and fail cases.
Some test cases I want at a minimum:

  • Not on graph if the point is on campus but outside the path (ex. library parking lot)
  • Not on graph if the point is within the graph boundary but not close enough to a path (ex. the middle of the quad)
  • Not on graph if the point is very close to any arbitrary segment, but not part of the segment itself (I want at least three of these on different segments of the path)
  • Closest edge found if the robot is within the threshold of two different edges, but closer to one of them (ex. a sharp intersection, but still clearly on one edge)
  • No path found for an unconnected graph (may have to create unconnected graph file like the triangle example)
  • Find a path between some pairs of adjacent vertices
  • Find a path between some mildly distant points towards the center of campus
  • Find a path between a few pairs of points on opposite sides of campus

When you get to passing the output of closest_edge_to to shortest_path:

  • All path cases above but mix starting right at vertex and starting in the middle of an edge, multiple "positive" cases to test for completeness here
  • Single-edge paths found from closest edge to each adjacent vertex (so 2 times running shortest_path_found from the same starting point in the middle of an edge)

No "magic number" return codes

Each error or success return code needs to have a defined constant explaining what the value represents, and so that the calling function can reference what error conditions there are

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.