Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Add getSize() to MotorGroup #472

Merged
merged 3 commits into from
Apr 14, 2021
Merged

Add getSize() to MotorGroup #472

merged 3 commits into from
Apr 14, 2021

Conversation

brenapp
Copy link
Contributor

@brenapp brenapp commented Apr 6, 2021

Description of the Change

Adds getSize() to MotorGroup, which returns the number of motors based on the internal vector.

Motivation

There currently is no way to get this information.

Possible Drawbacks

Increased API surface, but in this case, it's relatively minor.

Verification Process

Directly returning internal information. It doesn't seem like MotorGroup has associated tests, but I can add tests if I'm missing them

Future Work

It may be worth implementing Iterator for the MotorGroup; most situations that would require getting the number of motors involve iterating through the motors.

@codecov
Copy link

codecov bot commented Apr 6, 2021

Codecov Report

Merging #472 (3013391) into develop (f73c592) will increase coverage by 0.24%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #472      +/-   ##
===========================================
+ Coverage    88.63%   88.87%   +0.24%     
===========================================
  Files          139      139              
  Lines         5841     5841              
===========================================
+ Hits          5177     5191      +14     
+ Misses         664      650      -14     

@Octogonapus Octogonapus changed the base branch from master to develop April 14, 2021 00:34
@Octogonapus Octogonapus merged commit 2ef3572 into OkapiLib:develop Apr 14, 2021
Octogonapus added a commit that referenced this pull request May 23, 2022
* Switch from Pathfinder to Squiggles for path generation (#461)

* add squiggles as a cmake dependency

* building

* tests passing again

* tests are passing

* remove pathfinder and switch to squiggles in lmpc

* i think i fixed the PROS build

* Various CI fixes

well i was wrong but this should work

squiggles version back to c++17

this is a hack but it seems to work

trying to remove the cmake build step since this is working on my
machine...

i guess rsync isn't included with github actions container

remove the use of rsync

forgot to undo the installation of rsync

cmake-build-debug already exists at that step

fix valgrind errors

* resolving the minor review comments

* resolve review comments

* Resolve review comments for tests

need to bump g++ version to get filesystem header

trying to get gcc9

switch to using C functions for filesystem interaction

revert the CI script

* pin squiggles version at 1.0.0

* copy the squiggles headers into the templates' inc dir too

* on second thought, better to have squiggles inside okapi dir

* resolve the issue with the executeSinglePath delay

* invert the Y axis for the squiggles generation to match with ROS
coords

* fix the frame transformation and tests

* squiggles to 1.1.0

* update squiggles again to fix tests

* Fix segfault due to undefined use of front()

* ensure that the PROS build uses the latest squiggles files

* Adjust motion profiling documentation to mention Squiggles instead of Pathfinder.

* fix issue where build fails when squiggles doesn't yet exist

* Fix tutorials to use "wheel track" instead of "wheelbase" (#469)

Co-authored-by: Octogonapus <firey45@gmail.com>
Co-authored-by: Shawn Phelps <30736878+shawnphelps@users.noreply.github.com>

* Add getSize() to MotorGroup (#472)

* Fix tutorials to use "wheel track" instead of "wheelbase" (#469)

* Add getSize() to MotorGroup

Co-authored-by: Shawn Phelps <30736878+shawnphelps@users.noreply.github.com>
Co-authored-by: Octogonapus <firey45@gmail.com>

* Version bump

* Add tile unit to docs

Co-authored-by: Jonathan Bayless <16109996+baylessj@users.noreply.github.com>
Co-authored-by: Shawn Phelps <30736878+shawnphelps@users.noreply.github.com>
Co-authored-by: Brendan McGuire <brendan@bren.app>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants