Skip to content

Commit

Permalink
Add getNodeHandle impl (#2840)
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
Co-authored-by: Sebastian Jahr <[email protected]>
  • Loading branch information
methylDragon and sjahr authored May 19, 2024
1 parent 6454a07 commit c72ac1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class MOVEIT_MOVE_GROUP_INTERFACE_EXPORT MoveGroupInterface
moveit::core::RobotModelConstPtr getRobotModel() const;

/** \brief Get the ROS node handle of this instance operates on */
rclcpp::Node::SharedPtr getNodeHandle();
const rclcpp::Node::SharedPtr& getNode() const;

/** \brief Get the name of the frame in which the robot is planning */
const std::string& getPlanningFrame() const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2295,6 +2295,11 @@ void MoveGroupInterface::setSupportSurfaceName(const std::string& name)
impl_->setSupportSurfaceName(name);
}

const rclcpp::Node::SharedPtr& MoveGroupInterface::getNode() const
{
return impl_->node_;
}

const std::string& MoveGroupInterface::getPlanningFrame() const
{
return impl_->getRobotModel()->getModelFrame();
Expand Down

0 comments on commit c72ac1b

Please sign in to comment.