Go to the documentation of this file.
3 #include <SimoxUtility/json/eigen_conversion.h>
4 #include <SimoxUtility/shapes/json_conversions.h>
14 j[
"dataset"] =
id.dataset();
15 j[
"className"] =
id.className();
16 j[
"instanceName"] =
id.instanceName();
24 j.at(
"dataset").get<std::string>(),
25 j.at(
"className").get<std::string>(),
26 j.at(
"instanceName").get<std::string>()
67 op.
robotConfig = j.at(
"robotConfig").get<std::map<std::string, float>>();
73 if (j.count(
"localOOBB"))
75 op.
localOOBB = j.at(
"localOOBB").get<simox::OrientedBoxf>();
89 j[
"isStatic"] = rhs.
isStatic.value();
98 if (j.count(
"instanceName"))
107 j.at(
"position").get_to(rhs.
position);
111 if (j.count(
"isStatic"))
113 rhs.
isStatic = j.at(
"isStatic").get<
bool>();
120 if (j.count(
"jointValues"))
140 j.at(
"objects").get_to(rhs.
objects);
void to_json(nlohmann::json &j, const Vector2f &value)
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
Eigen::Quaternionf orientation
ObjectType objectType
Known or unknown object.
std::vector< SceneObject > objects
std::optional< simox::OrientedBoxf > localOOBB
Object bounding box in object's local coordinate frame.
std::map< std::string, float > jointValues
std::string providerName
Name of the providing component.
std::string objectPoseOriginalFrame
The frame the object was originally localized in.
Eigen::Matrix4f robotPose
The robot pose when the object was observed.
std::optional< bool > isStatic
void from_json(const simox::json::json &j, ObjectPose &op)
void to_json(simox::json::json &j, const ObjectPose &op)
void to_json(simox::json::json &j, const SceneObject &rhs)
std::int64_t toMicroSecondsSinceEpoch() const
std::map< std::string, float > robotConfig
The robot config when the object was observed.
const simox::meta::EnumNames< objpose::ObjectType > ObjectTypeNames
Represents a point in time.
void from_json(const nlohmann::json &j, Vector2f &value)
armarx::ObjectID objectID
The object ID, i.e. dataset, class name and instance name.
Eigen::Matrix4f objectPoseGlobal
The object pose in the global frame.
void from_json(const simox::json::json &j, SceneObject &rhs)
Eigen::Matrix4f objectPoseOriginal
The object pose in the frame it was originally localized in.
Eigen::Matrix4f objectPoseRobot
The object pose in the robot root frame.
float confidence
Confidence in [0, 1] (1 = full, 0 = none).
An object pose as stored by the ObjectPoseStorage.
DateTime timestamp
Source timestamp.