VR-Engage  2.3
Loading...
Searching...
No Matches
sensorData.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2026 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/**
7* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8* !!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
9* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10* Generated from: /home/data/exports/DEV-CAM-BML-305/nightly/3375/libsrc/framework/vreMessages/sensorContacts.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <string>
19#include <vector>
20
21namespace makVre
22{
23//! \brief Message type identifier for SensorDataMessage.
24constexpr const char* SensorDataMessageType = "sensor.data";
25
26/**
27 * \class SensorDataMessage
28 * \brief Contains sensor contact data for a sensor on an entity. See SensorSubscribeMessage to request these updates.
29 *
30 * Message type: "sensor.data"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
35{
36public:
37 //! \brief CidLevel enumeration.
46 //! \brief ForceType enumeration.
54
55 //! \brief Nested data structure.
57 {
58 //! \brief Default constructor.
60
61 //! \brief Get the serialized size in bytes.
62 int size() const;
63 //! \brief Serialize to a stream writer.
64 void serialize(DtStreamWriter& writer) const;
65 //! \brief Deserialize from a stream reader.
67 //! \brief Equality comparison operator.
68 bool operator==(const SensorContact& rhs) const;
69 //! \brief Inequality comparison operator.
70 bool operator!=(const SensorContact& rhs) const;
71
72 DtEntityIdentifier myEntityId;
73 DtEntityType myEntityType;
74 std::string myTypeLabel;
80 double myAzimuth;
82 double myHeading;
83 double myRange;
84 double myAltitude;
85 DtVector32 myVelocity;
89 DtVector myPosition;
91
92 };
93
94 //! \brief Data payload for SensorDataMessage.
96 {
97 //! \brief Default constructor.
99
100 //! \name Data Members
101 //! \{
102
103 DtEntityIdentifier myHostId;
104 std::string mySensorName;
105 std::vector<SensorContact> myContacts;
106 //! \}
107
108 //! \name Operators
109 //! \{
110 bool operator==(const SensorDataData& rhs) const;
111 bool operator!=(const SensorDataData& rhs) const;
112 //! \}
113 };
114
115 //! \brief Destructor.
116 virtual ~SensorDataMessage() override;
117
118 //! \name Static Creators
119 //! \{
120 //! \brief Create a new default instance.
121 //! \return A dynamically allocated default message. Caller takes ownership.
123
124 //! \brief Create a copy of the given message.
125 //! \param origMsg The message to copy. Must not be null.
126 //! \return A dynamically allocated copy. Caller takes ownership.
128
129 //! \brief Create a new message initialized with the given data.
130 //! \param data The data payload to initialize the message with.
131 //! \return A dynamically allocated message. Caller takes ownership.
133 //! \}
134
135 //! \name Type Identity
136 //! \{
137 //! \brief Get the message type string for this message class.
138 static const std::string& theType();
139
140 //! \brief Get the message identifier for this message class.
142
143 //! \brief Get the version number for this message class.
145
146 //! \brief Get the message type string for this instance.
147 virtual const std::string& type() const override;
148
149 //! \brief Get the message identifier for this instance.
150 virtual const makVre::DtVreMessageId& messageId() const override;
151 //! \}
152
153 //! \name Accessors
154 //! \{
155 virtual const DtEntityIdentifier& getHostId() const;
156 virtual void setHostId(const DtEntityIdentifier& val);
157
158 virtual const std::string& getSensorName() const;
159 virtual void setSensorName(const std::string& val);
160
161 virtual const std::vector<SensorContact>& getContacts() const;
162 virtual void setContacts(const std::vector<SensorContact>& val);
163 //! \}
164
165 //! \name Serialization
166 //! \{
167 //! \copydoc makVre::DtVreMessage::messageSize()
168 virtual int messageSize() const override;
169
170 //! \brief Decode a message from a byte buffer.
171 //! \param buffer The raw byte buffer to decode from.
172 //! \param length The length of the buffer in bytes.
173 //! \return A dynamically allocated decoded message. Caller takes ownership.
174 static makVre::DtVreMessage* decode(char* buffer, int length);
175
176 //! \brief Get a copy of the message data.
178
179 //! \brief Get a copy of the message data (const).
181 //! \}
182
183 //! \name Operators
184 //! \{
185 bool operator==(const SensorDataMessage& rhs) const;
186 bool operator!=(const SensorDataMessage& rhs) const;
187 //! \}
188
189protected:
191
192 //! \copydoc makVre::DtVreMessage::serialize()
193 virtual void serialize(DtStreamWriter& writer) const override;
194
195 //! \copydoc makVre::DtVreMessage::deserialize()
196 virtual void deserialize(DtStreamReader& reader) override;
197
198protected:
201
203};
204} // namespace makVre
205
Reader class for decoding values from a byte array.
Definition byteStream.h:43
Writer class for encoding values into a byte array.
Definition byteStream.h:166
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
static makVre::DtVreMessageId theMessageId
Definition sensorData.h:199
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
bool operator==(const SensorDataMessage &rhs) const
virtual const DtEntityIdentifier & getHostId() const
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
CidLevel
CidLevel enumeration.
Definition sensorData.h:39
@ CidLevel_Full_Knowledge
Definition sensorData.h:44
@ CidLevel_Detected
Definition sensorData.h:41
@ CidLevel_No_Detection
Definition sensorData.h:40
@ CidLevel_Identified
Definition sensorData.h:43
@ CidLevel_Classified
Definition sensorData.h:42
SensorDataData getData()
Get a copy of the message data.
static SensorDataMessage * createFrom(SensorDataMessage *origMsg)
Create a copy of the given message.
virtual const std::string & getSensorName() const
virtual ~SensorDataMessage() override
Destructor.
virtual void setContacts(const std::vector< SensorContact > &val)
virtual void setHostId(const DtEntityIdentifier &val)
virtual int messageSize() const override
Get a copy of the message data.
static SensorDataMessage * createFromData(const SensorDataData data)
Create a new message initialized with the given data.
SensorDataData getData() const
Get a copy of the message data (const).
SensorDataData myData
Definition sensorData.h:202
virtual const std::vector< SensorContact > & getContacts() const
virtual void setSensorName(const std::string &val)
static const std::string & theType()
Get the message type string for this instance.
bool operator!=(const SensorDataMessage &rhs) const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static UInt64 theVersionNumber()
Get the version number for this message class.
static UInt64 theVersion
Definition sensorData.h:200
static SensorDataMessage * create()
Create a copy of the given message.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
ForceType
ForceType enumeration.
Definition sensorData.h:48
@ ForceType_OTHER
Definition sensorData.h:49
@ ForceType_NEUTRAL
Definition sensorData.h:52
@ ForceType_OPPOSING
Definition sensorData.h:51
@ ForceType_FRIENDLY
Definition sensorData.h:50
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
!
Definition glsVreMessageUtil.h:50
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * SensorDataMessageType
Message type identifier for SensorDataMessage.
Definition sensorData.h:24
double myTargetAspectAngle
Definition sensorData.h:88
double myMachNumber
Definition sensorData.h:90
double mySignalStrength
Definition sensorData.h:87
double myHeading
Definition sensorData.h:82
bool myIsDesignated
Definition sensorData.h:77
double myElevation
Definition sensorData.h:81
int myTrackId
Definition sensorData.h:79
CidLevel myCidLevel
Definition sensorData.h:76
DtEntityIdentifier myEntityId
Definition sensorData.h:72
double myClosureRate
Definition sensorData.h:86
ForceType myForceType
Definition sensorData.h:75
int myTargetPriority
Definition sensorData.h:78
DtEntityType myEntityType
Definition sensorData.h:73
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
DtVector32 myVelocity
Definition sensorData.h:85
double myRange
Definition sensorData.h:83
DtVector myPosition
Definition sensorData.h:89
bool operator==(const SensorContact &rhs) const
Equality comparison operator.
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
std::string myTypeLabel
Definition sensorData.h:74
bool operator!=(const SensorContact &rhs) const
Inequality comparison operator.
int size() const
Get the serialized size in bytes.
double myAltitude
Definition sensorData.h:84
double myAzimuth
Definition sensorData.h:80
Data payload for SensorDataMessage.
Definition sensorData.h:96
std::vector< SensorContact > myContacts
Definition sensorData.h:105
bool operator!=(const SensorDataData &rhs) const
std::string mySensorName
Definition sensorData.h:104
bool operator==(const SensorDataData &rhs) const
DtEntityIdentifier myHostId
Definition sensorData.h:103
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.