#include <gazebo_optical_flow_plugin.h>
Public Member Functions | |
virtual void | Load (sensors::SensorPtr _sensor, sdf::ElementPtr _sdf) |
virtual void | OnNewFrame (const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format) |
OpticalFlowPlugin () | |
virtual | ~OpticalFlowPlugin () |
Protected Attributes | |
rendering::CameraPtr | camera |
unsigned int | depth |
std::string | format |
unsigned int | height |
sensors::CameraSensorPtr | parentSensor |
unsigned int | width |
Private Attributes | |
OpticalFlowOpenCV * | _optical_flow |
int | dt_us |
double | first_frame_time |
float | focal_length |
Mat | frame_gray |
double | frame_time |
uint32_t | frame_time_us |
float | hfov |
std::string | namespace_ |
event::ConnectionPtr | newFrameConnection |
transport::NodePtr | node_handle_ |
double | old_frame_time |
Mat | old_gray |
opticalFlow_msgs::msgs::opticalFlow | opticalFlow_message |
transport::PublisherPtr | opticalFlow_pub_ |
float | rate |
boost::timer::cpu_timer | timer_ |
Definition at line 45 of file gazebo_optical_flow_plugin.h.
Definition at line 42 of file gazebo_optical_flow_plugin.cpp.
OpticalFlowPlugin::~OpticalFlowPlugin | ( | ) | [virtual] |
Definition at line 49 of file gazebo_optical_flow_plugin.cpp.
void OpticalFlowPlugin::Load | ( | sensors::SensorPtr | _sensor, |
sdf::ElementPtr | _sdf | ||
) | [virtual] |
Definition at line 56 of file gazebo_optical_flow_plugin.cpp.
void OpticalFlowPlugin::OnNewFrame | ( | const unsigned char * | _image, |
unsigned int | _width, | ||
unsigned int | _height, | ||
unsigned int | _depth, | ||
const std::string & | _format | ||
) | [virtual] |
Definition at line 126 of file gazebo_optical_flow_plugin.cpp.
OpticalFlowOpenCV* gazebo::OpticalFlowPlugin::_optical_flow [private] |
Definition at line 70 of file gazebo_optical_flow_plugin.h.
rendering::CameraPtr gazebo::OpticalFlowPlugin::camera [protected] |
Definition at line 59 of file gazebo_optical_flow_plugin.h.
unsigned int gazebo::OpticalFlowPlugin::depth [protected] |
Definition at line 56 of file gazebo_optical_flow_plugin.h.
int gazebo::OpticalFlowPlugin::dt_us [private] |
Definition at line 75 of file gazebo_optical_flow_plugin.h.
double gazebo::OpticalFlowPlugin::first_frame_time [private] |
Definition at line 77 of file gazebo_optical_flow_plugin.h.
float gazebo::OpticalFlowPlugin::focal_length [private] |
Definition at line 76 of file gazebo_optical_flow_plugin.h.
std::string gazebo::OpticalFlowPlugin::format [protected] |
Definition at line 57 of file gazebo_optical_flow_plugin.h.
Mat gazebo::OpticalFlowPlugin::frame_gray [private] |
Definition at line 64 of file gazebo_optical_flow_plugin.h.
double gazebo::OpticalFlowPlugin::frame_time [private] |
Definition at line 78 of file gazebo_optical_flow_plugin.h.
uint32_t gazebo::OpticalFlowPlugin::frame_time_us [private] |
Definition at line 80 of file gazebo_optical_flow_plugin.h.
unsigned int gazebo::OpticalFlowPlugin::height [protected] |
Definition at line 56 of file gazebo_optical_flow_plugin.h.
float gazebo::OpticalFlowPlugin::hfov [private] |
Definition at line 73 of file gazebo_optical_flow_plugin.h.
Definition at line 68 of file gazebo_optical_flow_plugin.h.
Definition at line 62 of file gazebo_optical_flow_plugin.h.
transport::NodePtr gazebo::OpticalFlowPlugin::node_handle_ [private] |
Definition at line 66 of file gazebo_optical_flow_plugin.h.
double gazebo::OpticalFlowPlugin::old_frame_time [private] |
Definition at line 79 of file gazebo_optical_flow_plugin.h.
Mat gazebo::OpticalFlowPlugin::old_gray [private] |
Definition at line 63 of file gazebo_optical_flow_plugin.h.
opticalFlow_msgs::msgs::opticalFlow gazebo::OpticalFlowPlugin::opticalFlow_message [private] |
Definition at line 67 of file gazebo_optical_flow_plugin.h.
transport::PublisherPtr gazebo::OpticalFlowPlugin::opticalFlow_pub_ [private] |
Definition at line 65 of file gazebo_optical_flow_plugin.h.
sensors::CameraSensorPtr gazebo::OpticalFlowPlugin::parentSensor [protected] |
Definition at line 58 of file gazebo_optical_flow_plugin.h.
float gazebo::OpticalFlowPlugin::rate [private] |
Definition at line 74 of file gazebo_optical_flow_plugin.h.
boost::timer::cpu_timer gazebo::OpticalFlowPlugin::timer_ [private] |
Definition at line 69 of file gazebo_optical_flow_plugin.h.
unsigned int gazebo::OpticalFlowPlugin::width [protected] |
Definition at line 56 of file gazebo_optical_flow_plugin.h.