Skip to content

Commit

Permalink
fixed errors on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
r4stered committed Nov 26, 2023
1 parent 434baac commit 337bc73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#pragma once

#include <ranges>
#include <string>
#include <unordered_map>
#include <utility>
Expand Down Expand Up @@ -54,8 +53,11 @@ class VisionSystemSim {
}
}
std::vector<PhotonCameraSim*> GetCameraSims() {
auto vals = std::views::values(camSimMap);
return std::vector<PhotonCameraSim*>{vals.begin(), vals.end()};
std::vector<PhotonCameraSim*> retVal;
for (auto const& cam : camSimMap) {
retVal.emplace_back(cam.second);
}
return retVal;
}
void AddCamera(PhotonCameraSim* cameraSim,
const frc::Transform3d& robotToCamera) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ static frc::Rotation3d RVecToRotation(const cv::Mat& rvecInput) {

float error = 0;
frc::Transform3d best{};
std::optional<frc::Transform3d> alt{std::nullopt};

cv::solvePnPGeneric(objectMat, imagePoints, cameraMat, distCoeffsMat, rvecs,
tvecs, false, cv::SOLVEPNP_SQPNP, rvec, tvec,
Expand Down

0 comments on commit 337bc73

Please sign in to comment.