18 int main(
int argc,
char **argv)
24 auto ur5 = std::make_shared<UR5Robot>();
28 auto scene = std::make_shared<Scene>(ur5);
31 auto default_planner = std::make_shared<OMPL::UR5OMPLPipelinePlanner>(ur5,
"default");
32 default_planner->initialize();
35 auto simple_planner = std::make_shared<OMPL::UR5OMPLPipelinePlanner>(ur5,
"simple");
40 simple_planner->initialize(settings);
43 for (
const auto &planner : {default_planner, simple_planner})
50 pose.translate(Eigen::Vector3d{-0.268, -0.826, 1.313});
51 Eigen::Quaterniond orn{0, 0, 1, 0};
55 orn, {0.01, 0.01, 0.01}
60 if (res.
error_code_.val != moveit_msgs::MoveItErrorCodes::SUCCESS)
static GeometryPtr makeSphere(double radius)
Create a sphere.
A helper class to build motion planning requests for a robowflex::Planner.
void setStartConfiguration(const std::vector< double > &joints)
Set the start configuration from a vector joints. All joints are assumed to be specified and in the d...
planning_interface::MotionPlanRequest & getRequest()
Get a reference to the currently built motion planning request.
void setGoalRegion(const std::string &ee_name, const std::string &base_name, const RobotPose &pose, const GeometryConstPtr &geometry, const Eigen::Quaterniond &orientation, const Eigen::Vector3d &tolerances)
Set a goal region for an end-effector ee_name. Sets the position constraint from geometry at a pose p...
Settings descriptor for settings provided by the default MoveIt! OMPL planning pipeline.
bool simplify_solutions
Whether or not planner should simplify solutions.
RAII-pattern for starting up ROS.
Main namespace. Contains all library classes and functions.
std::decay< decltype(std::declval< moveit::core::Transforms >().getTransform("")) >::type RobotPose
A pose (point in SE(3)) used in various functions. Defined from what MoveIt! uses.
Functions for loading and animating scenes in Blender.
moveit_msgs::MoveItErrorCodes error_code_
int main(int argc, char **argv)