ed_gui_server
|
#include "gui_server_plugin.h"
#include <ros/console.h>
#include <ros/advertise_service_options.h>
#include <ros/node_handle.h>
#include <ed/world_model.h>
#include <ed/entity.h>
#include <ed/measurement.h>
#include <ed/rendering.h>
#include <ed/io/filesystem/write.h>
#include <ed/error_context.h>
#include <ed/models/shape_loader.h>
#include <geolib/datatypes.h>
#include <geolib/Shape.h>
#include <geolib/CompositeShape.h>
#include <geolib/ros/msg_conversions.h>
#include <geolib/sensors/DepthCamera.h>
#include <rgbd/ros/conversions.h>
#include <tue/config/configuration.h>
#include <tue/config/loaders/yaml.h>
#include <tue/config/reader.h>
#include <ed_gui_server_msgs/EntityInfos.h>
#include <ed_gui_server_msgs/Mesh.h>
#include <boost/filesystem.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <memory>
#include <vector>
#include <sstream>
Go to the source code of this file.
Enumerations | |
enum | ImageCompressionType { IMAGE_COMPRESSION_JPG, IMAGE_COMPRESSION_PNG } |
Functions | |
void | CompositeShapeToMesh (const geo::CompositeShapeConstPtr &composite, ed_gui_server_msgs::Mesh &mesh) |
void | getPersonShape (geo::CompositeShapePtr &composite) |
bool | imageToBinary (const cv::Mat &image, std::vector< unsigned char > &data, ImageCompressionType compression_type) |
void | minMaxMesh (const geo::Mesh &mesh, const geo::Pose3D &pose, geo::Vec2 &p_min, geo::Vec2 &p_max) |
Update min/max bounds with a mesh. More... | |
void | shapeToMesh (const geo::ShapeConstPtr &shape, ed_gui_server_msgs::Mesh &mesh) |
enum ImageCompressionType |
Enumerator | |
---|---|
IMAGE_COMPRESSION_JPG | |
IMAGE_COMPRESSION_PNG |
Definition at line 343 of file gui_server_plugin.cpp.
void CompositeShapeToMesh | ( | const geo::CompositeShapeConstPtr & | composite, |
ed_gui_server_msgs::Mesh & | mesh | ||
) |
Definition at line 104 of file gui_server_plugin.cpp.
void getPersonShape | ( | geo::CompositeShapePtr & | composite | ) |
Definition at line 38 of file gui_server_plugin.cpp.
bool imageToBinary | ( | const cv::Mat & | image, |
std::vector< unsigned char > & | data, | ||
ImageCompressionType | compression_type | ||
) |
Definition at line 349 of file gui_server_plugin.cpp.
void minMaxMesh | ( | const geo::Mesh & | mesh, |
const geo::Pose3D & | pose, | ||
geo::Vec2 & | p_min, | ||
geo::Vec2 & | p_max | ||
) |
Update min/max bounds with a mesh.
mesh | Mesh to update the bounds with |
pose | Pose of the mesh |
p_min | Min boundary |
p_max | Max boundary |
Definition at line 58 of file gui_server_plugin.cpp.
void shapeToMesh | ( | const geo::ShapeConstPtr & | shape, |
ed_gui_server_msgs::Mesh & | mesh | ||
) |
Definition at line 74 of file gui_server_plugin.cpp.