37 #include <gtest/gtest.h>
45 TEST(CommandPlannerTestDirect, ExceptionCoverage)
67 TEST(CommandPlannerTestDirect, CheckDoubleLoadingException)
84 TEST(CommandPlannerTestDirect, FailOnLoadContext)
92 std::string getAlgorithm()
const override
94 return "Test_Algorithm";
97 bool loadContext(planning_interface::PlanningContextPtr& ,
const std::string& ,
98 const std::string& )
const override
107 std::make_shared<TestPlanningContextLoader>();
111 req.planner_id =
"Test_Algorithm";
113 moveit_msgs::msg::MoveItErrorCodes error_code;
115 EXPECT_EQ(moveit_msgs::msg::MoveItErrorCodes::PLANNING_FAILED, error_code.val);
118 int main(
int argc,
char** argv)
120 testing::InitGoogleTest(&argc, argv);
121 return RUN_ALL_TESTS();
MoveIt Plugin for Planning with Standard Robot Commands This planner is dedicated to return a instanc...
planning_interface::PlanningContextPtr getPlanningContext(const planning_scene::PlanningSceneConstPtr &planning_scene, const planning_interface::MotionPlanRequest &req, moveit_msgs::msg::MoveItErrorCodes &error_code) const override
Returns a PlanningContext that can be used to solve(calculate) the trajectory that corresponds to com...
void registerContextLoader(const pilz_industrial_motion_planner::PlanningContextLoaderPtr &planning_context_loader)
Register a PlanningContextLoader to be used by the CommandPlanner.
Plugin that can generate instances of PlanningContextPTP. Generates instances of PlanningContextPTP.
Base class for all PlanningContextLoaders. Since planning_interface::PlanningContext has a non empty ...
A base class for all pilz_industrial_motion_planner exceptions inheriting from std::runtime_exception...
std::shared_ptr< PlanningContextLoader > PlanningContextLoaderPtr
moveit_msgs::msg::MotionPlanRequest MotionPlanRequest
int main(int argc, char **argv)
TEST(CommandPlannerTestDirect, ExceptionCoverage)