#include <boost/optional.hpp>
#include <ros/ros.h>
#include <geometry_msgs/Transform.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/CameraInfo.h>
#include <tf/transform_datatypes.h>
#include <visp_tracker/Init.h>
#include <visp3/core/vpConfig.h>
#include <visp3/mbt/vpMbGenericTracker.h>
#include <visp3/core/vpHomogeneousMatrix.h>
#include <visp3/core/vpCameraParameters.h>
#include <visp3/me/vpMe.h>
#include <visp3/klt/vpKltOpencv.h>
Go to the source code of this file.
Functions | |
void | convertInitRequestToVpKltOpencv (const visp_tracker::Init::Request &req, vpMbGenericTracker &tracker, vpKltOpencv &klt) |
void | convertInitRequestToVpMbTracker (const visp_tracker::Init::Request &req, vpMbGenericTracker &tracker) |
void | convertInitRequestToVpMe (const visp_tracker::Init::Request &req, vpMbGenericTracker &tracker, vpMe &moving_edge) |
template<class ConfigType > | |
void | convertModelBasedSettingsConfigToVpKltOpencv (const ConfigType &config, vpKltOpencv &klt, vpMbGenericTracker &tracker) |
template<class ConfigType > | |
void | convertModelBasedSettingsConfigToVpMbTracker (const ConfigType &config, vpMbGenericTracker &tracker) |
template<class ConfigType > | |
void | convertModelBasedSettingsConfigToVpMe (const ConfigType &config, vpMe &moving_edge, vpMbGenericTracker &tracker) |
void | convertVpKltOpencvToInitRequest (const vpKltOpencv &klt, const vpMbGenericTracker &tracker, visp_tracker::Init &srv) |
template<class ConfigType > | |
void | convertVpKltOpencvToModelBasedSettingsConfig (const vpKltOpencv &klt, const vpMbGenericTracker &tracker, ConfigType &config) |
std::string | convertVpKltOpencvToRosMessage (const vpMbGenericTracker &tracker, const vpKltOpencv &klt) |
void | convertVpMbTrackerToInitRequest (const vpMbGenericTracker &tracker, visp_tracker::Init &srv) |
template<class ConfigType > | |
void | convertVpMbTrackerToModelBasedSettingsConfig (const vpMbGenericTracker &tracker, ConfigType &config) |
std::string | convertVpMbTrackerToRosMessage (const vpMbGenericTracker &tracker) |
void | convertVpMeToInitRequest (const vpMe &moving_edge, const vpMbGenericTracker &tracker, visp_tracker::Init &srv) |
template<class ConfigType > | |
void | convertVpMeToModelBasedSettingsConfig (const vpMe &moving_edge, const vpMbGenericTracker &tracker, ConfigType &config) |
std::string | convertVpMeToRosMessage (const vpMbGenericTracker &tracker, const vpMe &moving_edge) |
void | initializeVpCameraFromCameraInfo (vpCameraParameters &cam, sensor_msgs::CameraInfoConstPtr info) |
void | rosImageToVisp (vpImage< unsigned char > &dst, const sensor_msgs::Image::ConstPtr &src) |
Convert a ROS image into a ViSP one. More... | |
void | transformToVpHomogeneousMatrix (vpHomogeneousMatrix &dst, const geometry_msgs::Transform &src) |
void | transformToVpHomogeneousMatrix (vpHomogeneousMatrix &dst, const tf::Transform &src) |
void | vispImageToRos (sensor_msgs::Image &dst, const vpImage< unsigned char > &src) |
Convert a ViSP image into a ROS one. More... | |
void | vpHomogeneousMatrixToTransform (geometry_msgs::Transform &dst, const vpHomogeneousMatrix &src) |
void convertInitRequestToVpKltOpencv | ( | const visp_tracker::Init::Request & | req, |
vpMbGenericTracker & | tracker, | ||
vpKltOpencv & | klt | ||
) |
Definition at line 240 of file conversion.cpp.
void convertInitRequestToVpMbTracker | ( | const visp_tracker::Init::Request & | req, |
vpMbGenericTracker & | tracker | ||
) |
Definition at line 186 of file conversion.cpp.
void convertInitRequestToVpMe | ( | const visp_tracker::Init::Request & | req, |
vpMbGenericTracker & | tracker, | ||
vpMe & | moving_edge | ||
) |
Definition at line 207 of file conversion.cpp.
void convertModelBasedSettingsConfigToVpKltOpencv | ( | const ConfigType & | config, |
vpKltOpencv & | klt, | ||
vpMbGenericTracker & | tracker | ||
) |
Definition at line 144 of file conversion.hh.
void convertModelBasedSettingsConfigToVpMbTracker | ( | const ConfigType & | config, |
vpMbGenericTracker & | tracker | ||
) |
Definition at line 93 of file conversion.hh.
void convertModelBasedSettingsConfigToVpMe | ( | const ConfigType & | config, |
vpMe & | moving_edge, | ||
vpMbGenericTracker & | tracker | ||
) |
Definition at line 109 of file conversion.hh.
void convertVpKltOpencvToInitRequest | ( | const vpKltOpencv & | klt, |
const vpMbGenericTracker & | tracker, | ||
visp_tracker::Init & | srv | ||
) |
Definition at line 226 of file conversion.cpp.
void convertVpKltOpencvToModelBasedSettingsConfig | ( | const vpKltOpencv & | klt, |
const vpMbGenericTracker & | tracker, | ||
ConfigType & | config | ||
) |
Definition at line 161 of file conversion.hh.
std::string convertVpKltOpencvToRosMessage | ( | const vpMbGenericTracker & | tracker, |
const vpKltOpencv & | klt | ||
) |
Definition at line 106 of file conversion.cpp.
void convertVpMbTrackerToInitRequest | ( | const vpMbGenericTracker & | tracker, |
visp_tracker::Init & | srv | ||
) |
Definition at line 179 of file conversion.cpp.
void convertVpMbTrackerToModelBasedSettingsConfig | ( | const vpMbGenericTracker & | tracker, |
ConfigType & | config | ||
) |
Definition at line 101 of file conversion.hh.
std::string convertVpMbTrackerToRosMessage | ( | const vpMbGenericTracker & | tracker | ) |
Definition at line 81 of file conversion.cpp.
void convertVpMeToInitRequest | ( | const vpMe & | moving_edge, |
const vpMbGenericTracker & | tracker, | ||
visp_tracker::Init & | srv | ||
) |
Definition at line 193 of file conversion.cpp.
void convertVpMeToModelBasedSettingsConfig | ( | const vpMe & | moving_edge, |
const vpMbGenericTracker & | tracker, | ||
ConfigType & | config | ||
) |
Definition at line 129 of file conversion.hh.
std::string convertVpMeToRosMessage | ( | const vpMbGenericTracker & | tracker, |
const vpMe & | moving_edge | ||
) |
Definition at line 90 of file conversion.cpp.
void initializeVpCameraFromCameraInfo | ( | vpCameraParameters & | cam, |
sensor_msgs::CameraInfoConstPtr | info | ||
) |
Definition at line 256 of file conversion.cpp.
void rosImageToVisp | ( | vpImage< unsigned char > & | dst, |
const sensor_msgs::Image::ConstPtr & | src | ||
) |
Convert a ROS image into a ViSP one.
This function copy a ROS image into a ViSP image. If the size are not matching, the ViSP image will be resized.
dst | ViSP destination image |
src | ROS source image |
Definition at line 21 of file conversion.cpp.
void transformToVpHomogeneousMatrix | ( | vpHomogeneousMatrix & | dst, |
const geometry_msgs::Transform & | src | ||
) |
Definition at line 138 of file conversion.cpp.
void transformToVpHomogeneousMatrix | ( | vpHomogeneousMatrix & | dst, |
const tf::Transform & | src | ||
) |
Definition at line 146 of file conversion.cpp.
void vispImageToRos | ( | sensor_msgs::Image & | dst, |
const vpImage< unsigned char > & | src | ||
) |
Convert a ViSP image into a ROS one.
This function copy a ViSP image into a ROS image. The whole content of the ROS image will be reset except the following field which will not be set:
dst | ROS destination image |
src | ViSP source image |
Definition at line 67 of file conversion.cpp.
void vpHomogeneousMatrixToTransform | ( | geometry_msgs::Transform & | dst, |
const vpHomogeneousMatrix & | src | ||
) |
Definition at line 122 of file conversion.cpp.