Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
tesseract_common::JointTrajectory Class Reference

Represents a joint trajectory. More...

#include <joint_state.h>

Collaboration diagram for tesseract_common::JointTrajectory:
Collaboration graph
[legend]

Public Types

using value_type = JointState
 
using pointer = typename std::vector< value_type >::pointer
 
using const_pointer = typename std::vector< value_type >::const_pointer
 
using reference = typename std::vector< value_type >::reference
 
using const_reference = typename std::vector< value_type >::const_reference
 
using size_type = typename std::vector< value_type >::size_type
 
using difference_type = typename std::vector< value_type >::difference_type
 
using iterator = typename std::vector< value_type >::iterator
 
using const_iterator = typename std::vector< value_type >::const_iterator
 
using reverse_iterator = typename std::vector< value_type >::reverse_iterator
 
using const_reverse_iterator = typename std::vector< value_type >::const_reverse_iterator
 

Public Member Functions

 JointTrajectory (std::string description="")
 
 JointTrajectory (std::vector< JointState > states, std::string description="")
 
bool operator== (const JointTrajectory &other) const
 
bool operator!= (const JointTrajectory &rhs) const
 
template<class InputIt >
 JointTrajectory (InputIt first, InputIt last)
 
iterator begin ()
 returns an iterator to the beginning More...
 
const_iterator begin () const
 returns an iterator to the beginning More...
 
iterator end ()
 returns an iterator to the end More...
 
const_iterator end () const
 returns an iterator to the end More...
 
reverse_iterator rbegin ()
 returns a reverse iterator to the beginning More...
 
const_reverse_iterator rbegin () const
 returns a reverse iterator to the beginning More...
 
reverse_iterator rend ()
 returns a reverse iterator to the end More...
 
const_reverse_iterator rend () const
 returns a reverse iterator to the end More...
 
const_iterator cbegin () const
 returns an iterator to the beginning More...
 
const_iterator cend () const
 returns an iterator to the end More...
 
const_reverse_iterator crbegin () const
 returns a reverse iterator to the beginning More...
 
const_reverse_iterator crend () const
 returns a reverse iterator to the end More...
 
bool empty () const
 checks whether the container is empty More...
 
size_type size () const
 returns the number of elements More...
 
size_type max_size () const
 returns the maximum possible number of elements More...
 
void reserve (size_type n)
 reserve number of elements More...
 
size_type capacity () const
 returns the number of elements that can be held in currently allocated storage More...
 
void shrink_to_fit ()
 reduces memory usage by freeing unused memory
More...
 
reference front ()
 access the first element More...
 
const_reference front () const
 access the first element More...
 
reference back ()
 access the last element More...
 
const_reference back () const
 access the last element More...
 
reference at (size_type n)
 access specified element with bounds checking More...
 
const_reference at (size_type n) const
 access specified element with bounds checking More...
 
pointer data ()
 direct access to the underlying array
More...
 
const_pointer data () const
 direct access to the underlying array
More...
 
reference operator[] (size_type pos)
 access specified element More...
 
const_reference operator[] (size_type pos) const
 access specified element More...
 
void clear ()
 clears the contents More...
 
iterator insert (const_iterator p, const value_type &x)
 inserts element More...
 
iterator insert (const_iterator p, value_type &&x)
 
iterator insert (const_iterator p, std::initializer_list< value_type > l)
 
template<class InputIt >
void insert (const_iterator pos, InputIt first, InputIt last)
 
template<class... Args>
iterator emplace (const_iterator pos, Args &&... args)
 constructs element in-place More...
 
iterator erase (const_iterator p)
 erases element More...
 
iterator erase (const_iterator first, const_iterator last)
 
void push_back (const value_type &x)
 adds an element to the end More...
 
void push_back (const value_type &&x)
 
template<typename... Args>
void emplace_back (Args &&... args)
 constructs an element in-place at the end
More...
 
void pop_back ()
 removes the last element More...
 
void swap (std::vector< value_type > &other)
 swaps the contents
More...
 

Public Attributes

std::vector< JointStatestates
 
std::string description
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 

Detailed Description

Represents a joint trajectory.

