Go to the documentation of this file.
28 #include <boost/serialization/access.hpp>
29 #include <boost/serialization/nvp.hpp>
30 #include <boost/serialization/string.hpp>
31 #include <boost/serialization/vector.hpp>
32 #include <boost/serialization/shared_ptr.hpp>
33 #include <boost/uuid/uuid_io.hpp>
34 #include <boost/uuid/uuid_serialize.hpp>
44 : joint_names(std::move(joint_names)), position(position)
62 template <
class Archive>
66 ar& BOOST_SERIALIZATION_NVP(
position);
67 ar& BOOST_SERIALIZATION_NVP(
velocity);
69 ar& BOOST_SERIALIZATION_NVP(
effort);
70 ar& BOOST_SERIALIZATION_NVP(
time);
140 return states.insert(p, std::move(x));
144 return states.insert(p, l);
147 template <
class... Args>
150 return states.emplace(pos, std::forward<Args>(args)...);
156 return states.erase(first, last);
161 template <
typename... Args>
162 #if __cplusplus > 201402L
165 return states.emplace_back(std::forward<Args>(args)...);
170 container_.emplace_back(std::forward<Args>(args)...);
179 template <
class Archive>
182 ar& BOOST_SERIALIZATION_NVP(
uuid);
183 ar& BOOST_SERIALIZATION_NVP(
states);
bool empty() const
checks whether the container is empty
bool operator==(const JointTrajectory &other) const
size_type max_size() const
returns the maximum possible number of elements
reference at(size_type n)
access specified element with bounds checking
typename std::vector< value_type >::reference reference
typename std::vector< value_type >::iterator iterator
Eigen::VectorXd effort
The Effort at the waypoint (optional)
reference back()
access the last element
const_iterator cend() const
returns an iterator to the end
Eigen::VectorXd velocity
The velocity at the waypoint (optional)
reference front()
access the first element
#define TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE(Type)
reverse_iterator rend()
returns a reverse iterator to the end
iterator insert(const_iterator p, const value_type &x)
inserts element
void clear()
clears the contents
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
typename std::vector< value_type >::pointer pointer
reverse_iterator rbegin()
returns a reverse iterator to the beginning
JointTrajectory(std::string description="")
iterator erase(const_iterator p)
erases element
iterator begin()
returns an iterator to the beginning
iterator end()
returns an iterator to the end
typename std::vector< value_type >::const_pointer const_pointer
bool almostEqualRelativeAndAbs(double a, double b, double max_diff=1e-6, double max_rel_diff=std::numeric_limits< double >::epsilon())
Check if two double are relatively equal.
void pop_back()
removes the last element
reference operator[](size_type pos)
access specified element
bool operator==(const JointState &other) const
std::vector< std::string > joint_names
The joint corresponding to the position vector.
Common Tesseract Utility Functions.
iterator emplace(const_iterator pos, Args &&... args)
constructs element in-place
const_iterator cbegin() const
returns an iterator to the beginning
void serialize(Archive &ar, const unsigned int version)
Eigen::VectorXd acceleration
The Acceleration at the waypoint (optional)
Represents a joint trajectory.
const_reverse_iterator crbegin() const
returns a reverse iterator to the beginning
void serialize(Archive &ar, const unsigned int version)
void emplace_back(Args &&... args)
constructs an element in-place at the end
bool operator!=(const JointTrajectory &rhs) const
double time
The Time from start at the waypoint (optional)
void reserve(size_type n)
reserve number of elements
const_reverse_iterator crend() const
returns a reverse iterator to the end
#define TESSERACT_COMMON_IGNORE_WARNINGS_POP
void shrink_to_fit()
reduces memory usage by freeing unused memory
size_type size() const
returns the number of elements
Additional Boost serialization wrappers.
pointer data()
direct access to the underlying array
typename std::vector< value_type >::reverse_iterator reverse_iterator
Eigen::VectorXd position
The joint position at the waypoint.
std::vector< JointState > states
typename std::vector< value_type >::const_reference const_reference
bool operator!=(const JointState &rhs) const
typename std::vector< value_type >::size_type size_type
void push_back(const value_type &x)
adds an element to the end
typename std::vector< value_type >::const_iterator const_iterator
size_type capacity() const
returns the number of elements that can be held in currently allocated storage
typename std::vector< value_type >::const_reverse_iterator const_reverse_iterator
void swap(std::vector< value_type > &other) noexcept
swaps the contents
tesseract_common
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:40