31 using namespace Eigen;
45 assert(to && to->
vertex());
47 VertexType::EstimateType pose=v->estimate();
48 VertexType::EstimateType delta =
_sensorPose.inverse()*pose;
49 Vector3d translation=delta;
50 double range2=translation.squaredNorm();
55 translation.normalize();
57 double bearing=acos(translation.z());
58 if (fabs(bearing)>
_fov)
82 std::list<PoseObject*>::reverse_iterator it=r->
trajectory().rbegin();
84 while (it!=r->
trajectory().rend() && count < 1){
93 for (std::set<BaseWorldObject*>::iterator it=
world()->objects().begin();
WorldObjectType::VertexType VertexType
bool addParameter(Parameter *p)
void addNoise(EdgeType *e)
ParameterSE3Offset * _offsetParam
InformationType _information
g2o edge from a track to a point node
const Isometry3D & offset() const
rotation of the offset as 3x3 rotation matrix
GaussianSampler< typename EdgeType::ErrorVector, InformationType > _sampler
RobotPoseType _sensorPose
BaseEdge< D, Vector3D >::ErrorVector ErrorVector
SampleType generateSample()
virtual bool setMeasurementFromState()
bool setParameterId(int argNum, int paramId)
bool isVisible(WorldObjectType *to)
virtual void setMeasurement(const Vector3D &m)
const InformationType & information()
EIGEN_STRONG_INLINE void setInformation(const InformationType &information)
TrajectoryType & trajectory()
PoseObject * _robotPoseObject
virtual void addParameters()
SensorPointXYZ(const std::string &name_)
OptimizableGraph * graph()
std::set< BaseWorldObject * > & objects()
virtual bool addEdge(HyperGraph::Edge *e)
void setInformation(const InformationType &information_)
EdgeType * mkEdge(WorldObjectType *object)
EIGEN_STRONG_INLINE const Measurement & measurement() const
accessor functions for the measurement represented by the edge