Member Typedef Documentation

◆ const_iterator

using tesseract_common::JointTrajectory::const_iterator = typename std::vector<value_type>::const_iterator

const_iterator

◆ const_pointer

using tesseract_common::JointTrajectory::const_pointer = typename std::vector<value_type>::const_pointer

const_pointer

◆ const_reference

using tesseract_common::JointTrajectory::const_reference = typename std::vector<value_type>::const_reference

const_reference

◆ const_reverse_iterator

using tesseract_common::JointTrajectory::const_reverse_iterator = typename std::vector<value_type>::const_reverse_iterator

const_reverse_iterator

◆ difference_type

using tesseract_common::JointTrajectory::difference_type = typename std::vector<value_type>::difference_type

difference_type

◆ iterator

using tesseract_common::JointTrajectory::iterator = typename std::vector<value_type>::iterator

iterator

◆ pointer

using tesseract_common::JointTrajectory::pointer = typename std::vector<value_type>::pointer

pointer

◆ reference

using tesseract_common::JointTrajectory::reference = typename std::vector<value_type>::reference

reference

◆ reverse_iterator

using tesseract_common::JointTrajectory::reverse_iterator = typename std::vector<value_type>::reverse_iterator

reverse_iterator

◆ size_type

using tesseract_common::JointTrajectory::size_type = typename std::vector<value_type>::size_type

size_type

◆ value_type

value_type

Constructor & Destructor Documentation

◆ JointTrajectory() [1/3]

tesseract_common::JointTrajectory::JointTrajectory ( std::string  description = "")

◆ JointTrajectory() [2/3]

tesseract_common::JointTrajectory::JointTrajectory ( std::vector< JointState states,
std::string  description = "" 
)

◆ JointTrajectory() [3/3]

template<class InputIt >
tesseract_common::JointTrajectory::JointTrajectory ( InputIt  first,
InputIt  last 
)
inline

Member Function Documentation

◆ at() [1/2]

JointTrajectory::reference tesseract_common::JointTrajectory::at ( size_type  n)

access specified element with bounds checking

◆ at() [2/2]

JointTrajectory::const_reference tesseract_common::JointTrajectory::at ( size_type  n) const

access specified element with bounds checking

◆ back() [1/2]

JointTrajectory::reference tesseract_common::JointTrajectory::back ( )

access the last element

◆ back() [2/2]

JointTrajectory::const_reference tesseract_common::JointTrajectory::back ( ) const

access the last element

◆ begin() [1/2]

JointTrajectory::iterator tesseract_common::JointTrajectory::begin ( )

returns an iterator to the beginning

◆ begin() [2/2]

JointTrajectory::const_iterator tesseract_common::JointTrajectory::begin ( ) const

returns an iterator to the beginning

◆ capacity()

JointTrajectory::size_type tesseract_common::JointTrajectory::capacity ( ) const

returns the number of elements that can be held in currently allocated storage

◆ cbegin()

JointTrajectory::const_iterator tesseract_common::JointTrajectory::cbegin ( ) const

returns an iterator to the beginning

◆ cend()

JointTrajectory::const_iterator tesseract_common::JointTrajectory::cend ( ) const

returns an iterator to the end

◆ clear()

void tesseract_common::JointTrajectory::clear ( )

clears the contents

◆ crbegin()

JointTrajectory::const_reverse_iterator tesseract_common::JointTrajectory::crbegin ( ) const

returns a reverse iterator to the beginning

◆ crend()

JointTrajectory::const_reverse_iterator tesseract_common::JointTrajectory::crend ( ) const

returns a reverse iterator to the end

◆ data() [1/2]

JointTrajectory::pointer tesseract_common::JointTrajectory::data ( )

direct access to the underlying array

◆ data() [2/2]

JointTrajectory::const_pointer tesseract_common::JointTrajectory::data ( ) const

direct access to the underlying array

◆ emplace()

template<class... Args>
JointTrajectory::iterator tesseract_common::JointTrajectory::emplace ( const_iterator  pos,
Args &&...  args 
)

constructs element in-place

◆ emplace_back()

