mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpimath] Java: add static instantiations of common rotations (#6563)
C++ doesn't need this because it supports value types, which are much cheaper to construct. constexpr is also available to make construction zero-cost.
This commit is contained in:
@@ -27,7 +27,7 @@ public final class ComputerVisionUtil {
|
||||
* either be a constant for a rigidly mounted camera, or variable if the camera is mounted to
|
||||
* a turret. If the camera was mounted 3 inches in front of the "origin" (usually physical
|
||||
* center) of the robot, this would be new Transform3d(Units.inchesToMeters(3.0), 0.0, 0.0,
|
||||
* new Rotation3d()).
|
||||
* Rotation3d.kZero).
|
||||
* @return The robot's field-relative pose.
|
||||
*/
|
||||
public static Pose3d objectToRobotPose(
|
||||
|
||||
Reference in New Issue
Block a user