Go to the documentation of this file.
17 #ifndef TESSERACT_VISUALIZATION_MARKERS_MARKER_H
18 #define TESSERACT_VISUALIZATION_MARKERS_MARKER_H
24 #include <Eigen/Geometry>
77 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
79 using Ptr = std::shared_ptr<Marker>;
80 using ConstPtr = std::shared_ptr<const Marker>;
93 virtual int getType()
const = 0;
111 virtual void setLifetime(
const std::chrono::steady_clock::duration& lifetime);
117 virtual std::chrono::steady_clock::duration
getLifetime()
const;
135 virtual void setScale(
const Eigen::Vector3d& scale);
141 virtual const Eigen::Vector3d&
getScale()
const;
154 Eigen::Vector3d
scale_{ Eigen::Vector3d(1, 1, 1) };
158 #endif // TESSERACT_VISUALIZATION_MARKERS_MARKER_H
std::string parent_link_
The parent link the marker is attched to. If empty relative to world.
@ TRIANGLE_FAN
Triangle fan primitive.
@ CONTACT_RESULTS
Contact results marker.
@ LINE_STRIP
Line strip primitive.
@ TRIANGLE_STRIP
Triangle strip primitive.
std::chrono::steady_clock::duration lifetime_
The lifetime of this Marker.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
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 std::chrono::steady_clock::duration getLifetime() const
Get the lifetime of this Marker.
@ TRIANGLE_LIST
Triangle list primitive.
@ LINE_LIST
Line list primitive.
virtual ~Marker()=default
@ TOOLPATH
Toolpath marker.
int layer_
The layer of the marker.
virtual void setLifetime(const std::chrono::steady_clock::duration &lifetime)
Set the lifetime of the this marker.
virtual void setLayer(int layer)
Set the layer of this Marker.
virtual int getLayer() const
Get the layer of this Marker.
virtual int getType() const =0
Get the marker type.
Marker & operator=(const Marker &)=default
@ GEOMETRY
Tesseract geometry.
Eigen::Vector3d scale_
The marker scale.
std::shared_ptr< const Marker > ConstPtr
virtual const Eigen::Vector3d & getScale() const
Get the marker scale.
std::shared_ptr< Marker > Ptr
@ POINTS
Points primitive.
virtual void setScale(const Eigen::Vector3d &scale)
Set the marker scale.