Skip to content

Commit

Permalink
Add TF Buffer accessor to MoveGroupInterface (#2944)
Browse files Browse the repository at this point in the history
  • Loading branch information
methylDragon authored Aug 2, 2024
1 parent d7b84fd commit 57995c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ class MOVEIT_MOVE_GROUP_INTERFACE_EXPORT MoveGroupInterface
* states from srdf */
const std::vector<std::string>& getNamedTargets() const;

/** \brief Get the tf2_ros::Buffer. */
const std::shared_ptr<tf2_ros::Buffer>& getTF() const;

/** \brief Get the RobotModel object. */
moveit::core::RobotModelConstPtr getRobotModel() const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,11 @@ const std::vector<std::string>& MoveGroupInterface::getNamedTargets() const
return impl_->getJointModelGroup()->getDefaultStateNames();
}

const std::shared_ptr<tf2_ros::Buffer>& MoveGroupInterface::getTF() const
{
return impl_->getTF();
}

moveit::core::RobotModelConstPtr MoveGroupInterface::getRobotModel() const
{
return impl_->getRobotModel();
Expand Down

0 comments on commit 57995c5

Please sign in to comment.