-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathground_image_display.hpp
42 lines (31 loc) · 1.31 KB
/
ground_image_display.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef GROUND_IMAGE__GROUND_IMAGE_DISPLAY_HPP_
#define GROUND_IMAGE__GROUND_IMAGE_DISPLAY_HPP_
#include <QtCore> // NOLINT
#include "rviz_ground_image/utils/static_image_texture.hpp"
#include "rviz_common/message_filter_display.hpp"
#include "rviz_common/properties/property.hpp"
#include "rviz_common/properties/float_property.hpp"
#include "rviz_common/properties/tf_frame_property.hpp"
#include "rviz_common/render_panel.hpp"
#include "rviz_default_plugins/visibility_control.hpp"
#include "rviz_default_plugins/displays/image/ros_image_texture.hpp"
#include "rviz_rendering/render_window.hpp"
#include <OgreManualObject.h>
#include <rviz_common/display.hpp>
#include <OgreSceneNode.h>
namespace rviz_ground_image
{
class GroundImageDisplay : public rviz_common::Display
{
Q_OBJECT
public:
GroundImageDisplay();
virtual ~GroundImageDisplay() {}
void onInitialize() override;
void update(float wall_dt, float ros_dt) override;
private:
Ogre::SceneNode* scene_node_; // Узел сцены, на котором размещается изображение
void updateImagePosition(); // Функция для обновления позиции изображения
};
} // namespace ground_image
#endif // GROUND_IMAGE__GROUND_IMAGE_DISPLAY_HPP_