Extension of an RGBDFrame, which has a pose, and a 3D point cloud. More...
#include <rgbd_keyframe.h>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | RGBDKeyframe () |
Default (empty) constructor. | |
RGBDKeyframe (const RGBDFrame &frame) | |
Copy constructor from a RGBDFrame. | |
Static Public Member Functions | |
static bool | load (RGBDKeyframe &keyframe, const std::string &path) |
Loads the RGBD keyframe to disk. | |
static bool | save (const RGBDKeyframe &keyframe, const std::string &path) |
Saves the RGBD keyframe to disk. | |
Public Attributes | |
bool | manually_added |
Whether the frame was added manually by the user. | |
double | path_length_angular |
path length, in radians, of the camera trajectory at the moment of adding the keyframe | |
double | path_length_linear |
path length, in meters, of the camera trajectory at the moment of adding the keyframe | |
tf::Transform | pose |
pose of the camera, in some fixed frame |
Extension of an RGBDFrame, which has a pose, and a 3D point cloud.
The class is used for keyframe-based graph alignment, as well as dense mapping.
Definition at line 42 of file rgbd_keyframe.h.
Default (empty) constructor.
Definition at line 28 of file rgbd_keyframe.cpp.
ccny_rgbd::RGBDKeyframe::RGBDKeyframe | ( | const RGBDFrame & | frame | ) |
Copy constructor from a RGBDFrame.
frame | reference to the frame which is being used to create a keyframe |
Definition at line 34 of file rgbd_keyframe.cpp.
bool ccny_rgbd::RGBDKeyframe::load | ( | RGBDKeyframe & | keyframe, |
const std::string & | path | ||
) | [static] |
Loads the RGBD keyframe to disk.
Loads the RGBDFrame, as well as the additional keyframe info as .yml
keyframe | Reference to the keyframe being saved |
path | The path to the folder where everything will be stored |
true | Successfully loaded the data |
false | Loading failed - for example, directory not found |
Definition at line 72 of file rgbd_keyframe.cpp.
bool ccny_rgbd::RGBDKeyframe::save | ( | const RGBDKeyframe & | keyframe, |
const std::string & | path | ||
) | [static] |
Saves the RGBD keyframe to disk.
Saves the RGBDFrame, as well as the additional keyframe info as .yml
keyframe | Reference to the keyframe being saved |
path | The path to the folder where everything will be stored |
true | Successfully saved the data |
false | Saving failed - for example, cannot create directory |
Definition at line 44 of file rgbd_keyframe.cpp.
Whether the frame was added manually by the user.
Definition at line 59 of file rgbd_keyframe.h.
path length, in radians, of the camera trajectory at the moment of adding the keyframe
Definition at line 69 of file rgbd_keyframe.h.
path length, in meters, of the camera trajectory at the moment of adding the keyframe
Definition at line 64 of file rgbd_keyframe.h.
pose of the camera, in some fixed frame
Definition at line 57 of file rgbd_keyframe.h.