Skip to content

Commit 1e887e1

Browse files
committed
Remove sending an idle command in quintic spline test
I don't know exactly why it was there but it could break the test quite easily since sending an idle command makes the URScript send a cancelled trajectory result sent back.
1 parent 2627262 commit 1e887e1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/test_spline_interpolation.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ class SplineInterpolationTest : public ::testing::Test
141141
ASSERT_TRUE(g_my_robot->isHealthy());
142142
}
143143

144-
void sendIdle()
145-
{
146-
ASSERT_TRUE(g_my_robot->ur_driver_->writeKeepalive(RobotReceiveTimeout::sec()));
147-
}
148-
149144
void sendTrajectory(const std::vector<urcl::vector6d_t>& s_pos, const std::vector<urcl::vector6d_t>& s_vel,
150145
const std::vector<urcl::vector6d_t>& s_acc, const std::vector<double>& s_time)
151146
{
@@ -458,10 +453,6 @@ TEST_F(SplineInterpolationTest, quintic_spline_with_end_point_velocity_with_spee
458453
std::unique_ptr<rtde_interface::DataPackage> data_pkg;
459454
g_my_robot->readDataPackage(data_pkg);
460455

461-
// Align timestep
462-
sendIdle();
463-
g_my_robot->readDataPackage(data_pkg);
464-
465456
urcl::vector6d_t joint_positions, joint_velocities, joint_acc;
466457
ASSERT_TRUE(data_pkg->getData("target_q", joint_positions));
467458
ASSERT_TRUE(data_pkg->getData("target_qd", joint_velocities));

0 commit comments

Comments
 (0)