Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::visualization::Marker Class Referenceabstract
Inheritance diagram for tesseract::visualization::Marker:

Public Types

using Ptr = std::shared_ptr<Marker>
using ConstPtr = std::shared_ptr<const Marker>

Public Member Functions

 Marker (const Marker &)=default
Marker & operator= (const Marker &)=default
 Marker (Marker &&)=default
Marker & operator= (Marker &&)=default
virtual int getType () const =0
 Get the marker type.
virtual void setParentLink (std::string parent_link)
 The parent link name the marker should be attached to.
virtual const std::string & getParentLink () const
 Get the parent link name that marker should be attached to.
virtual void setLifetime (const std::chrono::steady_clock::duration &lifetime)
 Set the lifetime of the this marker.
virtual std::chrono::steady_clock::duration getLifetime () const
 Get the lifetime of this Marker.
virtual void setLayer (int layer)
 Set the layer of this Marker.
virtual int getLayer () const
 Get the layer of this Marker.
virtual void setScale (const Eigen::Vector3d &scale)
 Set the marker scale.
virtual const Eigen::Vector3d & getScale () const
 Get the marker scale.

Protected Attributes

std::chrono::steady_clock::duration lifetime_ { 0 }
 The lifetime of this Marker.
std::string parent_link_
 The parent link the marker is attched to. If empty relative to world.
int layer_ { 0 }
 The layer of the marker.
Eigen::Vector3d scale_ { Eigen::Vector3d(1, 1, 1) }
 The marker scale.

Member Function Documentation

◆ getType()

virtual int tesseract::visualization::Marker::getType ( ) const
pure virtual

◆ setParentLink()

void tesseract::visualization::Marker::setParentLink ( std::string parent_link)
virtual

The parent link name the marker should be attached to.

Parameters
parent_linkThe parent link name

◆ getParentLink()

const std::string & tesseract::visualization::Marker::getParentLink ( ) const
virtual

Get the parent link name that marker should be attached to.

If empty then it should be relative world coordinates

◆ setLifetime()

void tesseract::visualization::Marker::setLifetime ( const std::chrono::steady_clock::duration & lifetime)
virtual

Set the lifetime of the this marker.

Parameters
lifetimeThe time at which the marker will be removed

◆ getLifetime()

std::chrono::steady_clock::duration tesseract::visualization::Marker::getLifetime ( ) const
virtual

Get the lifetime of this Marker.

Returns
The time at which the marker will be removed

◆ setLayer()

void tesseract::visualization::Marker::setLayer ( int layer)
virtual

Set the layer of this Marker.

Parameters
layerLayer at which the marker will reside

◆ getLayer()

int tesseract::visualization::Marker::getLayer ( ) const
virtual

Get the layer of this Marker.

Returns
The layer of the marker

◆ setScale()

void tesseract::visualization::Marker::setScale ( const Eigen::Vector3d & scale)
virtual

Set the marker scale.

Parameters
scaleThe marker scale

◆ getScale()

const Eigen::Vector3d & tesseract::visualization::Marker::getScale ( ) const
virtual

Get the marker scale.

Returns
The scale of the marker