Functions
comthread.cpp File Reference

Thread for ROS communication. More...

#include "comthread.h"
#include <ros/ros.h>
#include <QDebug>
#include <QDir>
#include <QPoint>
#include <QImage>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/cloud_viewer.h>
#include <pcl/filters/passthrough.h>
#include "re_visionmodelcreator.h"
Include dependency graph for comthread.cpp:

Go to the source code of this file.

Functions

int read_binary_PCL (const std::string &filename, pcl::PointCloud< PointType >::Ptr cloud)

Detailed Description

Thread for ROS communication.

Thread class for communicating via ROS messages, i.e. for receiving colored point clouds.

This file is part of the RoboEarth ROS re_object_recorder package.

It file was originally created for RoboEarth. The research leading to these results has received funding from the European Union Seventh Framework Programme FP7/2007-2013 under grant agreement no248942 RoboEarth.

Copyright (C) 2011 by by Andreas Koch, University of Stuttgart

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

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 OWNER 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.

Author:
Andreas Koch
Daniel Di Marco
Version:
1.0
Date:
2011
RoboEarth.org_logo.gif

Definition in file comthread.cpp.


Function Documentation

int read_binary_PCL ( const std::string &  filename,
pcl::PointCloud< PointType >::Ptr  cloud 
)

Load a pointcloud from a pcd file. Checks whether the .pcd has padding after the header, and removes it it if needed. (binary PCD files in versions < 1.0 required padding, PCL >= version 1.0 does not)

Parameters:
filenamepcd file to load
cloudpointer to which the loaded cloud is written
Returns:
0 for success, != 0 otherwise

Definition at line 150 of file comthread.cpp.



re_object_recorder
Author(s): Andreas Koch
autogenerated on Sun Jan 5 2014 11:39:13