RTC Toolkit 4.0.2
Loading...
Searching...
No Matches
topics.hpp
Go to the documentation of this file.
1
13#ifndef EXAMPLE_TOPIC_H
14#define EXAMPLE_TOPIC_H
15#include <array>
16#include <cstdint>
17
19constexpr unsigned NUM_PIXELS = 800u * 800u;
20constexpr unsigned N_SUBAPS = 4616u;
21constexpr unsigned N_COMMANDS = 6316u;
22
23template <unsigned int NSUBAPS>
25 std::array<float, 2 * NSUBAPS> slopes;
26 std::array<float, NSUBAPS> intensities;
27};
28
30 uint32_t sample_id; // sample_id is a mandatory field
31 double wfs_timestamp; // time stamp is a mandatory field, in this case we have two of them
32 double cmd_timestamp; // ... in this case we have two timestamps
34 std::array<float, N_COMMANDS> commands;
35};
36
38 uint32_t sample_id; // sample_id is a mandatory field
39 double wfs_timestamp; // time stamp is a mandatory field, in this case we have two of them
40 double cmd_timestamp; // ... in this case we have two timestamps
41 std::array<WfsLoopBaseTopic<N_SUBAPS>, 6> wfs;
42 std::array<float, N_COMMANDS> commands;
43};
44
45template <unsigned int NPIX>
47 std::array<float, NPIX> pixels;
48};
49
51 uint32_t sample_id; // sample_id is a mandatory field
52 double timestamp; // time stamp is a mandatory field
53 std::array<PixelBaseTopic<NUM_PIXELS>, 6> lgs_wfs_pixels;
54};
55
57 uint32_t sample_id; // sample_id is a mandatory field
58 double data1_timestamp; // time stamp is a mandatory field, in this case we have three of them
61 std::array<uint32_t, 192 * 192> data_1;
62 std::array<uint32_t, 96 * 96> data_2;
63 std::array<float, 92 * 92> data_3;
64};
65
66} // namespace rtctk::exampleTopic
67
68#endif // EXAMPLE_TOPIC_H
Definition: topics.hpp:18
constexpr unsigned NUM_PIXELS
Definition: topics.hpp:19
constexpr unsigned N_COMMANDS
Definition: topics.hpp:21
constexpr unsigned N_SUBAPS
Definition: topics.hpp:20
Definition: topics.hpp:50
std::array< PixelBaseTopic< NUM_PIXELS >, 6 > lgs_wfs_pixels
Definition: topics.hpp:53
double timestamp
Definition: topics.hpp:52
uint32_t sample_id
Definition: topics.hpp:51
Definition: topics.hpp:37
double cmd_timestamp
Definition: topics.hpp:40
double wfs_timestamp
Definition: topics.hpp:39
uint32_t sample_id
Definition: topics.hpp:38
std::array< float, N_COMMANDS > commands
Definition: topics.hpp:42
std::array< WfsLoopBaseTopic< N_SUBAPS >, 6 > wfs
Definition: topics.hpp:41
Definition: topics.hpp:46
std::array< float, NPIX > pixels
Definition: topics.hpp:47
Definition: topics.hpp:56
std::array< uint32_t, 96 *96 > data_2
Definition: topics.hpp:62
double data2_timestamp
Definition: topics.hpp:59
double data1_timestamp
Definition: topics.hpp:58
std::array< float, 92 *92 > data_3
Definition: topics.hpp:63
std::array< uint32_t, 192 *192 > data_1
Definition: topics.hpp:61
double data3_timestamp
Definition: topics.hpp:60
uint32_t sample_id
Definition: topics.hpp:57
Definition: topics.hpp:29
double cmd_timestamp
Definition: topics.hpp:32
std::array< float, N_COMMANDS > commands
Definition: topics.hpp:34
WfsLoopBaseTopic< N_SUBAPS > wfs
Definition: topics.hpp:33
double wfs_timestamp
Definition: topics.hpp:31
uint32_t sample_id
Definition: topics.hpp:30
Definition: topics.hpp:24
std::array< float, 2 *NSUBAPS > slopes
Definition: topics.hpp:25
std::array< float, NSUBAPS > intensities
Definition: topics.hpp:26