Skip to content

Commit

Permalink
Publish correct joint velocities in r6bot example 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Johnson committed Jan 15, 2024
1 parent efe3aa2 commit fb54317
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 fb54317

Please sign in to comment.