Classes | Typedefs | Functions | Variables
halcon_bridge Namespace Reference

Classes

class  Exception
class  HalconImage
 Image message class that is interoperable with sensor_msgs/Image but uses a HImage representation for the image data. More...
class  HalconPointcloud
 PointCloud message class that is interoperable with sensor_msgs/PointCloud2 but uses a HObjectModel3D representation for the point cloud data. More...

Typedefs

typedef boost::shared_ptr
< HalconImage
HalconImagePtr
typedef boost::shared_ptr
< HalconPointcloud
HalconPointcloudPtr

Functions

const char * getColorChannelOrder (const std::string &encoding)
const char * getHalconChannelLength (const std::string &encoding)
const char * getHalconEncoding (const std::string &encoding)
int getHalconTypeSize (const std::string &type)
int getSizeFromDatatype (int datatype)
HalconPointcloudPtr toHalconCopy (const sensor_msgs::PointCloud2ConstPtr &source)
 Convert a sensor_msgs::PointCloud2 message to a Halcon-compatible HObjectModel3D, copying the point cloud data.
HalconImagePtr toHalconCopy (const sensor_msgs::ImageConstPtr &source)
 Convert a sensor_msgs::Image message to a Halcon-compatible HImage, copying the image data.
HalconPointcloudPtr toHalconCopy (const sensor_msgs::PointCloud2 &source)
 Convert a sensor_msgs::PointCloud2 message to a Halcon-compatible HObjectModel3D, copying the point cloud data.
HalconImagePtr toHalconCopy (const sensor_msgs::Image &source)
 Convert a sensor_msgs::Image message to a Halcon-compatible HImage, copying the image data.

Variables

const char * BGR = "bgr"
const char * INVALID = "invalid"
const char * RGB = "rgb"

Detailed Description

Copyright (c) 2016, Allgeyer Tobias All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Typedef Documentation

typedef boost::shared_ptr<HalconImage> halcon_bridge::HalconImagePtr

Definition at line 32 of file halcon_image.h.

Definition at line 27 of file halcon_pointcloud.h.


Function Documentation

const char* halcon_bridge::getColorChannelOrder ( const std::string &  encoding)

Definition at line 72 of file halcon_image.cpp.

const char* halcon_bridge::getHalconChannelLength ( const std::string &  encoding)

Definition at line 54 of file halcon_image.cpp.

const char* halcon_bridge::getHalconEncoding ( const std::string &  encoding)

Definition at line 38 of file halcon_image.cpp.

int halcon_bridge::getHalconTypeSize ( const std::string &  type)

Definition at line 28 of file halcon_image.cpp.

int halcon_bridge::getSizeFromDatatype ( int  datatype)

Definition at line 26 of file halcon_pointcloud.cpp.

HalconPointcloudPtr halcon_bridge::toHalconCopy ( const sensor_msgs::PointCloud2ConstPtr &  source)

Convert a sensor_msgs::PointCloud2 message to a Halcon-compatible HObjectModel3D, copying the point cloud data.

Parameters:
sourceA shared_ptr to a sensor_msgs::PointCloud2 message

Definition at line 171 of file halcon_pointcloud.cpp.

HalconImagePtr halcon_bridge::toHalconCopy ( const sensor_msgs::ImageConstPtr &  source)

Convert a sensor_msgs::Image message to a Halcon-compatible HImage, copying the image data.

Parameters:
sourceA shared_ptr to a sensor_msgs::Image message

Definition at line 193 of file halcon_image.cpp.

HalconPointcloudPtr halcon_bridge::toHalconCopy ( const sensor_msgs::PointCloud2 &  source)

Convert a sensor_msgs::PointCloud2 message to a Halcon-compatible HObjectModel3D, copying the point cloud data.

Parameters:
sourceA sensor_msgs::PointCloud2 message

Definition at line 175 of file halcon_pointcloud.cpp.

HalconImagePtr halcon_bridge::toHalconCopy ( const sensor_msgs::Image &  source)

Convert a sensor_msgs::Image message to a Halcon-compatible HImage, copying the image data.

Parameters:
sourceA sensor_msgs::Image message

Definition at line 197 of file halcon_image.cpp.


Variable Documentation

const char* halcon_bridge::BGR = "bgr"

Definition at line 26 of file halcon_image.cpp.

const char* halcon_bridge::INVALID = "invalid"

Definition at line 24 of file halcon_image.cpp.

const char* halcon_bridge::RGB = "rgb"

Definition at line 25 of file halcon_image.cpp.



asr_halcon_bridge
Author(s): Allgeyer Tobias
autogenerated on Thu Jun 6 2019 18:32:11