Go to the documentation of this file.
44 template <
class CALIBRATION>
54 std::shared_ptr<CALIBRATION>
K_;
74 const std::shared_ptr<CALIBRATION>
K,
88 const std::shared_ptr<CALIBRATION>
K,
106 std::cout <<
s <<
"SmartProjectionPoseFactor, z = \n ";
112 const This *
e =
dynamic_cast<const This*
>(&
p);
120 if (this->
active(values)) {
141 const Pose3 world_P_sensor_k =
144 cameras.emplace_back(world_P_sensor_k,
K_);
151 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
152 friend class boost::serialization::access;
154 template<
class ARCHIVE>
155 void serialize(ARCHIVE & ar,
const unsigned int ) {
156 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
157 ar & BOOST_SERIALIZATION_NVP(
K_);
164 template<
class CALIBRATION>
166 SmartProjectionPoseFactor<CALIBRATION> > {
std::shared_ptr< CALIBRATION > K_
calibration object (one for all cameras)
std::optional< Pose3 > body_P_sensor_
Pose of the camera in the body frame.
Pose3 body_P_sensor() const
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Smart factor on cameras (pose + calibration)
void print(const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
bool equals(const NonlinearFactor &p, double tol=1e-9) const override
equals
static const SmartProjectionParams params
Base::Cameras cameras(const Values &values) const override
double totalReprojectionError(const Cameras &cameras, std::optional< Point3 > externalPoint={}) const
virtual bool active(const Values &) const
bool equals(const NonlinearFactor &p, double tol=1e-9) const override
equals
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
CameraSet< CAMERA > Cameras
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
~SmartProjectionPoseFactor() override
const std::shared_ptr< CALIBRATION > calibration() const
SmartProjectionPoseFactor(const SharedNoiseModel &sharedNoiseModel, const std::shared_ptr< CALIBRATION > K, const SmartProjectionParams ¶ms=SmartProjectionParams())
noiseModel::Base::shared_ptr SharedNoiseModel
void print(const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
KeyVector keys_
The keys involved in this factor.
SmartProjectionFactor< Camera > Base
PinholePose< CALIBRATION > Camera
std::shared_ptr< This > shared_ptr
shorthand for a smart pointer to a factor
SmartProjectionPoseFactor(const SharedNoiseModel &sharedNoiseModel, const std::shared_ptr< CALIBRATION > K, const std::optional< Pose3 > body_P_sensor, const SmartProjectionParams ¶ms=SmartProjectionParams())
SmartProjectionPoseFactor()
std::uint64_t Key
Integer nonlinear key type.
double error(const Values &values) const override
SmartProjectionPoseFactor< CALIBRATION > This
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:13:27