50 auto robot_state = std::make_shared<moveit::core::RobotState>(locked_scene->getCurrentState());
58 status_initial = servo_test_instance_->getStatus();
62 status_curr = servo_test_instance_->getStatus();
66 status_next = servo_test_instance_->getStatus();
71 constexpr double tol = 1.0e-5;
72 ASSERT_NEAR(delta, 0.01, tol);
78 auto robot_state = std::make_shared<moveit::core::RobotState>(locked_scene->getCurrentState());
85 status_initial = servo_test_instance_->getStatus();
88 status_curr = servo_test_instance_->getStatus();
92 status_next = servo_test_instance_->getStatus();
96 constexpr double expected_delta = -0.000338;
98 constexpr double tol = 1.0e-5;
99 ASSERT_NEAR(delta, expected_delta, tol);
105 auto robot_state = std::make_shared<moveit::core::RobotState>(locked_scene->getCurrentState());
112 status_initial = servo_test_instance_->getStatus();
115 status_curr = servo_test_instance_->getStatus();
119 status_next = servo_test_instance_->getStatus();
123 constexpr double expected_delta = 0.000338;
125 constexpr double tol = 1.0e-5;
126 ASSERT_NEAR(delta, expected_delta, tol);
132 auto robot_state = std::make_shared<moveit::core::RobotState>(locked_scene->getCurrentState());
137 zero_pose.
pose = getCurrentPose(
"panda_link8");
139 non_zero_pose.
frame_id =
"panda_link0";
140 non_zero_pose.
pose = getCurrentPose(
"panda_link8");
141 non_zero_pose.
pose.rotate(Eigen::AngleAxisd(M_PI / 2, Eigen::Vector3d::UnitZ()));
144 status_initial = servo_test_instance_->getStatus();
148 status_curr = servo_test_instance_->getStatus();
152 status_next = servo_test_instance_->getStatus();
156 constexpr double expected_delta = 0.003364;
158 constexpr double tol = 1.0e-5;
159 ASSERT_NEAR(delta, expected_delta, tol);
166 rclcpp::init(argc, argv);
167 ::testing::InitGoogleTest(&argc, argv);
168 int result = RUN_ALL_TESTS();
This is a convenience class for obtaining access to an instance of a locked PlanningScene.
Eigen::VectorXd positions
TEST_F(BulletCollisionDetectionTester, DISABLED_ContinuousCollisionSelf)
Continuous self collision checks are not supported yet by the bullet integration.
int main(int argc, char **argv)