Skip to content

Commit 19bf426

Browse files
committed
Fixed up all javadocs and added more verbose descriptions
1 parent a311487 commit 19bf426

File tree

14 files changed

+63
-10
lines changed

14 files changed

+63
-10
lines changed
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

.idea/OdometryCore.iml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/tejasmehta/OdometryCore/OdometryCore.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2020 Tejas Mehta <[email protected]>
2+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
package com.tejasmehta.OdometryCore;
26

37
import com.tejasmehta.OdometryCore.localization.EncoderPositions;
@@ -6,10 +10,11 @@
610
import com.tejasmehta.OdometryCore.math.CoreMath;
711

812
/**
13+
* The main class to wrap over all odometry calculations and providing an
14+
* easy-to-use abstraction for all odometry operations, calculations, and units
915
* @author Tejas Mehta
1016
* Made on Wednesday, November 04, 2020
1117
* File Name: Odometrycore
12-
* The main class to wrap over all odometry calculations
1318
*/
1419
public class OdometryCore {
1520

src/main/java/com/tejasmehta/OdometryCore/localization/EncoderPositions.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
// Copyright 2020 Tejas Mehta <[email protected]>
2+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5+
16
package com.tejasmehta.OdometryCore.localization;
27

38
/****
9+
* A class to unify all three encoder positions used in the core calculations
10+
* for both general convenience and lack of confusion over multiple values
411
* @author Tejas Mehta
512
* Made on Wednesday, November 11, 2020
613
* File Name: EncoderPositions
7-
* A class to unify all three encoder positions used in the core calculations
814
*/
915
public class EncoderPositions {
1016
private final double leftPosition;

src/main/java/com/tejasmehta/OdometryCore/localization/HeadingUnit.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
// Copyright 2020 Tejas Mehta <[email protected]>
2+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5+
16
package com.tejasmehta.OdometryCore.localization;
27

38
/****
9+
* An enumeration for the heading unit used in the OdometryPosition to allow
10+
* any users to request their degree/heading be given in the following unit(s)
411
* @author Tejas Mehta
512
* Made on Wednesday, November 04, 2020
613
* File Name: OdometryPosition
7-
* An emun for the heading unit used in the OdometryPosition
814
*/
915
public enum HeadingUnit {
1016
DEGREES,

src/main/java/com/tejasmehta/OdometryCore/localization/OdometryPosition.java

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
// Copyright 2020 Tejas Mehta <[email protected]>
2+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5+
16
package com.tejasmehta.OdometryCore.localization;
27

38
/****
4-
* @author Tejas Mehta
9+
* A class to store the Odometry position in the format of an x coordinate, a
10+
* a y coordinate, and an angle measure with it's heading unit, either
11+
* a degree or radian. Provides convenience methods to access each value
12+
* @author Tejas Mehta
513
* Made on Thursday, November 12, 2020
614
* File Name: EncoderTicks
7-
* A class to store the Odometry position in the format of an x coordinate, a y coordinate, and an angle measure
815
*/
916
public class OdometryPosition {
1017
private final double x;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* A package to handle localization of various numerical positions and
3+
* angular units into an easily recognizable abstraction
4+
*/
5+
package com.tejasmehta.OdometryCore.localization;

src/main/java/com/tejasmehta/OdometryCore/math/CartesianCoordinate.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
// Copyright 2020 Tejas Mehta <[email protected]>
2+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5+
16
package com.tejasmehta.OdometryCore.math;
27

38
/****
9+
* A class to signify a cartesian coordinate and simplify polar to cartesian operations
410
* @author Tejas Mehta
511
* Made on Wednesday, November 04, 2020
612
* File Name: LocalCoordinate
7-
* A class to signify a cartesian coordinate and to simplify polar and cartesian operations
813
*/
914
public class CartesianCoordinate {
1015
private final double x;

src/main/java/com/tejasmehta/OdometryCore/math/CoreMath.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
// Copyright 2020 Tejas Mehta <[email protected]>
2+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
package com.tejasmehta.OdometryCore.math;
26

37
import com.tejasmehta.OdometryCore.localization.HeadingUnit;
48
import com.tejasmehta.OdometryCore.localization.OdometryPosition;
59

610
/**
11+
* A class to house and handle all the math methods for three wheel odometry
712
* @author Tejas Mehta
813
* Made on Wednesday, November 04, 2020
914
* File Name: CoreMath
10-
* A class to house and handle all the math methods for three wheel odometry
1115
*/
1216
public class CoreMath {
1317

src/main/java/com/tejasmehta/OdometryCore/math/PolarCoordinate.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
// Copyright 2020 Tejas Mehta <[email protected]>
2+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5+
16
package com.tejasmehta.OdometryCore.math;
27

38
/****
4-
* @author Tejas Mehta
9+
* A class to store a PolarCoordinate and simplify cartesian to polar operations
10+
* @author Tejas Mehta
511
* Made on Wednesday, November 04, 2020
612
* File Name: PolarCoordinate
7-
* A class to store a PolarCoordinate and simplify polar and cartesian operations
813
*/
914
public class PolarCoordinate {
1015
private final double r;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* A package to handle all of the mathematical operations present within
3+
* this library including odometry calculations and unit conversions
4+
*/
5+
package com.tejasmehta.OdometryCore.math;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* A lightweight package to provide simplified and localized core odometry
3+
* motion tracking algorithms for three wheel systems
4+
*/
5+
package com.tejasmehta.OdometryCore;

0 commit comments

Comments
 (0)