Class cNode
Defined in File Node.hpp
Class Documentation
-
class cNode
Represents a node, i.e. the useful part of an custom_msgs::ConeWithId (position and id).
Public Functions
-
cNode(const double &x, const double &y, const double &xGlobal, const double &yGlobal, const uint32_t &id)
Construct a new Node object.
- Parameters:
x – [in]
y – [in]
xGlobal – [in]
yGlobal – [in]
id – [in]
-
cNode(const ubm_interfaces::msg::Landmark &c)
Construct a new Node object from a custom_msgs::ConeWithId.
- Parameters:
c – [in]
-
const double &x() const
Returns the Node x local coordinate.
-
const double &y() const
Returns the Node y local coordinate.
-
bool operator==(const cNode &n) const
Comparison operator. Two nodes will be equal iff their id is same.
- Parameters:
n – [in]
-
const bool &belongsToSuperTriangle() const
Checks if the Node belongs to a supertriangle.
-
void updateLocal(const Eigen::Affine3d &tf) const
Updates the local coordinates of the Node.
- Parameters:
tf – [in]
Public Members
-
const uint32_t id
Node’s id, in principle given by the cone tracker.
Public Static Functions
-
cNode(const double &x, const double &y, const double &xGlobal, const double &yGlobal, const uint32_t &id)