|
TinyRobotics
|
Represents a 2D coordinate frame in a hierarchical frame tree. More...
#include <FrameMgr2D.h>

Public Member Functions | |
| Frame2D (FrameType type, uint8_t idx=0) | |
| Frame2D (FrameType type, uint8_t idx, Frame2D &parent) | |
| Frame2D (FrameType type, uint8_t idx, Frame2D &parent, const Transform2D &tf) | |
| bool | operator== (const Frame2D &o) const |
| FrameType | getType () const |
| uint8_t | getIndex () const |
| const Frame2D * | getParent () const |
| void | setParent (Frame2D &parent) |
| const Transform2D & | getTransform () const |
| Transform2D & | getTransform () |
| void | setTransform (const Transform2D &transform) |
Protected Attributes | |
| FrameType | type |
| uint8_t | index = 0 |
| Frame2D * | p_parent = nullptr |
| Transform2D | tf |
Represents a 2D coordinate frame in a hierarchical frame tree.
Frame2D models a reference frame in 2D space, such as a robot base, sensor, or world frame. Each frame can have a parent frame, forming a tree structure for managing relative poses. The pose of the frame relative to its parent is described by a Transform2D (translation and heading).
Features:
Typical usage:
Example: