Public Member Functions | |
CameraWrapper (int usbDevice=0, float imageRate=0, unsigned int imageWidth=0, unsigned int imageHeight=0) | |
bool | init () |
void | setParameters (int deviceId, double frameRate, int width, int height, const std::string &path, bool pause) |
void | start () |
bool | startSrv (std_srvs::Empty::Request &, std_srvs::Empty::Response &) |
bool | stopSrv (std_srvs::Empty::Request &, std_srvs::Empty::Response &) |
virtual | ~CameraWrapper () |
Protected Member Functions | |
virtual void | handleEvent (UEvent *event) |
Private Attributes | |
rtabmap::Camera * | camera_ |
rtabmap::CameraThread * | cameraThread_ |
std::string | frameId_ |
image_transport::Publisher | rosPublisher_ |
ros::ServiceServer | startSrv_ |
ros::ServiceServer | stopSrv_ |
Definition at line 49 of file CameraNode.cpp.
CameraWrapper::CameraWrapper | ( | int | usbDevice = 0 , |
float | imageRate = 0 , |
||
unsigned int | imageWidth = 0 , |
||
unsigned int | imageHeight = 0 |
||
) | [inline] |
Definition at line 53 of file CameraNode.cpp.
virtual CameraWrapper::~CameraWrapper | ( | ) | [inline, virtual] |
Definition at line 70 of file CameraNode.cpp.
virtual void CameraWrapper::handleEvent | ( | UEvent * | event | ) | [inline, protected, virtual] |
Implements UEventsHandler.
Definition at line 234 of file CameraNode.cpp.
bool CameraWrapper::init | ( | ) | [inline] |
Definition at line 79 of file CameraNode.cpp.
void CameraWrapper::setParameters | ( | int | deviceId, |
double | frameRate, | ||
int | width, | ||
int | height, | ||
const std::string & | path, | ||
bool | pause | ||
) | [inline] |
Definition at line 116 of file CameraNode.cpp.
void CameraWrapper::start | ( | ) | [inline] |
Definition at line 88 of file CameraNode.cpp.
bool CameraWrapper::startSrv | ( | std_srvs::Empty::Request & | , |
std_srvs::Empty::Response & | |||
) | [inline] |
Definition at line 96 of file CameraNode.cpp.
bool CameraWrapper::stopSrv | ( | std_srvs::Empty::Request & | , |
std_srvs::Empty::Response & | |||
) | [inline] |
Definition at line 106 of file CameraNode.cpp.
rtabmap::Camera* CameraWrapper::camera_ [private] |
Definition at line 263 of file CameraNode.cpp.
Definition at line 262 of file CameraNode.cpp.
std::string CameraWrapper::frameId_ [private] |
Definition at line 266 of file CameraNode.cpp.
Definition at line 261 of file CameraNode.cpp.
ros::ServiceServer CameraWrapper::startSrv_ [private] |
Definition at line 264 of file CameraNode.cpp.
ros::ServiceServer CameraWrapper::stopSrv_ [private] |
Definition at line 265 of file CameraNode.cpp.