#include <cstring>
#include <stdexcept>
#include <boost/format.hpp>
#include <tf/transform_datatypes.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/image_encodings.h>
#include <sensor_msgs/distortion_models.h>
#include <visp/vpImage.h>
#include <visp/vpTranslationVector.h>
#include <visp/vpQuaternionVector.h>
#include <visp/vpMbEdgeTracker.h>
#include <visp/vpMbKltTracker.h>
#include "conversion.hh"
Go to the source code of this file.
Defines | |
#define | protected public |
#define | protected public |
Functions | |
void | convertInitRequestToVpKltOpencv (const visp_tracker::Init::Request &req, vpMbTracker *tracker, vpKltOpencv &klt) |
void | convertInitRequestToVpMe (const visp_tracker::Init::Request &req, vpMbTracker *tracker, vpMe &moving_edge) |
void | convertModelBasedSettingsConfigToVpKltOpencv (const visp_tracker::ModelBasedSettingsConfig &config, vpKltOpencv &klt, vpMbTracker *tracker) |
void | convertModelBasedSettingsConfigToVpMe (const visp_tracker::ModelBasedSettingsConfig &config, vpMe &moving_edge, vpMbTracker *tracker) |
void | convertVpKltOpencvToInitRequest (const vpKltOpencv &klt, const vpMbTracker *tracker, visp_tracker::Init &srv) |
void | convertVpKltOpencvToModelBasedSettingsConfig (const vpKltOpencv &klt, const vpMbTracker *tracker, visp_tracker::ModelBasedSettingsConfig &config) |
void | convertVpMeToInitRequest (const vpMe &moving_edge, const vpMbTracker *tracker, visp_tracker::Init &srv) |
void | convertVpMeToModelBasedSettingsConfig (const vpMe &moving_edge, const vpMbTracker *tracker, visp_tracker::ModelBasedSettingsConfig &config) |
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. | |
void | transformToVpHomogeneousMatrix (vpHomogeneousMatrix &dst, const geometry_msgs::Transform &src) |
void | transformToVpHomogeneousMatrix (vpHomogeneousMatrix &dst, const geometry_msgs::Pose &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. | |
void | vpHomogeneousMatrixToTransform (geometry_msgs::Transform &dst, const vpHomogeneousMatrix &src) |
#define protected public |
Definition at line 20 of file conversion.cpp.
#define protected public |
Definition at line 20 of file conversion.cpp.
void convertInitRequestToVpKltOpencv | ( | const visp_tracker::Init::Request & | req, |
vpMbTracker * | tracker, | ||
vpKltOpencv & | klt | ||
) |
Definition at line 305 of file conversion.cpp.
void convertInitRequestToVpMe | ( | const visp_tracker::Init::Request & | req, |
vpMbTracker * | tracker, | ||
vpMe & | moving_edge | ||
) |
Definition at line 262 of file conversion.cpp.
void convertModelBasedSettingsConfigToVpKltOpencv | ( | const visp_tracker::ModelBasedSettingsConfig & | config, |
vpKltOpencv & | klt, | ||
vpMbTracker * | tracker | ||
) |
Definition at line 198 of file conversion.cpp.
void convertModelBasedSettingsConfigToVpMe | ( | const visp_tracker::ModelBasedSettingsConfig & | config, |
vpMe & | moving_edge, | ||
vpMbTracker * | tracker | ||
) |
Definition at line 145 of file conversion.cpp.
void convertVpKltOpencvToInitRequest | ( | const vpKltOpencv & | klt, |
const vpMbTracker * | tracker, | ||
visp_tracker::Init & | srv | ||
) |
Definition at line 286 of file conversion.cpp.
void convertVpKltOpencvToModelBasedSettingsConfig | ( | const vpKltOpencv & | klt, |
const vpMbTracker * | tracker, | ||
visp_tracker::ModelBasedSettingsConfig & | config | ||
) |
Definition at line 219 of file conversion.cpp.
void convertVpMeToInitRequest | ( | const vpMe & | moving_edge, |
const vpMbTracker * | tracker, | ||
visp_tracker::Init & | srv | ||
) |
Definition at line 238 of file conversion.cpp.
void convertVpMeToModelBasedSettingsConfig | ( | const vpMe & | moving_edge, |
const vpMbTracker * | tracker, | ||
visp_tracker::ModelBasedSettingsConfig & | config | ||
) |
Definition at line 174 of file conversion.cpp.
void initializeVpCameraFromCameraInfo | ( | vpCameraParameters & | cam, |
sensor_msgs::CameraInfoConstPtr | info | ||
) |
Definition at line 324 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 26 of file conversion.cpp.
void transformToVpHomogeneousMatrix | ( | vpHomogeneousMatrix & | dst, |
const geometry_msgs::Transform & | src | ||
) |
Definition at line 104 of file conversion.cpp.
void transformToVpHomogeneousMatrix | ( | vpHomogeneousMatrix & | dst, |
const geometry_msgs::Pose & | src | ||
) |
Definition at line 112 of file conversion.cpp.
void transformToVpHomogeneousMatrix | ( | vpHomogeneousMatrix & | dst, |
const tf::Transform & | src | ||
) |
Definition at line 131 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 75 of file conversion.cpp.
void vpHomogeneousMatrixToTransform | ( | geometry_msgs::Transform & | dst, |
const vpHomogeneousMatrix & | src | ||
) |
Definition at line 88 of file conversion.cpp.