This class handles all the buffering of incoming data.
More...
#include <Subscriber.hpp>
This class handles all the buffering of incoming data.
okvis::Subscriber::~Subscriber |
( |
| ) |
|
Constructor. This will either subscribe to the relevant ROS topics or start up the sensor and register the callbacks directly there.
- Parameters
-
nh | The ROS node handle. |
vioInterfacePtr | Pointer to the VioInterface. |
param_reader | Parameter reader. |
void okvis::Subscriber::configCallback |
( |
okvis_ros::CameraConfig & |
config, |
|
|
uint32_t |
level |
|
) |
| |
|
protected |
Dynamic reconfigure callback.
void okvis::Subscriber::depthImageCallback |
( |
const sensor_msgs::ImageConstPtr & |
, |
|
|
unsigned |
int |
|
) |
| |
|
inlineprotected |
The depth image callback.
- Warning
- Not implemented.
void okvis::Subscriber::directFrameCallback |
( |
visensor::ViFrame::Ptr |
frame_ptr, |
|
|
visensor::ViErrorCode |
error |
|
) |
| |
|
protected |
void okvis::Subscriber::directFrameCornerCallback |
( |
visensor::ViFrame::Ptr |
frame_ptr, |
|
|
visensor::ViCorner::Ptr |
corners_ptr |
|
) |
| |
|
protected |
The callback for images including detected corners.
- Warning
- Not implemented.
void okvis::Subscriber::directImuCallback |
( |
boost::shared_ptr< visensor::ViImuMsg > |
imu_ptr, |
|
|
visensor::ViErrorCode |
error |
|
) |
| |
|
protected |
void okvis::Subscriber::imageCallback |
( |
const sensor_msgs::ImageConstPtr & |
msg, |
|
|
unsigned int |
cameraIndex |
|
) |
| |
|
protected |
void okvis::Subscriber::imuCallback |
( |
const sensor_msgs::ImuConstPtr & |
msg | ) |
|
|
protected |
void okvis::Subscriber::initialiseDriverCallbacks |
( |
| ) |
|
|
protected |
Initialise callbacks. Called in constructor.
void okvis::Subscriber::setNodeHandle |
( |
ros::NodeHandle & |
nh | ) |
|
Set the node handle. This sets up the callbacks. This is called in the constructor.
void okvis::Subscriber::startSensors |
( |
const std::vector< unsigned int > & |
camRate, |
|
|
const unsigned int |
imuRate |
|
) |
| |
|
protected |
dynamic_reconfigure::Server<okvis_ros::CameraConfig> okvis::Subscriber::cameraConfigReconfigureService_ |
|
protected |
dynamic reconfigure service.
std::vector<image_transport::Subscriber> okvis::Subscriber::imageSubscribers_ |
|
protected |
The image message subscriber.
image_transport::ImageTransport* okvis::Subscriber::imgTransport_ |
|
protected |
ros::NodeHandle* okvis::Subscriber::nh_ |
|
protected |
std::shared_ptr<visensor::ViSensorDriver> okvis::Subscriber::sensor_ |
|
protected |
ros::Subscriber okvis::Subscriber::subImu_ |
|
protected |
The IMU message subscriber.
The parameters and settings.
The documentation for this class was generated from the following files: