28 #include <pcl/ModelCoefficients.h> 29 #include <pcl/io/pcd_io.h> 30 #include <pcl/point_types.h> 31 #include <pcl/filters/extract_indices.h> 32 #include <pcl/filters/passthrough.h> 33 #include <pcl/features/normal_3d.h> 34 #include <pcl/sample_consensus/method_types.h> 35 #include <pcl/sample_consensus/model_types.h> 36 #include <pcl/segmentation/sac_segmentation.h> 43 #include <nav_msgs/GetMap.h> 48 #include <boost/date_time/posix_time/posix_time.hpp> 49 #include <boost/date_time/gregorian/formatters.hpp> 51 #include <boost/tokenizer.hpp> 53 #include <opencv/highgui.h> 56 #include <hector_worldmodel_msgs/GetObjectModel.h> 68 virtual void initialize(
const std::string& name);
96 std::string service_name_;
98 plugin_nh.
param(
"service_name", service_name_, std::string(
"worldmodel/get_object_model"));
118 hector_worldmodel_msgs::GetObjectModel data;
125 for(hector_worldmodel_msgs::ObjectModel::_objects_type::const_iterator it = data.response.model.objects.begin(); it != data.response.model.objects.end(); ++it) {
126 const hector_worldmodel_msgs::Object&
object = *it;
128 Eigen::Vector2f coords;
129 coords.x() =
object.pose.pose.position.x;
130 coords.y() =
object.pose.pose.position.y;
131 interface->
drawObjectOfInterest(coords, boost::lexical_cast<std::string>(++counter), MapWriterInterface::Color(180,0,200));
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
ros::ServiceClient service_client_no_
#define ROS_INFO_NAMED(name,...)
ROSCONSOLE_DECL void initialize()
PLUGINLIB_EXPORT_CLASS(BAGReader, nodelet::Nodelet)
bool call(MReq &req, MRes &res)
void draw(MapWriterInterface *interface)
virtual ~BarrelMapWriter()
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
virtual void drawObjectOfInterest(const Eigen::Vector2f &coords, const std::string &txt, const Color &color)=0
ros::ServiceClient service_client_
virtual void initialize(const std::string &name)
SemanticMapWriterPlugin()
#define ROS_ERROR_NAMED(name,...)
virtual ~SemanticMapWriterPlugin()