This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __SEGMENTATION__MEMORY_POOL__H__ | |
#define __SEGMENTATION__MEMORY_POOL__H__ | |
#define NO_POOL 0 | |
#define BOOST_POOL 1 | |
#define CUSTOM_POOL 2 | |
#define USE_POOL NO_POOL | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void | |
RingColors::convertPoints(const sensor_msgs::PointCloud2ConstPtr &inMsg) | |
{ | |
if (output_.getNumSubscribers() == 0) // no one listening? | |
return; // do nothing | |
// allocate an PointXYZRGB message with same time and frame ID as | |
// input data | |
sensor_msgs::PointCloud2::Ptr outMsg(new sensor_msgs::PointCloud2()); | |
sensor_msgs::PointCloud2Modifier modifier(*outMsg); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double roll, pitch, yaw; | |
KDL::Rotation::Quaternion(x, y, z, w).GetRPY(roll, pitch, yaw); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <tf2_geometry_msgs/tf2_geometry_msgs.h> | |
#include <tf2_kdl/tf2_kdl.h> | |
geometry_msgs::TransformStamped trans; | |
double roll, pitch, yaw; | |
tf2::transformToKDL(trans).M.GetRPY(roll, pitch, yaw); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<fstream> | |
#include<string> | |
#include<cstdlib> | |
#include <vector> | |
#include <queue> | |
#include <boost/algorithm/string.hpp> | |
#include <boost/filesystem.hpp> | |
#include <boost/foreach.hpp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <OGRE/OgreNode.h> | |
#include <OGRE/OgreSceneManager.h> | |
#include <OGRE/OgreCamera.h> | |
#include <OGRE/OgreRenderQueueListener.h> | |
#include <rviz/frame_manager.h> | |
#include <rviz/helpers/color.h> | |
#include <rviz/visualization_manager.h> | |
#include <rviz/properties/color_property.h> | |
#include <rviz/properties/ros_topic_property.h> |