Classes | Namespaces | Typedefs | Functions
conversions.h File Reference
#include <map>
#include <ros/ros.h>
#include <ros/console.h>
#include <lvr2/geometry/BaseVector.hpp>
#include <lvr2/io/PointBuffer.hpp>
#include <lvr2/io/MeshBuffer.hpp>
#include <lvr2/geometry/BaseMesh.hpp>
#include <lvr2/attrmaps/AttrMaps.hpp>
#include <lvr2/io/Model.hpp>
#include <lvr2/io/PLYIO.hpp>
#include <lvr2/io/DataStruct.hpp>
#include <lvr2/io/ModelFactory.hpp>
#include <lvr2/texture/Texture.hpp>
#include <lvr2/geometry/HalfEdgeMesh.hpp>
#include <std_msgs/String.h>
#include <sensor_msgs/PointCloud2.h>
#include <sensor_msgs/fill_image.h>
#include <mesh_msgs/MeshFaceCluster.h>
#include <mesh_msgs/MeshMaterial.h>
#include <mesh_msgs/MeshTriangleIndices.h>
#include <mesh_msgs/MeshGeometry.h>
#include <mesh_msgs/MeshGeometryStamped.h>
#include <mesh_msgs/MeshMaterialsStamped.h>
#include <mesh_msgs/MeshVertexColors.h>
#include <mesh_msgs/MeshVertexColorsStamped.h>
#include <mesh_msgs/MeshVertexCostsStamped.h>
#include <mesh_msgs/MeshVertexTexCoords.h>
#include <mesh_msgs/MeshTexture.h>
#include <sensor_msgs/point_cloud2_iterator.h>
Include dependency graph for conversions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mesh_msgs_conversions::MaterialGroup
 

Namespaces

 mesh_msgs_conversions
 

Typedefs

typedef std::vector< boost::shared_ptr< MaterialGroup > > mesh_msgs_conversions::GroupVector
 
typedef boost::shared_ptr< MaterialGroup > mesh_msgs_conversions::MaterialGroupPtr
 
using mesh_msgs_conversions::PointBuffer = lvr2::PointBuffer
 
using mesh_msgs_conversions::PointBufferPtr = lvr2::PointBufferPtr
 
using mesh_msgs_conversions::Vec = lvr2::BaseVector< float >
 

Functions

bool mesh_msgs_conversions::fromMeshBufferToMeshGeometryMessage (const lvr2::MeshBufferPtr &buffer, mesh_msgs::MeshGeometry &mesh_geometry)
 
bool mesh_msgs_conversions::fromMeshBufferToMeshMessages (const lvr2::MeshBufferPtr &buffer, mesh_msgs::MeshGeometry &mesh_geometry, mesh_msgs::MeshMaterials &mesh_materials, mesh_msgs::MeshVertexColors &mesh_vertex_colors, boost::optional< std::vector< mesh_msgs::MeshTexture > & > texture_cache, std::string mesh_uuid)
 Convert lvr2::MeshBuffer to various messages for services. More...
 
bool mesh_msgs_conversions::fromMeshGeometryMessageToMeshBuffer (const mesh_msgs::MeshGeometry &mesh_geometry, const lvr2::MeshBufferPtr &buffer)
 Convert mesh_msgs::MeshGeometry to lvr2::MeshBuffer. More...
 
bool mesh_msgs_conversions::fromMeshGeometryToMeshBuffer (const mesh_msgs::MeshGeometry &mesh_geometry, lvr2::MeshBuffer &buffer)
 
bool mesh_msgs_conversions::fromMeshGeometryToMeshBuffer (const mesh_msgs::MeshGeometry &mesh_geometry, lvr2::MeshBufferPtr &buffer_ptr)
 
bool mesh_msgs_conversions::fromMeshGeometryToMeshBuffer (const mesh_msgs::MeshGeometryConstPtr &mesh_geometry_ptr, lvr2::MeshBuffer &buffer)
 
bool mesh_msgs_conversions::fromMeshGeometryToMeshBuffer (const mesh_msgs::MeshGeometryConstPtr &mesh_geometry_ptr, lvr2::MeshBufferPtr &buffer_ptr)
 
bool mesh_msgs_conversions::fromMeshGeometryToMeshBuffer (const mesh_msgs::MeshGeometryPtr &mesh_geometry_ptr, lvr2::MeshBuffer &buffer)
 
bool mesh_msgs_conversions::fromMeshGeometryToMeshBuffer (const mesh_msgs::MeshGeometryPtr &mesh_geometry_ptr, lvr2::MeshBufferPtr &buffer_ptr)
 
bool mesh_msgs_conversions::fromPointCloud2ToPointBuffer (const sensor_msgs::PointCloud2 &cloud, PointBuffer &buffer)
 
void mesh_msgs_conversions::PointBufferToPointCloud2 (const lvr2::PointBufferPtr &buffer, std::string frame, sensor_msgs::PointCloud2Ptr &cloud)
 converts lvr2::Pointbuffer to pointcloud2. Every channel is added as a pointfield. More...
 
void mesh_msgs_conversions::PointCloud2ToPointBuffer (const sensor_msgs::PointCloud2Ptr &cloud, lvr2::PointBufferPtr &buffer)
 converts pointcloud2 to a newly created Pointerbuffer. Every pointfield is written into its own channel. More...
 
bool mesh_msgs_conversions::readMeshBuffer (lvr2::MeshBufferPtr &buffer, string path)
 Creates a LVR-MeshBufferPointer from a file. More...
 
template<typename CoordType >
const mesh_msgs::MeshGeometry mesh_msgs_conversions::toMeshGeometry (const lvr2::HalfEdgeMesh< lvr2::BaseVector< CoordType >> &hem, const lvr2::VertexMap< lvr2::Normal< CoordType >> &normals=lvr2::DenseVertexMap< lvr2::Normal< CoordType >>())
 
template<typename CoordType >
const mesh_msgs::MeshGeometryStamped mesh_msgs_conversions::toMeshGeometryStamped (const lvr2::HalfEdgeMesh< lvr2::BaseVector< CoordType >> &hem, const std::string &frame_id, const std::string &uuid, const lvr2::VertexMap< lvr2::Normal< CoordType >> &normals=lvr2::DenseVertexMap< lvr2::Normal< CoordType >>(), const ros::Time &stamp=ros::Time::now())
 
const mesh_msgs::MeshVertexCosts mesh_msgs_conversions::toVertexCosts (const lvr2::DenseVertexMap< float > &costs)
 
const mesh_msgs::MeshVertexCosts mesh_msgs_conversions::toVertexCosts (const lvr2::VertexMap< float > &costs, const size_t num_values, const float default_value)
 
const mesh_msgs::MeshVertexCostsStamped mesh_msgs_conversions::toVertexCostsStamped (const lvr2::DenseVertexMap< float > &costs, const std::string &name, const std::string &frame_id, const std::string &uuid, const ros::Time &stamp=ros::Time::now())
 
const mesh_msgs::MeshVertexCostsStamped mesh_msgs_conversions::toVertexCostsStamped (const lvr2::VertexMap< float > &costs, const size_t num_values, const float default_value, const std::string &name, const std::string &frame_id, const std::string &uuid, const ros::Time &stamp=ros::Time::now())
 
bool mesh_msgs_conversions::writeMeshBuffer (lvr2::MeshBufferPtr &mesh, string path)
 Writes a LVR-MeshBufferPointer to a file. More...
 


mesh_msgs_conversions
Author(s): Sebastian Pütz , Henning Deeken
autogenerated on Sun Jan 21 2024 04:06:17