Rename hcore=>smocore

This commit is contained in:
2025-07-22 06:15:12 -04:00
parent 9c16aeeb55
commit 756571b9b4
54 changed files with 6 additions and 6 deletions
+17
View File
@@ -0,0 +1,17 @@
#ifndef _BODY_H
#define _BODY_H
namespace mrntt {
namespace body {
class Body
{
public:
Body() = default;
~Body() = default;
};
} // namespace body
} // namespace mrntt
#endif // _BODY_H
+23
View File
@@ -0,0 +1,23 @@
#ifndef MRNTT_BODY_BODYMAP_H
#define MRNTT_BODY_BODYMAP_H
#include <set>
#include <cstdint>
#include <body/limb.h>
namespace mrntt {
namespace body {
class BodyMap {
public:
BodyMap() = default;
~BodyMap() = default;
public:
std::set<uint32_t, Limb> limbs;
};
} // namespace body
} // namespace mrntt
#endif // MRNTT_BODY_BODYMAP_H
@@ -0,0 +1,66 @@
#ifndef MRNTT_BODY_BODYMESSAGE_H
#define MRNTT_BODY_BODYMESSAGE_H
#include <vector>
#include <cstdint>
#include <body/limb.h>
#include <body/part.h>
namespace mrntt {
namespace body {
class BodyMessage
{
public:
BodyMessage() = default;
~BodyMessage() = default;
};
class SpotImpactEntry
{
public:
enum class ReportType
{
PRESSURE,
PAIN,
PLEASURE,
HEAT,
COLD
};
SpotImpactEntry(uint32_t _spot, ReportType _type, uint32_t _value)
: spot(_spot), type(_type), value(_value)
{}
~SpotImpactEntry() = default;
public:
uint32_t spot;
ReportType type;
uint32_t value;
};
class SpotImpactInd : public BodyMessage
{
public:
SpotImpactInd(Part &_part) : part(_part) {}
~SpotImpactInd() = default;
public:
Part &part;
std::vector<SpotImpactEntry> entries;
};
class PartMsg : public BodyMessage
{
public:
PartMsg(const Part& _part) : part(_part) {}
public:
const Part& part;
};
} // namespace body
} // namespace mrntt
#endif // MRNTT_BODY_BODYMESSAGE_H
+34
View File
@@ -0,0 +1,34 @@
#ifndef MRNTT_BODY_LIMB_H
#define MRNTT_BODY_LIMB_H
#include <string>
#include <set>
#include <cstdint>
#include <body/part.h>
namespace mrntt {
namespace body {
class Limb
{
public:
Limb(uint32_t _id) : id(_id) {}
Limb(uint32_t _id,
const std::string& _name, const std::string& _desc,
const std::string& _loc)
: id(_id), name(_name), description(_desc), location(_loc)
{}
~Limb() = default;
public:
uint32_t id;
std::string name, description, location;
std::set<uint32_t, Part> parts;
};
} // namespace body
} // namespace mrntt
#endif // MRNTT_BODY_LIMB_H
+23
View File
@@ -0,0 +1,23 @@
#ifndef _BODY_MAP_H
#define _BODY_MAP_H
#include <set>
#include <cstdint>
#include <body/limb.h>
namespace mrntt {
namespace body {
class BodyMap {
public:
BodyMap() = default;
~BodyMap() = default;
std::set<uint32_t, Limb> limbs;
};
} // namespace body
} // namespace mrntt
#endif // _BODY_MAP_H
+48
View File
@@ -0,0 +1,48 @@
#ifndef BODYPART_H
#define BODYPART_H
#include <cstdint>
#include <string>
#include <set>
#include <sensors/interoceptor.h>
namespace mrntt {
namespace body {
class Spot
{
public:
Spot(uint32_t _id, std::string _description)
: id(_id), description(_description)
{}
~Spot() = default;
public:
uint32_t id;
std::string description;
std::set<uint32_t, Interoceptor> interoceptors;
};
class Part
{
public:
Part(uint32_t _partId, std::string _partName,
std::string _partDesc, std::string _partLoc)
: id(_partId), name(_partName),
description(_partDesc), location(_partLoc)
{}
~Part() = default;
public:
const uint32_t id;
std::string name, description, location;
std::set<uint32_t, Spot> spots;
};
} // namespace body
} // namespace mrntt
#endif // BODYPART_H