Skip to content

Commit

Permalink
Automated Release 46 **NO_CI**
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjust committed Jan 31, 2024
1 parent 73917ae commit 0f0249f
Show file tree
Hide file tree
Showing 15 changed files with 886 additions and 381 deletions.
580 changes: 291 additions & 289 deletions allclasses-index.html

Large diffs are not rendered by default.

85 changes: 71 additions & 14 deletions index-all.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion member-search-index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions overview-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ <h2 title="Enum Class Hierarchy">Enum Class Hierarchy</h2>
<li class="circle">xbot.common.logic.<a href="xbot/common/logic/HumanVsMachineDecider.HumanVsMachineMode.html" class="type-name-link" title="enum class in xbot.common.logic">HumanVsMachineDecider.HumanVsMachineMode</a></li>
<li class="circle">xbot.common.logic.<a href="xbot/common/logic/Latch.EdgeType.html" class="type-name-link" title="enum class in xbot.common.logic">Latch.EdgeType</a></li>
<li class="circle">xbot.common.trajectory.<a href="xbot/common/trajectory/Obstacle.ParallelCrossingType.html" class="type-name-link" title="enum class in xbot.common.trajectory">Obstacle.ParallelCrossingType</a></li>
<li class="circle">xbot.common.trajectory.<a href="xbot/common/trajectory/Obstacle.PointProjectionCombination.html" class="type-name-link" title="enum class in xbot.common.trajectory">Obstacle.PointProjectionCombination</a></li>
<li class="circle">xbot.common.math.<a href="xbot/common/math/PID.OffTargetReason.html" class="type-name-link" title="enum class in xbot.common.math">PID.OffTargetReason</a></li>
<li class="circle">xbot.common.properties.<a href="xbot/common/properties/Property.PropertyLevel.html" class="type-name-link" title="enum class in xbot.common.properties">Property.PropertyLevel</a></li>
<li class="circle">xbot.common.properties.<a href="xbot/common/properties/Property.PropertyPersistenceType.html" class="type-name-link" title="enum class in xbot.common.properties">Property.PropertyPersistenceType</a></li>
Expand Down
2 changes: 1 addition & 1 deletion type-search-index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions xbot/common/subsystems/drive/BaseDriveSubsystem.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h2>Field Summary</h2>
<div class="col-first even-row-color"><code>static final double</code></div>
<div class="col-second even-row-color"><code><a href="#kThrottleDeadband" class="member-name-link">kThrottleDeadband</a></code></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><code><a href="../../math/XYPair.html" title="class in xbot.common.math">XYPair</a></code></div>
<div class="col-first odd-row-color"><code>edu.wpi.first.math.geometry.Translation2d</code></div>
<div class="col-second odd-row-color"><code><a href="#lastRawCommandedDirection" class="member-name-link">lastRawCommandedDirection</a></code></div>
<div class="col-last odd-row-color">&nbsp;</div>
<div class="col-first even-row-color"><code>double</code></div>
Expand Down Expand Up @@ -261,7 +261,7 @@ <h2>Field Details</h2>
<li>
<section class="detail" id="lastRawCommandedDirection">
<h3>lastRawCommandedDirection</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../../math/XYPair.html" title="class in xbot.common.math">XYPair</a></span>&nbsp;<span class="element-name">lastRawCommandedDirection</span></div>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">edu.wpi.first.math.geometry.Translation2d</span>&nbsp;<span class="element-name">lastRawCommandedDirection</span></div>
</section>
</li>
<li>
Expand Down
57 changes: 52 additions & 5 deletions xbot/common/subsystems/pose/BasePoseSubsystem.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,19 +209,29 @@ <h2>Method Summary</h2>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static edu.wpi.first.math.geometry.Pose2d</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertBluetoRed(edu.wpi.first.math.geometry.Pose2d)" class="member-name-link">convertBluetoRed</a><wbr>(edu.wpi.first.math.geometry.Pose2d&nbsp;blueCoordinates)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Converts a pose from blue to red alliance, by mirroring across the field midline at an assumed X coordinate.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static edu.wpi.first.math.geometry.Rotation2d</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertBlueToRed(edu.wpi.first.math.geometry.Rotation2d)" class="member-name-link">convertBlueToRed</a><wbr>(edu.wpi.first.math.geometry.Rotation2d&nbsp;blueHeading)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Converts a Rotation2d from blue to red alliance, by mirroring across the field midline at an assumed X coordinate.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static edu.wpi.first.math.geometry.Translation2d</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertBlueToRed(edu.wpi.first.math.geometry.Translation2d)" class="member-name-link">convertBlueToRed</a><wbr>(edu.wpi.first.math.geometry.Translation2d&nbsp;blueCoordinates)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Converts a Translation2d from blue to red alliance, by mirroring across the field midline at an assumed X coordinate.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static edu.wpi.first.math.geometry.Pose2d</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertBlueToRedIfNeeded(edu.wpi.first.math.geometry.Pose2d)" class="member-name-link">convertBlueToRedIfNeeded</a><wbr>(edu.wpi.first.math.geometry.Pose2d&nbsp;blueCoordinates)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Converts a Pose2d from blue to red alliance, if and ONLY IF you are currently on the Red alliance.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static edu.wpi.first.math.geometry.Translation2d</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertBlueToRedIfNeeded(edu.wpi.first.math.geometry.Translation2d)" class="member-name-link">convertBlueToRedIfNeeded</a><wbr>(edu.wpi.first.math.geometry.Translation2d&nbsp;blueCoordinates)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Converts a Translation2d from blue to red alliance, if and ONLY IF you are currently on the Red alliance.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static edu.wpi.first.wpilibj.DriverStation.Alliance</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getAlliance()" class="member-name-link">getAlliance</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
Expand Down Expand Up @@ -708,30 +718,67 @@ <h3>getNavXReady</h3>
<section class="detail" id="convertBluetoRed(edu.wpi.first.math.geometry.Pose2d)">
<h3>convertBluetoRed</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">edu.wpi.first.math.geometry.Pose2d</span>&nbsp;<span class="element-name">convertBluetoRed</span><wbr><span class="parameters">(edu.wpi.first.math.geometry.Pose2d&nbsp;blueCoordinates)</span></div>
<div class="block">Converts a pose from blue to red alliance, by mirroring across the field midline at an assumed X coordinate.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>blueCoordinates</code> - Blue Pose2d to convert to Red Pose2d</dd>
<dt>Returns:</dt>
<dd>Red Pose2d</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertBlueToRed(edu.wpi.first.math.geometry.Translation2d)">
<h3>convertBlueToRed</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">edu.wpi.first.math.geometry.Translation2d</span>&nbsp;<span class="element-name">convertBlueToRed</span><wbr><span class="parameters">(edu.wpi.first.math.geometry.Translation2d&nbsp;blueCoordinates)</span></div>
<div class="block">Converts a Translation2d from blue to red alliance, by mirroring across the field midline at an assumed X coordinate.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>blueCoordinates</code> - Blue Translation2d to convert to Red Translation2d</dd>
<dt>Returns:</dt>
<dd>Red Translation2d</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertBlueToRed(edu.wpi.first.math.geometry.Rotation2d)">
<h3>convertBlueToRed</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">edu.wpi.first.math.geometry.Rotation2d</span>&nbsp;<span class="element-name">convertBlueToRed</span><wbr><span class="parameters">(edu.wpi.first.math.geometry.Rotation2d&nbsp;blueHeading)</span></div>
<div class="block">Converts a Rotation2d from blue to red alliance, by mirroring across the field midline at an assumed X coordinate.
Note that this means that in some cases the heading won't change; a heading of 90 degrees will remain 90 degrees,
as both are facing the positive Y direction.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>blueHeading</code> - Blue Rotation2d to convert to Red Rotation2d</dd>
<dt>Returns:</dt>
<dd>Red Rotation2d</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertBlueToRedIfNeeded(edu.wpi.first.math.geometry.Translation2d)">
<h3>convertBlueToRedIfNeeded</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">edu.wpi.first.math.geometry.Translation2d</span>&nbsp;<span class="element-name">convertBlueToRedIfNeeded</span><wbr><span class="parameters">(edu.wpi.first.math.geometry.Translation2d&nbsp;blueCoordinates)</span></div>
<div class="block">Converts a Translation2d from blue to red alliance, if and ONLY IF you are currently on the Red alliance.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>blueCoordinates</code> - Blue Translation2d to possibly convert to Red Translation2d</dd>
<dt>Returns:</dt>
<dd>Red Translation2d if on Red alliance, otherwise the original Blue Translation2d</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertBlueToRedIfNeeded(edu.wpi.first.math.geometry.Pose2d)">
<h3>convertBlueToRedIfNeeded</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">edu.wpi.first.math.geometry.Pose2d</span>&nbsp;<span class="element-name">convertBlueToRedIfNeeded</span><wbr><span class="parameters">(edu.wpi.first.math.geometry.Pose2d&nbsp;blueCoordinates)</span></div>
<div class="block">Converts a Pose2d from blue to red alliance, if and ONLY IF you are currently on the Red alliance.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>blueCoordinates</code> - Blue Pose2d to possibly convert to Red Pose2d</dd>
<dt>Returns:</dt>
<dd>Red Pose2d if on Red alliance, otherwise the original Blue Pose2d</dd>
</dl>
</section>
</li>
<li>
Expand Down
27 changes: 18 additions & 9 deletions xbot/common/trajectory/LowResField.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,14 @@ <h2>Method Summary</h2>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#addObstacle(xbot.common.trajectory.Obstacle)" class="member-name-link">addObstacle</a><wbr>(<a href="Obstacle.html" title="class in xbot.common.trajectory">Obstacle</a>&nbsp;o)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Adds an obstacle to the field.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="XbotSwervePoint.html" title="class in xbot.common.trajectory">XbotSwervePoint</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#generatePath(edu.wpi.first.math.geometry.Pose2d,xbot.common.trajectory.XbotSwervePoint)" class="member-name-link">generatePath</a><wbr>(edu.wpi.first.math.geometry.Pose2d&nbsp;currentRobotPose,
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#generatePath(edu.wpi.first.math.geometry.Pose2d,xbot.common.trajectory.XbotSwervePoint)" class="member-name-link">generatePath</a><wbr>(edu.wpi.first.math.geometry.Pose2d&nbsp;currentPose,
<a href="XbotSwervePoint.html" title="class in xbot.common.trajectory">XbotSwervePoint</a>&nbsp;targetPoint)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Generates a path between any two points on the field, avoiding known obstacles.</div>
<div class="block">Generates a path from the current position to the target point, avoiding known obstacles.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="Obstacle.html" title="class in xbot.common.trajectory">Obstacle</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getObstacles()" class="member-name-link">getObstacles</a>()</code></div>
Expand Down Expand Up @@ -154,6 +156,13 @@ <h2>Method Details</h2>
<section class="detail" id="addObstacle(xbot.common.trajectory.Obstacle)">
<h3>addObstacle</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">addObstacle</span><wbr><span class="parameters">(<a href="Obstacle.html" title="class in xbot.common.trajectory">Obstacle</a>&nbsp;o)</span></div>
<div class="block">Adds an obstacle to the field. If the obstacle intersects with any existing obstacles, it will be combined with
the existing obstacle into a single larger obstacle with a bounding box that fully contains both obstacles.
This should be the only method used to add new obstacles; otherwise obstacles could intersect.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>o</code> - The obstacle to add.</dd>
</dl>
</section>
</li>
<li>
Expand All @@ -165,16 +174,16 @@ <h3>getObstacles</h3>
<li>
<section class="detail" id="generatePath(edu.wpi.first.math.geometry.Pose2d,xbot.common.trajectory.XbotSwervePoint)">
<h3>generatePath</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="XbotSwervePoint.html" title="class in xbot.common.trajectory">XbotSwervePoint</a>&gt;</span>&nbsp;<span class="element-name">generatePath</span><wbr><span class="parameters">(edu.wpi.first.math.geometry.Pose2d&nbsp;currentRobotPose,
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="XbotSwervePoint.html" title="class in xbot.common.trajectory">XbotSwervePoint</a>&gt;</span>&nbsp;<span class="element-name">generatePath</span><wbr><span class="parameters">(edu.wpi.first.math.geometry.Pose2d&nbsp;currentPose,
<a href="XbotSwervePoint.html" title="class in xbot.common.trajectory">XbotSwervePoint</a>&nbsp;targetPoint)</span></div>
<div class="block">Generates a path between any two points on the field, avoiding known obstacles. Generated
interstitial points will be Position-Only. Final target point will be unchanged.</div>
<div class="block">Generates a path from the current position to the target point, avoiding known obstacles.
Very generally, it will recursively solve paths nearby the target, and then step foward to approach the target.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>currentRobotPose</code> - The robot's current position</dd>
<dd><code>targetPoint</code> - The robot's destination. This better be outside the bounding boxes!</dd>
<dd><code>currentPose</code> - Starting point</dd>
<dd><code>targetPoint</code> - Terminating Point</dd>
<dt>Returns:</dt>
<dd>List of waypoints, followed by the target point.</dd>
<dd>A List of XbotSwervePoints that can be followed to reach the destination without collision.</dd>
</dl>
</section>
</li>
Expand Down
Loading

0 comments on commit 0f0249f

Please sign in to comment.