|
#include <RobotAPI/libraries/armem_objects/server/instance/Segment.h>
Classes | |
struct | Calibration |
struct | CommitStats |
struct | RemoteGui |
struct | RobotsCache |
Loaded robot models identified by the robot name. More... | |
Public Types | |
using | ObjectPose = objpose::ObjectPose |
using | ObjectPoseMap = std::map< ObjectID, ObjectPose > |
using | ObjectPoseSeq = objpose::ObjectPoseSeq |
Public Member Functions | |
objpose::AttachObjectToRobotNodeOutput | attachObjectToRobotNode (const objpose::AttachObjectToRobotNodeInput &input) |
void | commitObjectPoses (const ObjectPoseSeq &objectPoses, const std::string &providerName="") |
CommitStats | commitObjectPoses (const std::string &providerName, const objpose::data::ProvidedObjectPoseSeq &providedPoses, const Calibration &calibration, std::optional< Time > discardUpdatesUntil=std::nullopt) |
void | connect (viz::Client arviz) |
void | defineProperties (armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override |
objpose::DetachAllObjectsFromRobotNodesOutput | detachAllObjectsFromRobotNodes (const objpose::DetachAllObjectsFromRobotNodesInput &input) |
objpose::DetachObjectFromRobotNodeOutput | detachObjectFromRobotNode (const objpose::DetachObjectFromRobotNodeInput &input) |
wm::Entity * | findObjectEntity (const ObjectID &objectID, const std::string &providerName="") |
::armarx::armem::articulated_object::ArticulatedObjects | getArticulatedObjects () |
std::optional< simox::OrientedBoxf > | getObjectOOBB (const ObjectID &id) |
objpose::ObjectPoseMap | getObjectPoses (const DateTime &now) |
objpose::ObjectPoseMap | getObjectPosesByProvider (const std::string &providerName, const DateTime &now) |
objpose::ProviderInfo | getProviderInfo (const std::string &providerName) |
void | init () override |
Segment (server::MemoryToIceAdapter &iceMemory) | |
void | updateAttachement (ObjectPose &objectPose, VirtualRobot::RobotPtr agent, bool &synchronized) const |
If the object is attached to a robot node, update it according to the current robot state. More... | |
virtual | ~Segment () override |
Public Member Functions inherited from SpecializedCoreSegment | |
template<class FunctionT > | |
auto | doLocked (FunctionT &&function) const |
wm::CoreSegment & | getCoreSegment () |
const wm::CoreSegment & | getCoreSegment () const |
void | setAronType (aron::type::ObjectPtr aronType) |
void | setDefaultCoreSegmentName (const std::string &coreSegmentName) |
void | setDefaultMaxHistorySize (int64_t maxHistorySize) |
void | setPredictionEngines (const std::vector< PredictionEngine > &predictionEngines) |
SpecializedCoreSegment (MemoryToIceAdapter &iceMemory, const std::string &defaultCoreSegmentName="", aron::type::ObjectPtr coreSegmentAronType=nullptr, int defaultMaxHistorySize=10, const std::vector< PredictionEngine > &predictionEngines={}) | |
virtual | ~SpecializedCoreSegment () override |
Public Member Functions inherited from SegmentBase< server::wm::CoreSegment > | |
MemoryID & | id () |
const MemoryID & | id () const |
SegmentBase ()=delete | |
SegmentBase (MemoryToIceAdapter &iceMemory) | |
virtual | ~SegmentBase ()=default |
Public Member Functions inherited from Logging | |
SpamFilterDataPtr | deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const |
disables the logging for the current line for the given amount of seconds. More... | |
MessageTypeT | getEffectiveLoggingLevel () const |
Logging () | |
void | setLocalMinimumLoggingLevel (MessageTypeT level) |
With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More... | |
void | setTag (const LogTag &tag) |
void | setTag (const std::string &tagName) |
virtual | ~Logging () |
Static Public Member Functions | |
static arondto::ObjectInstance | getLatestInstanceData (const wm::Entity &entity) |
static ObjectPose | getLatestObjectPose (const wm::Entity &entity) |
static void | getLatestObjectPose (const wm::Entity &entity, ObjectPose &out) |
static ObjectPoseMap | getLatestObjectPoses (const wm::CoreSegment &coreSeg) |
static void | getLatestObjectPoses (const wm::CoreSegment &coreSeg, ObjectPoseMap &out) |
static ObjectPoseMap | getLatestObjectPoses (const wm::ProviderSegment &provSeg) |
static void | getLatestObjectPoses (const wm::ProviderSegment &provSeg, ObjectPoseMap &out) |
static std::map< DateTime, ObjectPose > | getObjectPosesInRange (const wm::Entity &entity, const DateTime &start, const DateTime &end) |
Public Attributes | |
Decay | decay |
Decay model. More... | |
ObjectFinder | objectFinder |
objpose::ProviderInfoMap | providers |
RobotsCache | robots |
Public Attributes inherited from SpecializedCoreSegment | |
aron::type::ObjectPtr | aronType |
std::vector< PredictionEngine > | predictionEngines |
Properties | properties |
Public Attributes inherited from SegmentBase< server::wm::CoreSegment > | |
server::wm::CoreSegment * | segmentPtr |
Friends | |
struct | DetachVisitor |
Additional Inherited Members | |
Protected Member Functions inherited from Logging | |
bool | checkLogLevel (MessageTypeT level) const |
const LogSenderPtr & | getLogSender () const |
Retrieve log sender. More... | |
LogSenderPtr | loghelper (const char *file, int line, const char *function) const |
Protected Attributes inherited from SegmentBase< server::wm::CoreSegment > | |
MemoryToIceAdapter & | iceMemory |
Protected Attributes inherited from Logging | |
MessageTypeT | minimumLoggingLevel |
SpamFilterDataPtr | spamFilter |
LogTag | tag |
using ObjectPose = objpose::ObjectPose |
using ObjectPoseMap = std::map<ObjectID, ObjectPose> |
using ObjectPoseSeq = objpose::ObjectPoseSeq |
Segment | ( | server::MemoryToIceAdapter & | iceMemory | ) |
|
overridevirtual |
Definition at line 101 of file Segment.cpp.
objpose::AttachObjectToRobotNodeOutput attachObjectToRobotNode | ( | const objpose::AttachObjectToRobotNodeInput & | input | ) |
void commitObjectPoses | ( | const ObjectPoseSeq & | objectPoses, |
const std::string & | providerName = "" |
||
) |
CommitStats commitObjectPoses | ( | const std::string & | providerName, |
const objpose::data::ProvidedObjectPoseSeq & | providedPoses, | ||
const Calibration & | calibration, | ||
std::optional< Time > | discardUpdatesUntil = std::nullopt |
||
) |
void connect | ( | viz::Client | arviz | ) |
|
overridevirtual |
Reimplemented from SpecializedCoreSegment.
Definition at line 106 of file Segment.cpp.
objpose::DetachAllObjectsFromRobotNodesOutput detachAllObjectsFromRobotNodes | ( | const objpose::DetachAllObjectsFromRobotNodesInput & | input | ) |
objpose::DetachObjectFromRobotNodeOutput detachObjectFromRobotNode | ( | const objpose::DetachObjectFromRobotNodeInput & | input | ) |
wm::Entity * findObjectEntity | ( | const ObjectID & | objectID, |
const std::string & | providerName = "" |
||
) |
armarx::armem::articulated_object::ArticulatedObjects getArticulatedObjects | ( | ) |
|
static |
|
static |
Definition at line 646 of file Segment.cpp.
|
static |
|
static |
Definition at line 630 of file Segment.cpp.
|
static |
|
static |
Definition at line 638 of file Segment.cpp.
|
static |
std::optional< simox::OrientedBoxf > getObjectOOBB | ( | const ObjectID & | id | ) |
Definition at line 794 of file Segment.cpp.
objpose::ObjectPoseMap getObjectPoses | ( | const DateTime & | now | ) |
objpose::ObjectPoseMap getObjectPosesByProvider | ( | const std::string & | providerName, |
const DateTime & | now | ||
) |
|
static |
objpose::ProviderInfo getProviderInfo | ( | const std::string & | providerName | ) |
Definition at line 800 of file Segment.cpp.
|
overridevirtual |
Reimplemented from SpecializedCoreSegment.
Definition at line 163 of file Segment.cpp.
void updateAttachement | ( | ObjectPose & | objectPose, |
VirtualRobot::RobotPtr | agent, | ||
bool & | synchronized | ||
) | const |
If the object is attached to a robot node, update it according to the current robot state.
If there is no attachement info in objectPose
itself, the internal data structure attachments
is queried. If an attachment is found there, it is written into the given objectPose
(thus, it is "cached" in the info objectPose
).
synchronized | Indicates whether the agent is already synchronized to the current time. |
Definition at line 592 of file Segment.cpp.
ObjectFinder objectFinder |
RobotsCache robots |