Skip to content

Commit

Permalink
Use constref shared_ptr in restateInNewFrame
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Dec 29, 2024
1 parent 6c8215d commit 7c2d1e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ std::string getCartesianPathRequestFrameId(const moveit::planning_interface::Mov
* @returns MoveItErrorCode::SUCCESS if successfully restated. Otherwise, will return return
* MoveItErrorCode::FRAME_TRANSFORM_FAILURE if the transform could not be retrieved.
*/
moveit::core::MoveItErrorCode restateInNewFrame(std::shared_ptr<tf2_ros::Buffer> tf, const std::string& target_frame,
const std::string& source_frame, geometry_msgs::msg::Point* translation,
moveit::core::MoveItErrorCode restateInNewFrame(const std::shared_ptr<tf2_ros::Buffer>& tf,
const std::string& target_frame, const std::string& source_frame,
geometry_msgs::msg::Point* translation,
geometry_msgs::msg::Quaternion* rotation,
const tf2::TimePoint& lookup_time = tf2::TimePointZero);

Expand Down
2 changes: 1 addition & 1 deletion moveit_ros/trajectory_cache/src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ std::string getCartesianPathRequestFrameId(const MoveGroupInterface& move_group,
}
}

MoveItErrorCode restateInNewFrame(std::shared_ptr<tf2_ros::Buffer> tf, const std::string& target_frame,
MoveItErrorCode restateInNewFrame(const std::shared_ptr<tf2_ros::Buffer>& tf, const std::string& target_frame,
const std::string& source_frame, geometry_msgs::msg::Point* translation,
geometry_msgs::msg::Quaternion* rotation, const tf2::TimePoint& lookup_time)
{
Expand Down

0 comments on commit 7c2d1e6

Please sign in to comment.