Matlab convenience function for plotting points
parent
f13b3049a8
commit
e01a320efa
|
|
@ -50,6 +50,15 @@ namespace visualSLAM {
|
|||
return result;
|
||||
}
|
||||
|
||||
Matrix Values::points() const {
|
||||
size_t j=0;
|
||||
ConstFiltered<Point3> points = filter<Point3>();
|
||||
Matrix result(points.size(),3);
|
||||
BOOST_FOREACH(const ConstFiltered<Point3>::KeyValuePair& keyValue, points)
|
||||
result.row(j++) = keyValue.value.vector();
|
||||
return result;
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
void Graph::addMeasurement(const Point2& measured, const SharedNoiseModel& model,
|
||||
Key poseKey, Key pointKey, const shared_ptrK K) {
|
||||
|
|
|
|||
|
|
@ -81,9 +81,11 @@ namespace visualSLAM {
|
|||
/// check if value with specified key exists
|
||||
bool exists(Key i) const { return gtsam::Values::exists(i); }
|
||||
|
||||
Vector xs() const; ///< get all x coordinates in a matrix
|
||||
Vector ys() const; ///< get all y coordinates in a matrix
|
||||
Vector zs() const; ///< get all z coordinates in a matrix
|
||||
Vector xs() const; ///< get all pose x coordinates in a matrix
|
||||
Vector ys() const; ///< get all pose y coordinates in a matrix
|
||||
Vector zs() const; ///< get all pose z coordinates in a matrix
|
||||
|
||||
Matrix points() const; ///< get all point coordinates in a matrix
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue