Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::scene_graph::Link Class Reference

Public Types

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

Public Member Functions

 Link (common::LinkId id)
 Link (const Link &other)=delete
Link & operator= (const Link &other)=delete
 Link (Link &&other)=default
Link & operator= (Link &&other)=default
const std::string & getName () const
const common::LinkId & getId () const
void clear ()
bool operator== (const Link &rhs) const
bool operator!= (const Link &rhs) const
Link clone () const
 Clone the link keeping the name.
Link clone (common::LinkId id) const

Public Attributes

Inertial::Ptr inertial
 inertial element
std::vector< Visual::Ptr > visual
 Visual Elements.
std::vector< Collision::Ptr > collision
 Collision Elements.
bool visible { true }
 Visibility Enable.
bool collision_enabled { true }
 Collision Enable.

Friends

template<class Archive>
friend void::tesseract::scene_graph::serialize (Archive &ar, Link &obj)

Member Function Documentation

◆ clone() [1/2]

Link tesseract::scene_graph::Link::clone ( ) const

Clone the link keeping the name.

Returns
Cloned link

◆ clone() [2/2]

Link tesseract::scene_graph::Link::clone ( common::LinkId id) const

Perform a copy of link, changing its name