40 #include <OGRE/OgreCamera.h> 43 #include <OGRE/OgreRenderSystem.h> 46 #include <boost/lambda/lambda.hpp> 53 "size of the visualizer",
this,
56 "timeout", 10.0,
"timeout seconds",
this, SLOT(
updateTimeout()));
62 "text",
"person found here person found here",
96 const people_msgs::PositionMeasurementArray::ConstPtr& msg)
100 static int square_count = 0;
112 QColor color(25.0, 255.0, 240.0);
120 for (
size_t i = 0; i <
faces_.size(); i++) {
121 Ogre::Quaternion orientation;
122 Ogre::Vector3 position;
123 geometry_msgs::Pose
pose;
124 pose.position =
faces_[i].pos;
125 pose.orientation.w = 1.0;
128 position, orientation))
130 std::ostringstream oss;
131 oss <<
"Error transforming pose";
132 oss <<
" from frame '" << msg->header.frame_id <<
"'";
133 oss <<
" to frame '" << qPrintable(
fixed_frame_) <<
"'";
145 float wall_dt,
float ros_dt)
152 ROS_WARN(
"timeout face recognition result");
void processMessage(const people_msgs::PositionMeasurementArray::ConstPtr &msg)
std::vector< GISCircleVisualizer::Ptr > visualizers_
void update(float wall_dt, float ros_dt)
PLUGINLIB_EXPORT_CLASS(jsk_rviz_plugins::PictogramArrayDisplay, rviz::Display)
DisplayContext * context_
virtual ~PeoplePositionMeasurementArrayDisplay()
Ogre::SceneNode * scene_node_
std::string getStdString()
PeoplePositionMeasurementArrayDisplay()
rviz::FloatProperty * size_property_
virtual void onInitialize()
rviz::FloatProperty * timeout_property_
rviz::BoolProperty * anonymous_property_
bool transform(const Header &header, const geometry_msgs::Pose &pose, Ogre::Vector3 &position, Ogre::Quaternion &orientation)
virtual FrameManager * getFrameManager() const=0
std::vector< people_msgs::PositionMeasurement > faces_
rviz::StringProperty * text_property_
Ogre::SceneManager * scene_manager_
virtual float getFloat() const
void onInitialize() override
#define ROS_ERROR_STREAM(args)
virtual bool getBool() const
virtual void setStatus(StatusProperty::Level level, const QString &name, const QString &text)