Skip to content

Commit

Permalink
pass trajectory points by const ref
Browse files Browse the repository at this point in the history
  • Loading branch information
marrts authored and marip8 committed May 29, 2024
1 parent 1f8860b commit 65f4cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snp_application/src/bt/snp_bt_ros_nodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ BT::NodeStatus GenerateMotionPlanServiceNode::onResponseReceived(const typename
return BT::NodeStatus::SUCCESS;
}

sensor_msgs::msg::JointState jointTrajectoryPointToJointState(trajectory_msgs::msg::JointTrajectory jt,
trajectory_msgs::msg::JointTrajectoryPoint jtp)
sensor_msgs::msg::JointState jointTrajectoryPointToJointState(const trajectory_msgs::msg::JointTrajectory& jt,
const trajectory_msgs::msg::JointTrajectoryPoint& jtp)
{
sensor_msgs::msg::JointState js;
js.name = jt.joint_names;
Expand Down

0 comments on commit 65f4cf4

Please sign in to comment.