Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::visualization::ArrowMarker Class Reference

An arrow marker. More...

#include <arrow_marker.h>

Inheritance diagram for tesseract::visualization::ArrowMarker:

Public Member Functions

 ArrowMarker (const Eigen::Vector3d &pt1, const Eigen::Vector3d &pt2)
 Define an arrow marker using two points.
int getType () const override
 Get the marker type.
Public Member Functions inherited from tesseract::visualization::Marker
 Marker (const Marker &)=default
Marker & operator= (const Marker &)=default
 Marker (Marker &&)=default
Marker & operator= (Marker &&)=default
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.

Public Attributes

double shaft_length { 0.8 }
 The arrow shaft length.
double shaft_radius { 0.1 }
 The arrow shaft radius.
double head_length { 0.2 }
 The arrow head length.
double head_radius { 0.15 }
 The arrow head radius.
Eigen::Isometry3d pose { Eigen::Isometry3d::Identity() }
 The arrow pose.
tesseract::scene_graph::Material::Ptr material
 The material information for the marker.

Additional Inherited Members

Public Types inherited from tesseract::visualization::Marker
using Ptr = std::shared_ptr<Marker>
using ConstPtr = std::shared_ptr<const Marker>
Protected Attributes inherited from tesseract::visualization::Marker
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.

Detailed Description

An arrow marker.

The arrow will be created along the z-axis of the provided pose with the base of the shaft at the origin point in the positive direction

Constructor & Destructor Documentation

◆ ArrowMarker()

tesseract::visualization::ArrowMarker::ArrowMarker ( const Eigen::Vector3d & pt1,
const Eigen::Vector3d & pt2 )
inline

Define an arrow marker using two points.

The class parameters are calculated based on distance

Parameters
pt1The starting point
pt2The final point

Member Function Documentation

◆ getType()

int tesseract::visualization::ArrowMarker::getType ( ) const
inlineoverridevirtual

Get the marker type.

Returns
The type of the marker

Implements tesseract::visualization::Marker.