Skip to content

Commit

Permalink
Publish correct joint velocities in r6bot example 7 (#430) (#433)
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Johnson <erikjohnson@blackberry.com>
(cherry picked from commit 7ddc8d3)

Co-authored-by: Erik <ecmjohnson@hotmail.com>
  • Loading branch information
mergify[bot] and ecmjohnson authored Jan 16, 2024
1 parent 2fde87f commit d1d0c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_7/reference_generator/send_trajectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int main(int argc, char ** argv)
trajectory_point_msg.positions.data(), joint_positions.data.data(),
trajectory_point_msg.positions.size() * sizeof(double));
std::memcpy(
trajectory_point_msg.velocities.data(), joint_positions.data.data(),
trajectory_point_msg.velocities.data(), joint_velocities.data.data(),
trajectory_point_msg.velocities.size() * sizeof(double));

// integrate joint velocities
Expand Down

0 comments on commit d1d0c3c

Please sign in to comment.