Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CameraWrapper Class Reference
Inheritance diagram for CameraWrapper:
Inheritance graph
[legend]

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, 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 ()
 
- Public Member Functions inherited from UEventsHandler
void registerToEventsManager ()
 
void unregisterFromEventsManager ()
 
- Public Member Functions inherited from UEventsSender
 UEventsSender ()
 
virtual ~UEventsSender ()
 

Protected Member Functions

virtual bool handleEvent (UEvent *event)
 
- Protected Member Functions inherited from UEventsHandler
 UEventsHandler ()
 
virtual ~UEventsHandler ()
 
- Protected Member Functions inherited from UEventsSender
void post (UEvent *event, bool async=true) const
 

Private Attributes

rtabmap::Cameracamera_
 
rtabmap::CameraThreadcameraThread_
 
std::string frameId_
 
image_transport::Publisher rosPublisher_
 
ros::ServiceServer startSrv_
 
ros::ServiceServer stopSrv_
 

Detailed Description

Definition at line 49 of file CameraNode.cpp.

Constructor & Destructor Documentation

◆ CameraWrapper()

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.

◆ ~CameraWrapper()

virtual CameraWrapper::~CameraWrapper ( )
inlinevirtual

Definition at line 71 of file CameraNode.cpp.

Member Function Documentation

◆ handleEvent()

virtual bool CameraWrapper::handleEvent ( UEvent event)
inlineprotectedvirtual

Implements UEventsHandler.

Definition at line 222 of file CameraNode.cpp.

◆ init()

bool CameraWrapper::init ( )
inline

Definition at line 80 of file CameraNode.cpp.

◆ setParameters()

void CameraWrapper::setParameters ( int  deviceId,
double  frameRate,
const std::string path,
bool  pause 
)
inline

Definition at line 117 of file CameraNode.cpp.

◆ start()

void CameraWrapper::start ( )
inline

Definition at line 89 of file CameraNode.cpp.

◆ startSrv()

bool CameraWrapper::startSrv ( std_srvs::Empty::Request &  ,
std_srvs::Empty::Response &   
)
inline

Definition at line 97 of file CameraNode.cpp.

◆ stopSrv()

bool CameraWrapper::stopSrv ( std_srvs::Empty::Request &  ,
std_srvs::Empty::Response &   
)
inline

Definition at line 107 of file CameraNode.cpp.

Member Data Documentation

◆ camera_

rtabmap::Camera* CameraWrapper::camera_
private

Definition at line 252 of file CameraNode.cpp.

◆ cameraThread_

rtabmap::CameraThread* CameraWrapper::cameraThread_
private

Definition at line 251 of file CameraNode.cpp.

◆ frameId_

std::string CameraWrapper::frameId_
private

Definition at line 255 of file CameraNode.cpp.

◆ rosPublisher_

image_transport::Publisher CameraWrapper::rosPublisher_
private

Definition at line 250 of file CameraNode.cpp.

◆ startSrv_

ros::ServiceServer CameraWrapper::startSrv_
private

Definition at line 253 of file CameraNode.cpp.

◆ stopSrv_

ros::ServiceServer CameraWrapper::stopSrv_
private

Definition at line 254 of file CameraNode.cpp.


The documentation for this class was generated from the following file:


rtabmap_ros
Author(s): Mathieu Labbe
autogenerated on Tue Jan 24 2023 04:04:40