Skip to content

Commit

Permalink
Fix createTrajectoryMessage
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gesel <[email protected]>
  • Loading branch information
pac48 committed Nov 5, 2024
1 parent 36487d1 commit 826bf4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moveit_core/trajectory_processing/src/trajectory_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ trajectory_msgs::msg::JointTrajectory createTrajectoryMessage(const std::vector<
const double time_step = 1.0 / static_cast<double>(sampling_rate);
const int n_samples = static_cast<int>(trajectory.getDuration() / time_step) + 1;
trajectory_msg.points.reserve(n_samples);
for (int sample = 0; sample < n_samples; ++sample)
for (int sample = 0; sample <= n_samples; ++sample)
{
const double t = sample * time_step;
trajectory_msgs::msg::JointTrajectoryPoint point;
Expand Down

0 comments on commit 826bf4d

Please sign in to comment.