ekf_cal  0.4.0
A Kalman filter-based sensor calibration package
RosCamera Class Reference

ROS camera sensor class. More...

#include <ros_camera.hpp>

Inheritance diagram for RosCamera:
[legend]
Collaboration diagram for RosCamera:
[legend]

Public Member Functions

 RosCamera (Camera::Parameters camera_parameters)
 RosCamera constructor. More...
 
void Callback (const RosCameraMessage &ros_camera_message)
 RosCamera callback method. More...
 
sensor_msgs::msg::Image::SharedPtr GetRosImage ()
 Camera output ROS image getter method. More...
 
void AddTracker (std::shared_ptr< FeatureTracker > tracker)
 Method to add tracker object to ros camera sensor. More...
 
- Public Member Functions inherited from Camera
 Camera (Camera::Parameters cam_params)
 Camera sensor constructor. More...
 
void AddTracker (std::shared_ptr< FeatureTracker > tracker)
 Method to add tracker object to camera sensor. More...
 
void AddFiducial (std::shared_ptr< FiducialTracker > fiducial)
 Method to add fiducial object to camera sensor. More...
 
void Callback (const CameraMessage &camera_message)
 Callback method for camera. More...
 
- Public Member Functions inherited from Sensor
 Sensor (Parameters params)
 Sensor class constructor. More...
 
unsigned int GetId () const
 Sensor ID getter method. More...
 
std::string GetName () const
 Sensor name getter method. More...
 
void Callback (const SensorMessage sensor_message) const
 Sensor callback function. More...
 

Additional Inherited Members

- Public Types inherited from Camera
typedef Camera::Parameters Parameters
 Camera initialization parameters structure.
 
- Public Types inherited from Sensor
typedef struct Sensor::Parameters Parameters
 Sensor parameter structure.
 
- Public Attributes inherited from Camera
cv::Mat m_out_img {0, 0, CV_8UC1}
 Published output test image.
 
- Static Protected Member Functions inherited from Camera
static unsigned int GenerateFrameID ()
 
- Protected Attributes inherited from Camera
std::shared_ptr< EKFm_ekf
 EKF to update.
 
- Protected Attributes inherited from Sensor
double m_rate
 Sensor measurement rate.
 
unsigned int m_id
 Sensor id.
 
std::string m_name
 Sensor name.
 
std::shared_ptr< DebugLoggerm_logger
 Debug logger.
 
bool m_is_initialized {false}
 Sensor initialization flag.
 

Detailed Description

ROS camera sensor class.

Constructor & Destructor Documentation

◆ RosCamera()

RosCamera::RosCamera ( Camera::Parameters  camera_parameters)
explicit

RosCamera constructor.

Parameters
camera_parametersCamera parameters

Member Function Documentation

◆ AddTracker()

void RosCamera::AddTracker ( std::shared_ptr< FeatureTracker tracker)

Method to add tracker object to ros camera sensor.

Parameters
trackerTracker pointer for ros camera to use during callbacks

◆ Callback()

void RosCamera::Callback ( const RosCameraMessage ros_camera_message)

RosCamera callback method.

Parameters
ros_camera_messageROS image message

◆ GetRosImage()

sensor_msgs::msg::Image::SharedPtr RosCamera::GetRosImage ( )

Camera output ROS image getter method.

Returns
Camera output ROS image

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