Files
salmanoff/smocore/include/marionette/bodyMap/part.h
T

49 lines
859 B
C++
Raw Normal View History

2025-09-14 13:16:02 -04:00
#ifndef BODYMAP_PART_H
#define BODYMAP_PART_H
#include <cstdint>
#include <string>
#include <set>
#include <sensors/interoceptor.h>
2025-07-22 02:03:09 -04:00
namespace mrntt {
2025-09-14 13:16:02 -04:00
namespace bodyMap {
2025-07-22 02:03:09 -04:00
class Spot
{
public:
2025-07-22 02:03:09 -04:00
Spot(uint32_t _id, std::string _description)
: id(_id), description(_description)
{}
2025-07-22 02:03:09 -04:00
~Spot() = default;
public:
uint32_t id;
std::string description;
std::set<uint32_t, Interoceptor> interoceptors;
};
2025-07-22 02:03:09 -04:00
class Part
{
public:
2025-07-22 02:03:09 -04:00
Part(uint32_t _partId, std::string _partName,
std::string _partDesc, std::string _partLoc)
: id(_partId), name(_partName),
description(_partDesc), location(_partLoc)
{}
2025-07-22 02:03:09 -04:00
~Part() = default;
public:
const uint32_t id;
std::string name, description, location;
2025-07-22 02:03:09 -04:00
std::set<uint32_t, Spot> spots;
};
2025-09-14 13:16:02 -04:00
} // namespace bodyMap
2025-07-22 02:03:09 -04:00
} // namespace mrntt
2025-09-14 13:16:02 -04:00
#endif // BODYMAP_PART_H