template<typename... Args>
void tesseract_common::JointTrajectory::emplace_back ( Args &&...  args)

constructs an element in-place at the end

◆ empty()

bool tesseract_common::JointTrajectory::empty ( ) const

checks whether the container is empty

◆ end() [1/2]

JointTrajectory::iterator tesseract_common::JointTrajectory::end ( )

returns an iterator to the end

◆ end() [2/2]

JointTrajectory::const_iterator tesseract_common::JointTrajectory::end ( ) const

returns an iterator to the end

◆ erase() [1/2]

JointTrajectory::iterator tesseract_common::JointTrajectory::erase ( const_iterator  first,
const_iterator  last 
)

◆ erase() [2/2]

JointTrajectory::iterator tesseract_common::JointTrajectory::erase ( const_iterator  p)

erases element

◆ front() [1/2]

JointTrajectory::reference tesseract_common::JointTrajectory::front ( )

access the first element

◆ front() [2/2]

JointTrajectory::const_reference tesseract_common::JointTrajectory::front ( ) const

access the first element

◆ insert() [1/4]

JointTrajectory::iterator tesseract_common::JointTrajectory::insert ( const_iterator  p,
const value_type x 
)

inserts element

◆ insert() [2/4]

JointTrajectory::iterator tesseract_common::JointTrajectory::insert ( const_iterator  p,
std::initializer_list< value_type l 
)

◆ insert() [3/4]

JointTrajectory::iterator tesseract_common::JointTrajectory::insert ( const_iterator  p,
value_type &&  x 
)

◆ insert() [4/4]

template<class InputIt >
void tesseract_common::JointTrajectory::insert ( const_iterator  pos,
InputIt  first,
InputIt  last 
)
inline

◆ max_size()

JointTrajectory::size_type tesseract_common::JointTrajectory::max_size ( ) const

returns the maximum possible number of elements

◆ operator!=()

bool tesseract_common::JointTrajectory::operator!= ( const JointTrajectory rhs) const

◆ operator==()

bool tesseract_common::JointTrajectory::operator== ( const JointTrajectory other) const

◆ operator[]() [1/2]

JointTrajectory::reference tesseract_common::JointTrajectory::operator[] ( size_type  pos)

access specified element

◆ operator[]() [2/2]

JointTrajectory::const_reference tesseract_common::JointTrajectory::operator[] ( size_type  pos) const

access specified element

◆ pop_back()

void tesseract_common::JointTrajectory::pop_back ( )

removes the last element

◆ push_back() [1/2]

void tesseract_common::JointTrajectory::push_back ( const value_type &&  x)

◆ push_back() [2/2]

void tesseract_common::JointTrajectory::push_back ( const value_type x)

adds an element to the end

◆ rbegin() [1/2]

JointTrajectory::reverse_iterator tesseract_common::JointTrajectory::rbegin ( )

returns a reverse iterator to the beginning

◆ rbegin() [2/2]

JointTrajectory::const_reverse_iterator tesseract_common::JointTrajectory::rbegin ( ) const

returns a reverse iterator to the beginning

◆ rend() [1/2]

JointTrajectory::reverse_iterator tesseract_common::JointTrajectory::rend ( )

returns a reverse iterator to the end

◆ rend() [2/2]

JointTrajectory::const_reverse_iterator tesseract_common::JointTrajectory::rend ( ) const

returns a reverse iterator to the end

◆ reserve()

void tesseract_common::JointTrajectory::reserve ( size_type  n)

reserve number of elements

◆ serialize()

template<class Archive >
void tesseract_common::JointTrajectory::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ shrink_to_fit()

void tesseract_common::JointTrajectory::shrink_to_fit ( )

reduces memory usage by freeing unused memory

◆ size()

JointTrajectory::size_type tesseract_common::JointTrajectory::size ( ) const

returns the number of elements

◆ swap()

void tesseract_common::JointTrajectory::swap ( std::vector< value_type > &  other)

swaps the contents

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Member Data Documentation

◆ description

std::string tesseract_common::JointTrajectory::description

◆ states

std::vector<JointState> tesseract_common::JointTrajectory::states

The documentation for this class was generated from the following files: