Skip to content

Commit

Permalink
Publish correct joint velocities in r6bot example 7 (#430)
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Johnson <erikjohnson@blackberry.com>
(cherry picked from commit 7ddc8d3)
  • Loading branch information
ecmjohnson authored and mergify[bot] committed Jan 16, 2024
1 parent 2fde87f commit faeb7ac
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 faeb7ac

Please sign in to comment.