40 buffers = std::vector<BufferPtr>();
47 throw std::runtime_error(
"Cl components have not yet been initilized!");
55 throw std::runtime_error(
56 "Cl components or program kernel have not yet been initilized!");
71 throw std::runtime_error(
"Cl components, program kernel or buffers have " 72 "not yet been initilized!");
78 return cloud.makeShared();
void setMetaData(const MetaData &md)
std::vector< BufferPtr > buffers
void read_ocl_buffer(QueuePtr queue, BufferPtr buffer, std::vector< T > &array)
void fill_buffer(const unsigned char *image)
ContextPtr get_ocl_context(DevicePtr device)
QueuePtr create_ocl_command_queue(ContextPtr context, DevicePtr device)
static const int R_ACCESS
DevicePtr get_ocl_default_device()
StringPtr load_kernel_definition(const std::string &path)
void program_kernel(const std::string &kernel_function)
void write_ocl_buffer(QueuePtr queue, BufferPtr buffer, std::vector< T > &array)
void setTFData(const Transform &tf)
PointCloud::Ptr PointCloudPtr
Shortcut for a pointer of a XYZ Point cloud of the pcl library.
StringPtr kernel_definition
PointCloudPtr convert_to_pcl(const sensor_msgs::Image::ConstPtr rawImgPtr)
void init_CL(const std::string &kernel_file)
KernelPtr create_ocl_kernel(ProgramPtr program, const std::string &program_name)
static const int RW_ACCESS
This namespace is used by the nodelets inside our package pses_kinect_utilities.
pcl::PointCloud< pcl::PointXYZ > PointCloud
Shortcut for a XYZ Point cloud of the pcl library.
ProgramPtr build_ocl_program(DevicePtr device, ContextPtr context, StringPtr kernel)