NUbots / NUbots/NUbots

Make a roundtrip unit test for coordinate utilities

Open
#978 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

-Enhancement D-Good-First-Issue L-C++
Dominant language
C++
Stars
41
Forks
22
Avg merge
1h 48m
Merged PRs (30d)
1

Description

Should add an extra unit test that randomly generates cartesian coordinates then tries to round trip them (cart -> spherical -> cart -> spherical) and then check that the two carts are equal and the two spherical are equal. This will let us know that the functions are inverses of each other

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or existing test is named. Start by locating the coordinate utility functions and their current unit tests, then run those tests before adding randomized cartesian-to-spherical roundtrip coverage. Done means both cartesian and spherical values remain equal after the roundtrip.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
robotics, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.