46 assert(to && to->vertex());
48 VertexType::EstimateType pose = v->estimate();
49 VertexType::EstimateType delta =
_sensorPose.inverse() * pose;
50 Vector3d translation = delta;
51 double range2 = translation.squaredNorm();
54 translation.normalize();
56 double bearing = acos(translation.z());
57 if (fabs(bearing) >
_fov)
return false;
69 e->setMeasurement(e->measurement() + n);
77 std::list<PoseObject*>::reverse_iterator it = r->trajectory().rbegin();
79 while (it != r->trajectory().rend() && count < 1) {
86 for (std::set<BaseWorldObject*>::iterator it =
world()->
objects().begin();
94 e->setMeasurementFromState();
internal::BaseEdgeTraits< D >::ErrorVector ErrorVector
OptimizableGraph * graph() const
InformationType _information
WorldObjectType::VertexType VertexType
WorldObjectTrackXYZ WorldObjectType
EdgeType * mkEdge(WorldObjectType *object)
PoseObject * _robotPoseObject
const InformationType & information()
void setInformation(const InformationType &information_)
GaussianSampler< typename EdgeType::ErrorVector, InformationType > _sampler
EdgeSE3PointXYZDepth EdgeType
SampleType generateSample()
return a sample of the Gaussian distribution
const Isometry3 & offset() const
rotation of the offset as 3x3 rotation matrix
RobotPoseType _sensorPose
SensorPointXYZDepth(const std::string &name_)
bool isVisible(WorldObjectType *to)
void addNoise(EdgeType *e)
virtual void addParameters()
ParameterSE3Offset * _offsetParam
std::set< BaseWorldObject * > & objects()
bool addParameter(Parameter *p)
WorldObject< VertexPointXYZ > WorldObjectTrackXYZ
Robot< WorldObjectSE3 > Robot3D
virtual bool addEdge(HyperGraph::Edge *e)