Skip to content

Commit fb389a3

Browse files
committed
Fix ordering of movec arguments
1 parent 8fabf6c commit fb389a3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

resources/external_control.urscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ thread trajectoryThread():
638638
target = q
639639
end
640640

641-
acceleration = raw_point[13] / MULT_jointstate
642-
velocity = raw_point[14] / MULT_jointstate
641+
velocity = raw_point[13] / MULT_jointstate
642+
acceleration = raw_point[14] / MULT_jointstate
643643
mode = raw_point[15] / MULT_jointstate
644644
movec(via, target, acceleration, velocity, blend_radius, mode)
645645

tests/test_trajectory_point_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ TEST_F(TrajectoryPointInterfaceTest, send_movec)
707707
urcl::Pose send_target = { 1.2, 3.1, 2.2, -3.4, -1.1, -1.2 };
708708
urcl::Pose send_via = { 0.5, 0.6, 0.7, 0.8, 0.9, 1.0 };
709709
double blend_radius = 0.5;
710-
double acceleration = 0.7;
710+
double acceleration = 0.4;
711711
double velocity = 0.7;
712712
int32_t mode = 1;
713713
auto primitive =
@@ -720,7 +720,7 @@ TEST_F(TrajectoryPointInterfaceTest, send_movec)
720720
EXPECT_EQ(std::static_pointer_cast<control::MoveCPrimitive>(received_primitive)->via_point_pose, send_via);
721721
EXPECT_EQ(received_primitive->blend_radius, blend_radius);
722722
EXPECT_EQ(received_primitive->acceleration, acceleration);
723-
EXPECT_EQ(received_primitive->acceleration, velocity);
723+
EXPECT_EQ(received_primitive->velocity, velocity);
724724
EXPECT_EQ(std::static_pointer_cast<control::MoveCPrimitive>(received_primitive)->mode, mode);
725725
}
726726

0 commit comments

Comments
 (0)