Skip to content
Snippets Groups Projects
Commit 84d82aba authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Small updates

parent ee51d68a
No related branches found
No related tags found
1 merge request!214Hello wolf
Pipeline #2196 failed
......@@ -139,6 +139,7 @@ int main()
// NOTE: uncomment this line below to achieve sensor self-calibration (of the orientation only, since the position is not observable)
// sensor_rb->getOPtr()->unfix();
// sensor_rb->getPPtr()->unfix(); // The position is however not observable, and thus self-calibration would not work. You can try uncommenting it too.
// processor Range and Bearing
ProcessorParamsRangeBearingPtr params_rb = std::make_shared<ProcessorParamsRangeBearing>();
......
......@@ -115,11 +115,6 @@ Eigen::Vector2s ProcessorRangeBearing::observe(const Eigen::Vector2s& lmk_w) con
return polar(toSensor(lmk_w));
}
Eigen::Vector2s ProcessorRangeBearing::invObserve(Scalar r, Scalar b) const
{
return fromSensor(rect(r, b));
}
ProcessorRangeBearing::Trf ProcessorRangeBearing::transform(const Eigen::Vector3s& _pose) const
{
Trf H = Eigen::Translation<Scalar,2>(_pose(0), _pose(1)) * Eigen::Rotation2D<Scalar>(_pose(2)) ;
......@@ -159,6 +154,11 @@ Eigen::Vector2s ProcessorRangeBearing::rect(Scalar range, Scalar bearing) const
return range * (Vector2s() << cos(bearing), sin(bearing)).finished();
}
Eigen::Vector2s ProcessorRangeBearing::invObserve(Scalar r, Scalar b) const
{
return fromSensor(rect(r, b));
}
} /* namespace wolf */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment