AURobotServers
4
|
#include <umaprel.h>
Public Member Functions | |
UMapRel * | get () |
UMapObj * | getOther (UMapObj *notThis) |
UMapSegment * | getParent () |
UPoseQ * | getRelPose (bool notNull) |
bool | load (Uxml3D *fxmap) |
bool | save (Uxml3D *fxmap) |
bool | setLinks (UMapObj *ref1, UMapObj *ref2) |
void | setParent (UMapSegment *parentSegment) |
UMapRel (UMapSegment *parentSegment) | |
void | unlink () |
~UMapRel () | |
Protected Attributes | |
bool | headingValid |
UMapObj * | obj1 |
UMapObj * | obj2 |
UMapSegment * | parent |
UPoseQ * | relPose |
This class holds information on relations between two map objects. The relation is 2d positional and may contain the same information as a pose, i.e. x,y, heading, and covariance matrix related to this relation. The heading constraint will normally be unknown.
UMapRel::UMapRel | ( | UMapSegment * | parentSegment | ) |
Default constructor
UMapRel::~UMapRel | ( | ) |
destructor. Decouples the object from related objects.
|
inline |
Get pointer to other object. That is the object that is different from this. Returns pointer to other object.
Referenced by getRelPose().
|
inline |
Get parent segment
References parent.
|
inline |
Get reference (pointer) to relative pose structure
References getOther(), relPose, and setLinks().
bool UMapRel::load | ( | Uxml3D * | fxmap | ) |
Load relation in xml-like format
Referenced by get().
bool UMapRel::save | ( | Uxml3D * | fxmap | ) |
Save relation in xml-like format
Referenced by get().
Set links to these two objects. If the relation is linked already - i.e. obj1 and/or obj2 is not NULL - then these relation are broken first. Returns true if references are both != NULL.
Referenced by getRelPose().
|
inline |
Set parent segment
References parent.
void UMapRel::unlink | ( | ) |
Remove this object from the constraint list of both related objects.
Referenced by get().
|
protected |
Is heading constraint valid?
|
protected |
Reference to object 1. This reference is NULL if no object is defined.
|
protected |
Reference to object 2. This reference is NULL if no object is defined.
|
protected |
Parent segment pointer
Referenced by getParent(), and setParent().
|
protected |
Relation in position, using x,y,h defined by segment (local) coordinate system. Position is from first object to second object. i.e. according to this relation the position of object 2 should be at object 1 position plus this relation. The covariance (or spring stiffness) is defined by the Q matrix.
Referenced by getRelPose().