ed
examples
custom_properties
custom_properties_plugin.h
Go to the documentation of this file.
1
#ifndef ED_EXAMPLES_CUSTOM_PROPERTIES_PLUGIN_H_
2
#define ED_EXAMPLES_CUSTOM_PROPERTIES_PLUGIN_H_
3
4
#include <
ed/plugin.h
>
5
6
#include <
geolib/datatypes.h
>
7
8
class
CustomProperties
:
public
ed::Plugin
9
{
10
11
public
:
12
13
CustomProperties
();
14
15
virtual
~CustomProperties
();
16
17
void
initialize
(
ed::InitData
& init);
18
19
void
process
(
const
ed::WorldModel
& world,
ed::UpdateRequest
& req);
20
21
private
:
22
23
// Create a key for each entity property you want to acces. This key
24
// will be used to access that property. Note that you should specify
25
// the type of the property using templates
26
27
// 'Pose' property key
28
ed::PropertyKey<geo::Pose3D>
k_pose_
;
29
30
// 'Counter' property key
31
ed::PropertyKey<int>
k_counter_
;
32
33
};
34
35
#endif
datatypes.h
ed::Plugin
Definition:
plugin.h:28
ed::WorldModel
Definition:
world_model.h:21
ed::UpdateRequest
Definition:
update_request.h:24
plugin.h
ed::InitData
Definition:
init_data.h:12
CustomProperties::process
void process(const ed::WorldModel &world, ed::UpdateRequest &req)
Definition:
custom_properties_plugin.cpp:37
CustomProperties::k_pose_
ed::PropertyKey< geo::Pose3D > k_pose_
Definition:
custom_properties_plugin.h:28
CustomProperties::k_counter_
ed::PropertyKey< int > k_counter_
Definition:
custom_properties_plugin.h:31
CustomProperties::CustomProperties
CustomProperties()
Definition:
custom_properties_plugin.cpp:13
ed::PropertyKey
Definition:
property_key.h:12
ed::Plugin::initialize
virtual void initialize()
Definition:
plugin.h:39
CustomProperties::~CustomProperties
virtual ~CustomProperties()
Definition:
custom_properties_plugin.cpp:19
CustomProperties
Definition:
custom_properties_plugin.h:8
Generated on Mon Feb 24 2025 04:35:32 for ed by
1.8.17