Skip to content

Commit

Permalink
Switch to PSM's waitForCurrentRobotState()
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Nov 5, 2024
1 parent ddfa7ff commit 8e62bde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions moveit_ros/moveit_servo/tests/servo_cpp_fixture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ class ServoCppFixture : public testing::Test
servo_params_ = servo_param_listener_->get_params();

planning_scene_monitor_ = moveit_servo::createPlanningSceneMonitor(servo_test_node_, servo_params_);
// Wait until the joint configuration is nonzero before starting MoveIt Servo.
if (!planning_scene_monitor_->getStateMonitor()->waitForCompleteState("panda_arm", 2.0))
// Wait for next state update before starting MoveIt Servo.
if (!planning_scene_monitor_->waitForCurrentRobotState(servo_test_node_->now()))
;
{
FAIL() << "Could not retrieve complete robot state";
}
Expand Down

0 comments on commit 8e62bde

Please sign in to comment.