Skip to content

Commit

Permalink
Add setUUID to JointTrajectorySet class
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Oct 30, 2024
1 parent b618f2d commit bf07a5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/include/tesseract_qt/common/joint_trajectory_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ class JointTrajectorySet
/** @brief Get the uuid */
boost::uuids::uuid getUUID() const;

/**
* @brief Set the trajectory sets UUID
* @param uuid The UUID to assign
*/
void setUUID(boost::uuids::uuid uuid);

/** @brief Regenerate uuid */
void regenerateUUID();

Expand Down
2 changes: 2 additions & 0 deletions common/src/joint_trajectory_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ JointTrajectorySet::JointTrajectorySet(std::unique_ptr<tesseract_environment::En

boost::uuids::uuid JointTrajectorySet::getUUID() const { return uuid_; }

void JointTrajectorySet::setUUID(boost::uuids::uuid uuid) { uuid_ = uuid; }

void JointTrajectorySet::regenerateUUID() { uuid_ = boost::uuids::random_generator()(); }

void JointTrajectorySet::applyEnvironment(std::unique_ptr<tesseract_environment::Environment> env)
Expand Down

0 comments on commit bf07a5b

Please sign in to comment.