rgbd
|
Classes | |
struct | BufferHeader |
class | Client |
Client which uses the interfaces of ClientRGBD and ClientSHM. More... | |
class | ClientRGBD |
Client which subscribes to RGBD topic. More... | |
class | ClientROS |
Client which subscribes to regular ROS image topics. More... | |
class | ClientROSBase |
Client which subscribes to regular ROS image topics. More... | |
class | ClientRosNodelet |
class | ClientSHM |
Client which uses shared memory, requires a server on the same machine. More... | |
class | Image |
class | ROSToRGBDNodelet |
class | Server |
Server which provides interfaces of ServerRGBD and ServerSHM. More... | |
class | ServerRGBD |
Server which provides RGBD topic and RGBD service. More... | |
class | ServerROS |
Server which publishes ROS rgb image, depth image and pointcloud messages. More... | |
class | ServerSHM |
Server which uses shared memory, this only works for clients on the same machine. More... | |
class | View |
Typedefs | |
typedef std::shared_ptr< const Image > | ImageConstPtr |
typedef std::shared_ptr< Image > | ImagePtr |
typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, sensor_msgs::Image > | RGBDApproxPolicy |
Enumerations | |
enum | CameraModelType { CAMERA_MODEL_NONE = 0, CAMERA_MODEL_PINHOLE = 1 } |
enum | DepthStorageType { DEPTH_STORAGE_NONE = 0, DEPTH_STORAGE_LOSSLESS = 1, DEPTH_STORAGE_PNG = 2 } |
enum | RGBStorageType { RGB_STORAGE_NONE = 0, RGB_STORAGE_LOSSLESS = 1, RGB_STORAGE_JPG = 2 } |
Functions | |
bool | convert (const cv::Mat &image, const geo::DepthCamera &cam_model, sensor_msgs::Image &image_msg, sensor_msgs::CameraInfo &cam_model_msg) |
Convert either a rgb or depth image to image and CameraInfo message. Also rectifies the image. More... | |
bool | convert (const cv::Mat &image, sensor_msgs::Image &image_msg) |
Convert either a rgb or depth image, cv::Mat, to an image message. More... | |
bool | convert (const rgbd_msgs::RGBDConstPtr &msg, rgbd::Image *&image) |
Convert rgbd message to an Image. More... | |
bool | deserialize (tue::serialization::InputArchive &a, Image &image) |
rgbd::Image | generateRandomImage () |
std::string | get_hostname () |
Get the hostname of the current machine. More... | |
std::ostream & | operator<< (std::ostream &out, const rgbd::Image &image) |
void | pubHostnameThreadFunc (ros::NodeHandle &nh, const std::string server_name, const std::string hostname, const float frequency) |
double | randomDouble (double min=0, double max=1000000) |
std::string | randomString (size_t length=10) |
bool | serialize (const Image &image, tue::serialization::OutputArchive &a, RGBStorageType rgb_type=RGB_STORAGE_JPG, DepthStorageType depth_type=DEPTH_STORAGE_PNG) |
Variables | |
const static int | SERIALIZATION_VERSION = 2 |
This client listens to RGBD messages on a single topic or via shared memory, provides rgbd::Image.
This client listens to RGBD messages on a single topic directing rgbd::Image.
This client converts rgb/depth/camera_info into RGBD::Image
typedef std::shared_ptr<const Image> rgbd::ImageConstPtr |
typedef std::shared_ptr<Image> rgbd::ImagePtr |
typedef message_filters::sync_policies::ApproximateTime<sensor_msgs::Image, sensor_msgs::Image> rgbd::RGBDApproxPolicy |
Definition at line 27 of file client_ros_base.h.
enum rgbd::RGBStorageType |
bool rgbd::convert | ( | const cv::Mat & | image, |
const geo::DepthCamera & | cam_model, | ||
sensor_msgs::Image & | image_msg, | ||
sensor_msgs::CameraInfo & | cam_model_msg | ||
) |
Convert either a rgb or depth image to image and CameraInfo message. Also rectifies the image.
image | rgb or depth image |
cam_model | Camera model |
image_msg | Image message |
cam_model_msg | CameraInfo message |
Definition at line 51 of file conversions.cpp.
bool rgbd::convert | ( | const cv::Mat & | image, |
sensor_msgs::Image & | image_msg | ||
) |
Convert either a rgb or depth image, cv::Mat, to an image message.
image | image matrix |
image_msg | image message to fill |
Definition at line 32 of file conversions.cpp.
bool rgbd::convert | ( | const rgbd_msgs::RGBDConstPtr & | msg, |
rgbd::Image *& | image | ||
) |
Convert rgbd message to an Image.
msg | pointer to const rgbd message |
image | raw pointer to an Image. In case it is a nullptr, a new instance will be created. |
Definition at line 88 of file conversions.cpp.
bool rgbd::deserialize | ( | tue::serialization::InputArchive & | a, |
Image & | image | ||
) |
Definition at line 174 of file serialization.cpp.
rgbd::Image rgbd::generateRandomImage | ( | ) |
Definition at line 36 of file test_utils.h.
std::string rgbd::get_hostname | ( | ) |
Get the hostname of the current machine.
Definition at line 13 of file utility.cpp.
std::ostream& rgbd::operator<< | ( | std::ostream & | out, |
const rgbd::Image & | image | ||
) |
void rgbd::pubHostnameThreadFunc | ( | ros::NodeHandle & | nh, |
const std::string | server_name, | ||
const std::string | hostname, | ||
const float | frequency | ||
) |
Definition at line 154 of file server_shm.cpp.
double rgbd::randomDouble | ( | double | min = 0 , |
double | max = 1000000 |
||
) |
Definition at line 29 of file test_utils.h.
std::string rgbd::randomString | ( | size_t | length = 10 | ) |
Definition at line 17 of file test_utils.h.
bool rgbd::serialize | ( | const Image & | image, |
tue::serialization::OutputArchive & | a, | ||
RGBStorageType | rgb_type = RGB_STORAGE_JPG , |
||
DepthStorageType | depth_type = DEPTH_STORAGE_PNG |
||
) |
Definition at line 23 of file serialization.cpp.
|
static |
Definition at line 15 of file serialization.cpp.