CHG: changes some enums
This commit is contained in:
@@ -63,7 +63,7 @@ namespace SimCore
|
||||
/// @brief creates a SimTrack out of a string message
|
||||
/// @param msg
|
||||
/// @return SimTrack Oject
|
||||
static std::unique_ptr<SimCore::SimTrack> unpack(std::string msg);
|
||||
static std::unique_ptr<SimCore::SimTrack> unpack(std::string msgString);
|
||||
|
||||
public:
|
||||
Data<double> Speed;
|
||||
|
||||
@@ -69,6 +69,7 @@ enum EffectorKind : std::uint32_t {
|
||||
|
||||
enum TrackKind : std::uint8_t {
|
||||
UNKNOWN_TRACK,
|
||||
SIM_TRACK,
|
||||
GROUND_TRUTH_TRACK,
|
||||
OWN_TRACK,
|
||||
RADAR_TRACK,
|
||||
|
||||
Submodule libs/whisper-com updated: b94f852137...1d154f71d4
@@ -70,7 +70,7 @@ namespace SimCore
|
||||
|
||||
WHISPER::Message SimTrack::buildMessage()
|
||||
{
|
||||
WHISPER::Message msg(ID_.getUUID(),WHISPER::MsgTopics::TRACK , WHISPER::MsgType::GROUND_TRUTH_TRACK, this->SourceType_);
|
||||
WHISPER::Message msg(ID_.getUUID(),WHISPER::MsgTopics::TRACK , WHISPER::MsgType::SIM_TRACK, this->SourceType_);
|
||||
|
||||
|
||||
messages::SimTrack::SimTrack SimTrack;
|
||||
@@ -202,11 +202,11 @@ namespace SimCore
|
||||
|
||||
|
||||
|
||||
std::unique_ptr<SimCore::SimTrack> SimTrack::unpack(std::string msg)
|
||||
std::unique_ptr<SimCore::SimTrack> SimTrack::unpack(std::string msgString)
|
||||
{
|
||||
if (std::empty(msg) == false && msg != "NULL")
|
||||
if (std::empty(msgString) == false && msgString != "NULL")
|
||||
{
|
||||
WHISPER::Message whisperMessage(msg);
|
||||
WHISPER::Message whisperMessage(msgString);
|
||||
return std::make_unique<SimTrack>(std::move(unpack(whisperMessage)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user