From faeb7ac7ffd4b880ccf471b480a54796845353db Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 16 Jan 2024 03:27:49 -0500 Subject: [PATCH] Publish correct joint velocities in r6bot example 7 (#430) Co-authored-by: Erik Johnson (cherry picked from commit 7ddc8d3978eddbc5011fe29aafd1aefbd1af2a6e) --- example_7/reference_generator/send_trajectory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_7/reference_generator/send_trajectory.cpp b/example_7/reference_generator/send_trajectory.cpp index 44caff2e2..e6d3fd787 100644 --- a/example_7/reference_generator/send_trajectory.cpp +++ b/example_7/reference_generator/send_trajectory.cpp @@ -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